REST API for Add user to group returns error 400 instead of 404 when the user does not exist

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.13.9, 8.5.0, 8.8.0
    • Component/s: REST API
    • 7.13
    • 1
    • Severity 3 - Minor
    • 1

      Issue Summary

      REST API for Add user to group returns error 400 instead of 404 when the user does not exist. According to the documentation of JIRA 8.5.3 when the user or group does not exist, an error 404 should be returned.

      Steps to Reproduce

      Do a POST request to the endpoint /rest/api/2/group/user sending a body with an invalid use like this:

       {"name":"not.existing.user"}

      Expected Results

      As per documentation, "STATUS 404 Returned if the requested group was not found or requested user was not found.".

      Actual Results

      A message 400 is returned:

      Workaround

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

              Assignee:
              Pawel Przytarski
              Reporter:
              Rene C. [Atlassian Support] (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: