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

Fixes #32208 - accept trailing slash in Krb auth url #926

Merged
merged 1 commit into from
Mar 26, 2021

Conversation

ezr-ondrej
Copy link
Member

The Kerberos url is quite strict, but accepting trailing / is probably not bad and can avoid a lot of confusion

The Kerberos url is quite strict, but accepting trailing `/` is probably not bad and can avoid a lot of confusion
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

Does Rails accept a trailing slash for this route?

@ezr-ondrej
Copy link
Member Author

Does Rails accept a trailing slash for this route?

Yes, Rails doesn't care about those, it silently builds the unique URL. So it is very confusing why it's not working, because Rails are landing on a correct action, just without the correct headers (even negotiate happens, just not correctly, because it is forced by our curl --negotiate test command.

@ekohl ekohl merged commit 0e01088 into theforeman:master Mar 26, 2021
@ekohl ekohl added the Bug label Mar 26, 2021
@ezr-ondrej ezr-ondrej deleted the patch-1 branch March 31, 2021 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants