The DELETE user's permission endpoint is returning 204 when the permission does not exist

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Low
    • None
    • Affects Version/s: 6.7.2
    • Component/s: API - REST
    • None
    • 1
    • Severity 3 - Minor
    • 1

      Issue Summary

      The DELETE user's permission endpoint http://example.com/rest/api/1.0/projects/{projectKey}/permissions/users should return a different value rather than the 204 success status code.

      As per the reference documentation, we may expect a 400 Bad request status code. However, we are getting a 204

      Steps to Reproduce

      1. Go to project settings
      2. Confirm that the user does not have any permissions mapped to him.
      3. Run a DELETE against the /rest/api/1.0/projects/{projectKey}/permissions/users endpoint.

       Tested on 6.7.2.

      Expected Results

      Get a 4xx client-side error status code response.

      Actual Results

      We are getting a 204 status code.
      

      Workaround

       Currently, there is no known workaround for this behavior. 

            Assignee:
            Unassigned
            Reporter:
            Fares Abbes (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: