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

Check if the bundle config exists, return 404 if missing #944

Merged
merged 3 commits into from
Oct 5, 2024

Conversation

trevorgerhardt
Copy link
Member

When retrieving the config, return a clearer error if the file cannot be found so that can be handled individually.

Copy link
Member

@ansoncfit ansoncfit left a comment

Choose a reason for hiding this comment

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

For future reference, the 404 return code is not explicit in this controller -- it's specified in AnalysisServerException#notFound()

@@ -327,13 +327,17 @@ private Bundle getBundle (Request req, Response res) {
* and is considered the definitive source of truth. The entry in the database is a newer addition and has only
* been around since September 2024.
*/
private TransportNetworkConfig getBundleConfig (Request request, Response res) {
private TransportNetworkConfig getBundleConfig(Request request, Response res) {
Copy link
Member

Choose a reason for hiding this comment

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

Different style settings in IDE?

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess so? I did not intentionally change that. Similarly with the moving import, probably from "organize imports" on save.

@trevorgerhardt trevorgerhardt merged commit e5a9a26 into dev Oct 5, 2024
3 checks passed
@trevorgerhardt trevorgerhardt deleted the check-config-exists branch October 5, 2024 02:01
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.

2 participants