プロジェクト

全般

プロフィール

Vote #81687

未完了

Attachments REST API includes internal port

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
Needs feedback
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
0
issue_org_id:
36126
author_id:
539952
assigned_to_id:
539952
comments:
2
status_id:
10
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
166
ステータス-->[Needs feedback]

説明

Trying to get the JSON of the issue using API, with include=attachments, provides attachments links using internal port, not the domain name, port and protocol specified in settings.

As an example:
{"id":6043,"filename":"test.txt","filesize":5119,"content_type":"text/plain","description":"","content_url":"http://redmine.example.org:3000/attachments/download/6043/test.txt","author":{"id":1,"name":"Yuri Mamaev"},"created_on":"2021-10-18T18:38:13Z"}
content_url expected to be: https://redmine.example.org/attachments/download/6043/test.txt


journals

Did you set your "Host name and path" in Administration -> Settings -> General?
--------------------------------------------------------------------------------
Yes, hostname is set to hostname without port.
--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリREST API_32 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0