Skip to content

Conversation

@ndp-opendap
Copy link
Contributor

@ndp-opendap ndp-opendap commented Sep 8, 2025

I think this is a patch for the bug Hannah brought up in standup where an EDL 403 gets returned incorrectly as a 500 error.

@hannahilea hannahilea changed the title Patch for the 403 situation [HYRAX-1865] Patch for the 403 situation Sep 8, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 9, 2025

}
}
catch (Forbidden http_403){
log.error("Unable to validate Authorization header. Message: "+http_403.getMessage());
Copy link
Contributor Author

@ndp-opendap ndp-opendap Sep 11, 2025

Choose a reason for hiding this comment

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

There's a reason this was not throwing an exception prior to this. Throwing an exception here will break things - we need to reevaluate this bug and see if there's a better way to fix it.

@ndp-opendap ndp-opendap marked this pull request as draft September 11, 2025 22:38
Copy link
Collaborator

@hannahilea hannahilea left a comment

Choose a reason for hiding this comment

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

As of merging #240, the but this ticket addresses seems to already have been fixed on master?! I think the next step here is to confirm that the bug no longer reproduces---after which point we can probably close this PR without merging.

(Longer convo on Slack/repro steps in the the hyrax-1865 ticket.)

Copy link
Member

@jgallagher59701 jgallagher59701 left a comment

Choose a reason for hiding this comment

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

I'm going to approve this - meaning that you two know what's going on and I'm out of the loop. So, what you all decide, goes. If you want me to look over other tickets to get context, let me know.

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.

Fix the bit where a 403 is being repackaged as a 500 error in the OLFS

4 participants