Project

General

Profile

Actions

Defect #36126

open

Attachments REST API includes internal port

Added by Yuri Mamaev about 3 years ago. Updated about 3 years ago.

Status:
Needs feedback
Priority:
Normal
Assignee:
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

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

Actions

Also available in: Atom PDF