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 404 on SSO callback handler #4924

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Fix 404 on SSO callback handler #4924

merged 1 commit into from
Oct 1, 2024

Conversation

rli
Copy link
Contributor

@rli rli commented Sep 27, 2024

Browsers would attempt to request favicon.ico which fail all request chains, leading to platform fallback to BuiltInWebServer/DefaultWebServerPathHandler.

This would be fine, except the platform webserver respects the browser's Connection: keep-alive flag and keep sthe Netty channel open, and subsequent requests to .../oauthCallback/... get handled by DefaultWebServerPathHandler and always return 404.

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

Browsers would attempt to request `favicon.ico` which fail all request chains, leading to fallback to `BuiltInWebServer`/`DefaultWebServerPathHandler`.

This would be fine, except the platform webserver respects the browser's `Connection: keep-alive` flag and keep the Netty channel open, and subsequent
requests to `.../oauthCallback/...` get handled by `DefaultWebServerPathHandler` and always return 404.
@rli rli requested a review from a team as a code owner September 27, 2024 00:38
Copy link

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@@ -8,6 +8,7 @@
<title>AWS Authentication</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" media="screen" href="auth.css" />
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
Copy link
Contributor

Choose a reason for hiding this comment

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

Where does this href lead to?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

its a blank PNG in base64

@rli rli merged commit 21fac72 into main Oct 1, 2024
13 of 16 checks passed
@rli rli deleted the rli/login-404 branch October 1, 2024 22:57
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.

4 participants