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

Trying to update a DS that doesn't exist returns an Internal Server Error #5378

Closed
srijeet0406 opened this issue Dec 15, 2020 · 1 comment · Fixed by #5392
Closed

Trying to update a DS that doesn't exist returns an Internal Server Error #5378

srijeet0406 opened this issue Dec 15, 2020 · 1 comment · Fixed by #5392
Assignees
Labels
bug something isn't working as intended low impact affects only a small portion of a CDN, and cannot itself break one Traffic Ops related to Traffic Ops

Comments

@srijeet0406
Copy link
Contributor

srijeet0406 commented Dec 15, 2020

I'm submitting a ...

  • bug report

Traffic Control components affected ...

  • CDN in a Box
  • Traffic Ops

Current behavior:

Try making an API call to PUT (update) a delivery service that doesn't exist.
You will get back an internal server error (status code 500).
If you tail the logs, you'll see that this happens because the error is sql: no rows in result set (which is expected)

Expected behavior:

This action should return a 404 (not found) if the DS was not found, or maybe a 400 (bad request).

Minimal reproduction of the problem with instructions:

Same as mentioned above

Anything else:

I haven't checked if the other resources show a similar kind of behavior, maybe we need to check everything for this.

@srijeet0406 srijeet0406 added the bug something isn't working as intended label Dec 15, 2020
@mitchell852 mitchell852 added Traffic Ops related to Traffic Ops low impact affects only a small portion of a CDN, and cannot itself break one labels Dec 15, 2020
@mitchell852
Copy link
Member

yep, should be 404 Not Found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working as intended low impact affects only a small portion of a CDN, and cannot itself break one Traffic Ops related to Traffic Ops
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants