[ 
https://issues.apache.org/jira/browse/USERGRID-1202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brandon Shelley updated USERGRID-1202:
--------------------------------------
    Description: 
When calling PUT /revoketoken?token=xxxx on a non-existent user, e.g.:

{code}PUT 
https://api-connectors-prod.apigee.net/appservices/api-connectors/sdksandbox/users/asdf/revoketoken?token=xxxx{code}

This error is returned:

{code}500 Internal Server Error
{
  "error": "uncaught",
  "timestamp": 1452306713472,
  "duration": 0,
  "error_description": "Internal Server Error",
  "exception": "org.apache.usergrid.rest.exceptions.UncaughtException",
  "error_id": "251e782b-b679-11e5-abcb-12aee0c06a45"
}{code}

This should throw a 400 and the description should be improved somewhat to 
mirror USERGRID-1201

  was:
When calling PUT /revoketoken?token=xxxx on a non-existent user, e.g.:

{code}PUT 
https://api-connectors-prod.apigee.net/appservices/api-connectors/sdksandbox/users/asdf/revoketoken?token=xxxx{code}

This error is returned:

{code}500 Bad Request
{
  "error": "illegal_argument",
  "timestamp": 1452306435173,
  "duration": 0,
  "error_description": "applicationId, principal_type and id are required",
  "exception": "java.lang.IllegalArgumentException"
}{code}

This error description doesn't really describe what the problem is; at first 
glance, it looks more like a server error that isn't handled properly.


> Error returned when calling /revoketoken?token=xxx on non-existent user 
> returns 500
> -----------------------------------------------------------------------------------
>
>                 Key: USERGRID-1202
>                 URL: https://issues.apache.org/jira/browse/USERGRID-1202
>             Project: Usergrid
>          Issue Type: Improvement
>          Components: Stack
>    Affects Versions: 2.1.2
>            Reporter: Brandon Shelley
>             Fix For: 2.1.2
>
>
> When calling PUT /revoketoken?token=xxxx on a non-existent user, e.g.:
> {code}PUT 
> https://api-connectors-prod.apigee.net/appservices/api-connectors/sdksandbox/users/asdf/revoketoken?token=xxxx{code}
> This error is returned:
> {code}500 Internal Server Error
> {
>   "error": "uncaught",
>   "timestamp": 1452306713472,
>   "duration": 0,
>   "error_description": "Internal Server Error",
>   "exception": "org.apache.usergrid.rest.exceptions.UncaughtException",
>   "error_id": "251e782b-b679-11e5-abcb-12aee0c06a45"
> }{code}
> This should throw a 400 and the description should be improved somewhat to 
> mirror USERGRID-1201



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

Reply via email to