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 500 error when listing sidecars for a resource that doesn't exist #2529

Merged
merged 1 commit into from
Oct 6, 2021

Conversation

tcdowney
Copy link
Member

@tcdowney tcdowney commented Oct 1, 2021

  • A short explanation of the proposed change:

The list sidecars for an app/process endpoints would return a 500 - UnknownError response if the app/process didn't exist. This PR adds some tests and a nil check to correctly return 404 errors.

  • An explanation of the use cases your change solves

Makes these endpoints behave correctly.

  • Links to any other associated PRs

N/A

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests (nope)

- Endpoint now will correctly return 404 errors when the requested App
or Process doesn't exist

Authored-by: Tim Downey <tdowney@vmware.com>
@MarcPaquette MarcPaquette self-assigned this Oct 5, 2021
@MarcPaquette MarcPaquette merged commit 239c716 into main Oct 6, 2021
@philippthun philippthun deleted the fix-sidecars-index-unknown-error branch May 6, 2022 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants