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

Fix federation/{id}/user & federation/{id}/deliveryservices id not found error #4088

Merged
merged 2 commits into from Nov 7, 2019

Conversation

mhoppa
Copy link
Contributor

@mhoppa mhoppa commented Nov 6, 2019

What does this PR (Pull Request) do?

Which Traffic Control components are affected by this PR?

  • CDN in a Box
  • Documentation
  • Grove
  • Traffic Control Client
  • Traffic Monitor
  • Traffic Ops
  • Traffic Ops ORT
  • Traffic Portal
  • Traffic Router
  • Traffic Stats
  • Traffic Vault

What is the best way to verify this PR?

If this is a bug fix, what versions of Traffic Control are affected?

The following criteria are ALL met by this PR

  • This PR includes tests OR I have explained why tests are unnecessary
  • This PR includes documentation OR I have explained why documentation is unnecessary
  • This PR includes an update to CHANGELOG.md OR such an update is not necessary
  • This PR includes any and all required license headers
  • This PR ensures that database migration sequence is correct OR this PR does not include a database migration
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Additional Information

@asf-ci
Copy link
Contributor

asf-ci commented Nov 6, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4721/

@mhoppa mhoppa changed the title Fix federation/{id}/user id not found error Fix federation/{id}/user & federation/{id}/deliveryservices id not found error Nov 6, 2019
@asf-ci
Copy link
Contributor

asf-ci commented Nov 6, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/4723/

@mitchell852 mitchell852 added Traffic Ops related to Traffic Ops bug something isn't working as intended labels Nov 6, 2019
Copy link
Contributor

@awilliams awilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good.

The related issues (#4087, #4090) report that the current behavior is to return an HTTP 500 response and ask that it be changed to 404. This changeset doesn't appear to alter any status codes.

@mhoppa
Copy link
Contributor Author

mhoppa commented Nov 6, 2019

Yeah the correct status code was always there. The problem was attempting to format a nil error value which caused a panic leading to the internal server error

Copy link
Contributor

@ocket8888 ocket8888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very simple change, confirmed that it builds and no longer de-references something that's nil.

@ocket8888 ocket8888 merged commit 1c2ebee into apache:master Nov 7, 2019
@mhoppa mhoppa deleted the bug/fix_fed_user_err branch November 7, 2019 17:48
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 Traffic Ops related to Traffic Ops
Projects
None yet
5 participants