Uploaded image for project: 'Usergrid (Retired)'
  1. Usergrid (Retired)
  2. USERGRID-1202

Error returned when calling /revoketoken?token=xxx on non-existent user returns 500

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.0
    • 2.2.0
    • Stack
    • None

    Description

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

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

      This error is returned:

      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"
      }

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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              brandonshelley Brandon Shelley
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: