Skip to content

Fix 500 error when parsing malformed referer header#6275

Merged
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/fix-saml-500-2
Apr 29, 2022
Merged

Fix 500 error when parsing malformed referer header#6275
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/fix-saml-500-2

Conversation

@mitchellhenke
Copy link
Contributor

We got a couple 500s in NewRelic in the form of URI::InvalidURIError: bad URI(is not URI?): on SAML authentication

This patch uses https://github.com/rails/rails/blob/3520cc77df1b52a6c808083214b583c769e9a4b2/actionpack/lib/action_controller/metal/redirecting.rb#L197-L201 as a reference

changelog: Bug Fixes, Logging, Fix error during SAML authentication when receiving invalid referer
@mitchellhenke mitchellhenke merged commit dde70cd into main Apr 29, 2022
@mitchellhenke mitchellhenke deleted the mitchellhenke/fix-saml-500-2 branch April 29, 2022 14:31
peggles2 pushed a commit that referenced this pull request May 3, 2022
changelog: Bug Fixes, Logging, Fix error during SAML authentication when receiving invalid referer
peggles2 pushed a commit that referenced this pull request May 5, 2022
changelog: Bug Fixes, Logging, Fix error during SAML authentication when receiving invalid referer
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