-
Bug
-
Resolution: Fixed
-
Low
-
5.9.9
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
- Enable REST API
- 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
[CONFSERVER-41575] Confluence REST API username parameter returns 404
Workflow | Original: JAC Bug Workflow v3 [ 2879735 ] | New: CONFSERVER Bug Workflow v4 [ 3003509 ] |
Workflow | Original: JAC Bug Workflow v2 [ 2802694 ] | New: JAC Bug Workflow v3 [ 2879735 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JAC Bug Workflow [ 2732974 ] | New: JAC Bug Workflow v2 [ 2802694 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2398331 ] | New: JAC Bug Workflow [ 2732974 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 [ 2296177 ] | New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2398331 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2231961 ] | New: Confluence Workflow - Public Facing - Restricted v5 [ 2296177 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2191462 ] | New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2231961 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 [ 1927287 ] | New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2191462 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v3 [ 1737040 ] | New: Confluence Workflow - Public Facing - Restricted v5 [ 1927287 ] |
Workflow | Original: CONF Bug Subtask WF (TEMP) [ 1696045 ] | New: Confluence Workflow - Public Facing - Restricted v3 [ 1737040 ] |