[
https://issues.apache.org/jira/browse/USERGRID-1202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15658983#comment-15658983
]
Lynch Lee commented on USERGRID-1202:
-------------------------------------
@[~brandonshelley]
I tried to reproduce this bug local, and found that it has been fixed some
where.
here is my test, and 'xiaomugua1' is a non-existent user of app:
'belo/chatdemo':
Request:
{noformat}
curl -i -XPUT -H "Authorization: Bearer
YWMtBNPuUKiKEeaR37dMrMpBxQAAAVh6rYW1W5cv9MiGHgvLHbDnEdNJ7m8fL84"
"http://localhost:8080/belo/chatdemo/users/xiaomugua1/revoketoken?token=xxxx"
{noformat}
Response:
{noformat}
HTTP/1.1 400 Bad Request
Server: Apache-Coyote/1.1
Set-Cookie: rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Fri, 11-Nov-2016
03:52:52 GMT
Access-Control-Allow-Origin: *
Content-Type: application/json
Content-Length: 167
Date: Sat, 12 Nov 2016 03:52:52 GMT
Connection: close
{"error":"illegal_argument","timestamp":1478922772763,"duration":1,"error_description":"invalid
external provider : ","exception":"java.lang.IllegalArgumentException"}
{noformat}
So, this ticket should be closed, yes?
> 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.2.0
> Reporter: Brandon Shelley
> Fix For: 2.2.0
>
>
> 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)