Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-7591

Requesting a project I am not an admin of via API produces 401

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: app
    • Labels:

      Description

      When I request a project that I am not an admin of using the API, I receive a 401 even though I provided credentials:

      > Evergreen GET rest/v2/projects/mongo-python-driver failed: 401

      As a user of Evergreen API, I expect the API to use correct HTTP status codes for its responses so that I have an accurate understanding of the error condition. Since I provided credentials and the server is denying access, I expect to receive HTTP code 403 (https://tools.ietf.org/html/rfc2616#section-10.4.4) rather than 401 (https://tools.ietf.org/html/rfc2616#section-10.4.2).

        Attachments

          Activity

            People

            Assignee:
            backlog-server-evg Backlog - Evergreen Team
            Reporter:
            oleg.pudeyev Oleg Pudeyev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: