Summary

      Invoking username api parameter as suggested in documentation results in a 404 null uri error, even when users exist.

      Environment

      • Confluence 5.9.9

      Steps to Reproduce

      1. Enable REST API
      2. Query for username, ex: http://localhost:1990/confluence/rest/api/user?username=admin

      Expected Results

      API returns user information

      Actual Results

      The below error is thrown in the http response:

      HTTP/1.1 404 Not Found
      Server: Apache-Coyote/1.1
      Cache-Control: no-transform
      X-Content-Type-Options: nosniff
      Vary: Accept
      Content-Type: application/xml
      Content-Length: 194
      Date: Mon, 02 May 2016 22:53:22 GMT
      
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>404</status-code><message>null for uri: http://localhost:1990/confluence/rest/api/user?username=admin</message></status>
      

      Notes

      Tested using curl:

      $ curl -i http://localhost:1990/confluence/rest/api/user?username=admin
      HTTP/1.1 404 Not Found
      Server: Apache-Coyote/1.1
      Cache-Control: no-transform
      X-Content-Type-Options: nosniff
      Vary: Accept
      Content-Type: application/xml
      Content-Length: 196
      Date: Mon, 02 May 2016 23:00:36 GMT
      
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>404</status-code><message>null for uri: http://localhost:1990/confluence/rest/api/user?username=admin</message></status>
      

      The documentation says that this URL format is correct:

      http://example.com/rest/api/user?username=jblogs
      http://example.com/rest/api/user?key=402880824ff933a4014ff9345d7c0002
      

      Workaround

      Unknown at this time

        1. api2.png
          api2.png
          105 kB

            [CONFSERVER-41575] Confluence REST API username parameter returns 404

              Unassigned Unassigned
              jwyllys Justin W.
              Affected customers:
              1 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: