Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-78425

REST API call to /wiki/api/v2/attachments returns 500 error when sort parameter is supplied with -modified-date or -created-date

    XMLWordPrintable

Details

    Description

      Issue Summary

      When a user tries to use the V2 /wiki/api/v2/attachments endpoint, the API call fails with a 500 error if it is supplied with the -created-date or -modified-date values on the sort query parameter.

      The values without the "-" character works just fine (created-date and modified-date).

      Steps to Reproduce

      1. Perform an API call through the browser or through other tools like Postman https://instance.atlassian.net/wiki/api/v2/attachments?sort=-modified-date 

      Expected Results

      The list of attachments sorted by modified date is returned

      Actual Results

      The API call returns an internal error status code 500 result

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              c5522313772a Julian
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: