-
Notifications
You must be signed in to change notification settings - Fork 47
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
Java 21 regression bug: devserver (but not the production server) responds with HTTP 403 Forbidden when a securtiy constraint is defined upon a static file (e.g. index.html) #242
Comments
and I forgot to add: ...despite being logged in. |
Devappserver code path is really different than prod. Could you also try to deploy in prod and report? |
I deployed the test files (test-files.txt) on the production server. Apparently, the production server is not impacted by this bug. |
Thanks for attaching the repro app, @lachlan-roberts has already some ideas for a fix. |
Your I have been able to reproduce this, and removing the I am still investigating why these are combining to not allow the request. In my tests I am not seeing the request for |
I can even reproduce this on prod in the java8 runtime. The request is not served by Jetty because it is detected as a static file, and I can see in
This is different to how these constrains would combine in the servlet spec which should go to |
When setting
<java21>
in appengine-web.xml,and when a security constraint is defined over a static file (e.g. index.html), the devserver (and probably the production server) responds with HTTP 403 instead of serving the file.
Note that setting
<java17>
in appengine-web.xml is a workaround that prevents the issue.test-files.txt
The text was updated successfully, but these errors were encountered: