Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pinging a non existing lock should not result in 500 error #184

Open
paterczm opened this issue Oct 26, 2015 · 1 comment
Open

Pinging a non existing lock should not result in 500 error #184

paterczm opened this issue Oct 26, 2015 · 1 comment
Labels

Comments

@paterczm
Copy link
Contributor

PUT https://{{host}}/rest/data/lock/domain/callerId/resourceId/ping

Results in

{
  "errors": [
    {
      "objectType": "error",
      "context": "rest/LockPingCommand/resourceId",
      "errorCode": "rest-crud:RestError",
      "msg": "com.redhat.lightblue.extensions.synch.InvalidLockException: resourceId"
    }
  ],
  "status": "ERROR"
}

Which is descriptive enough, but the result status should not be 500.

@paterczm paterczm added the bug label Oct 26, 2015
@paterczm
Copy link
Contributor Author

paterczm commented Nov 5, 2015

See HttpErrorMapper class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant