Uploaded image for project: 'Jira Align'
  1. Jira Align
  2. JIRAALIGN-3218

API 2.0: GET Products returns an empty list for non-superadmin users, GET Products/{id} returns 404

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 10.98.0
    • 10.94, 10.95
    • REST API
    • 1
    • Severity 3 - Minor
    • No

    Description

      Issue Summary

      API 2.0: GET /Products returns an empty list for non-superadmin users, GET /Products/{id} returns 404.

      The user has ALL the role permissions on but is not a superadmin, the user can see all products in UI.

      Steps to Reproduce

      1. Get a non-superadmin user API token and use it to
      2. send GET <site>/rest/align/api/2/products
      3. send GET <site>/rest/align/api/2/products/{id}

      Expected Results

      Should get the same list of Products the user has access to via UI. In the case with the test user having all permissions on should get the same list superadmin can see.

      Actual Results

      GET <site>/rest/align/api/2/products
      
      200 OK
      []
      
      GET <site>/rest/align/api/2/products/{id}
      
      404 Not Found
      Cannot get product with id {id}.
      

      Workaround

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

      Attachments

        Issue Links

          Activity

            People

              kforeman@atlassian.com Kyle Foreman
              c7f2a2ebc58e Kirill Duplyakin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync