Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7948

api/ce/component returns 403 instead of 404

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.6.1
    • Fix Version/s: 6.1
    • Component/s: Compute Engine, Web API
    • Labels:

      Description

      When trying to access api/ce/component with correct level of permission but using wrong componentId, following error is returned:
      GET /api/ce/component?componentId=toto HTTP/1.1" 403

      {
          "errors": [ { "msg": "Insufficient privileges" } ]
      }
      

      Steps to reproduce:

      • log with the « Browse » permission on the permission you want to check
      • access /api/ce/component?componentId=toto

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.lancelot Julien Lancelot
              Reporter:
              jean-denis.coffre Jean-Denis Coffre
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: