-
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
Issue #11387: Reintroduce MultiPartCompliance.LEGACY in ee9/ee8 #11388
Conversation
* Test with MultiPartFormData.Parser and MultiPart.Parser * Enable all test cases * base64 behaviors modified to not auto-decode base64 content * forms submitted without `_charset_` part (some using a different charset than UTF-8, like `Shift_JIS`)
…_PREAMBLE to fit spec better
...ty-test-multipart/src/main/java/org/eclipse/jetty/tests/multipart/MultiPartExpectations.java
Dismissed
Show dismissed
Hide dismissed
…th CR and the next chunk ending with LF. Removed internal unused class MultiPartParser. Signed-off-by: Simone Bordet <[email protected]>
+ in MultiPart.Parser + in MultiPartFormData.Parser
+ lenient mode behavior + new name fits violation better + new tests
+ adding violation to MultiPart.Parser.parseHeaderStart
For people reviewing this PR. If you exclude (uncheck) the entries for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The violation/compliance stuff looks good, but the actual handing of a hanging CR looks wrong and needs some careful analysis.
Do we have a test that parses multi-part form 1 byte chunks?
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPart.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPart.java
Outdated
Show resolved
Hide resolved
I don't know, but it shouldn't be that hard to setup. |
This PR is largely complete. |
…ltipart-legacy-parser
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPart.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPart.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPart.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/MultiPartFormDataRawTest.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPartCompliance.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPartFormData.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPartFormData.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPart.java
Show resolved
Hide resolved
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPart.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPart.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPart.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPart.java
Show resolved
Hide resolved
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPartFormData.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Simone Bordet <[email protected]>
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/MultiPartFormData.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Simone Bordet <[email protected]>
Reintroduce MultiPartCompliance.LEGACY behaviors.