-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
jetty.xml set maxFormContentSize not effect #7990
Comments
You are using an old version of Jetty (version 9.4.20), upgrade (to at least 9.4.46) and try again. Note: Jetty 9.x is entering End of Community support at the start of next month. (See: #7958) |
Also, Java 1.8_191 expired back on Feb 15, 2019. See https://www.oracle.com/java/technologies/javase/8u191-relnotes.html |
I try jetty-runner-9.4.46.v20220331.jar to run project, use <Call name="setAttribute">
<Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg>
<Arg>200</Arg>
</Call> no effect but use this config effect <Call class="java.lang.System" name="setProperty">
<Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg>
<Arg>200</Arg>
</Call> |
so i think should to modify the doc ( documentation/jetty-documentation/src/main/asciidoc/old_docs/security/configuring-form-size.adoc ) content <Call class="java.lang.System" name="setProperty">
<Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg>
<Arg>200</Arg>
</Call> |
Change <configure class="org.eclipse.jetty.server.Server">
...
</configure> for: <Configure class="org.eclipse.jetty.server.Server">
...
</Configure> |
This issue has been automatically marked as stale because it has been a |
This issue has been closed due to it having no activity. |
Jetty version(s)
jetty-9.4.20.v20190813
https://github.com/eclipse/jetty.project/releases/tag/jetty-9.4.20.v20190813
Java version/vendor
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
OS type/version
windows 10
Description
in documentation/jetty-documentation/src/main/asciidoc/old_docs/security/configuring-form-size.adoc description:
How to reproduce?
java -jar jetty-runner.jar --config jetty.xml --config jetty-https.xml simple.war
jetty.xml
the jetty.xml setAttribute no effect, I found issue
#4311
#4373
in org.eclipse.jetty.server.handler.ContextHandler
and commit id 8418f56
i found this class file org.eclipse.jetty.server.handler.ContextHandler#doStart method remove
so the jetty.xml Call setAttribute no effect, I think the doc should be that
If the above configuration is deemed correct, I will mention one pr
The text was updated successfully, but these errors were encountered: