Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-22131

Pipeline Cache API should return 403 response code when permission issues occurs

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Currently, when the user generated an app password with 'pipeline:write' permission and the user was granted read permission via repository settings, the pipeline delete cache API returns a 404 not found error.

      Actual:

      HTTP 404 {"type": "error", "error": {"message": "Resource not found"}} 
      

      Expected:

      HTTP 403 {"type": "error", "error": {"message": "Permission denied"}} 
      

      The suggestion is to improve and provide the correct response code in these scenarios.

      Attachments

        Activity

          People

            Unassigned Unassigned
            40b9b0a8faa9 Karthick S
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: