Skip to content

The "Api::downloadAttachment" method doesn't work with "CurlClient" #234

@aik099

Description

@aik099

When using CurlClient I'm always getting 303 See Other error + empty response body (results in an exception), when attempting to download a file from Atlassian Cloud Jira (e.g. using https://your-domain.atlassian.net/rest/api/2/attachment/content/12345 URL).

According to the https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-attachments/#api-rest-api-2-attachment-content-id-get the actual attachment URL is specified in the Location header.

Enabling the follow location option in the CurlClient would fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions