Scott Ganyo created USERGRID-235:
------------------------------------

             Summary: Inconsistent missing resource status code
                 Key: USERGRID-235
                 URL: https://issues.apache.org/jira/browse/USERGRID-235
             Project: Usergrid
          Issue Type: Bug
          Components: Stack
            Reporter: Scott Ganyo


Assuming valid credentials, I get a different status code depending on the 
authorization method.

Bearer token:

curl -X GET -i -H "Accept: application/json" -H "Authorization: Bearer XXX" 
'http://localhost:8080/test-organization/test-app/dogs/fido'

404 error: Service resource not found


Client id & Secret:

curl -X GET -i -H "Accept: application/json" 
'http://localhost:8080/test-organization/test-app/dogs/fido?client_id=XXX&client_secret=XXX'

HTTP/1.1 401 Unauthorized

Note: In both cases, the client receives the same body content:

{"error":"service_resource_not_found","timestamp":1412358355742,"duration":0,"exception":"org.apache.usergrid.services.exceptions.ServiceResourceNotFoundException","error_description":"Service
 resource not found"}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to