/content/.../restriction/byOperation/.../user returns ambiguous responses

XMLWordPrintable

    • Severity 3 - Minor

      /wiki/rest/api/content/.../restriction/byOperation/.../user?userName=... returns a 404 error in all the following cases:

      • The content does not exist (consistent with documentation)
      • The specified user does not exist (not documented, I'd expect a 400 error)
      • The specified user does not have permission to view the content (consistent with documentation)
      • No explicit restriction has been added for the specified user (this should be a 200 response with a boolean false in the body). This is the only response that doesn't have a body explaining what happened.

      If an explicit restriction has been added for the specified user, a 200 response with an empty is returned.

      Also, if a user name or key is not specified, the following error message is returned. But the name of the user key parameter is actually just key.

      either userName or userKey should not be <null>
      

              Assignee:
              Unassigned
              Reporter:
              Einar Pehrson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: