-
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
Improve CookieCompliance testing #9399
Conversation
gregw
commented
Feb 20, 2023
- Improved handling of CookieCompliance.from method
- Added tests for request and response cookie handling
- Use from in jetty.xml
Improved handling of CookieCompliance.from method Added tests for request and response cookie handling Use from in jetty.xml
Improved handling of CookieCompliance.from method Added tests for request and response cookie handling Use from in jetty.xml
@olamy these fixes may help with the TCK cookie failure. At the very least the |
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/HttpCompliance.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/Request.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/RFC6265CookieParser.java
Outdated
Show resolved
Hide resolved
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/RFC6265CookieParser.java
Outdated
Show resolved
Hide resolved
Improved handling of CookieCompliance.from method Added tests for request and response cookie handling Use from in jetty.xml
InvalidCookieException
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.
Just a niggle that the InvalidCookieException is a declared throwable in some APIs, and it a useful exception type to work with, it shouldn't be a nested private class, it should be it's own type.
jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/CookieParser.java
Outdated
Show resolved
Hide resolved
@olamy any chance of testing this against the TCK before the merge? |
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.
Not a fan of the hidden inner exception that isn't at least static, but lets get this merged.
I did but this didn't look to fix the TCK test. |
@joakime it is not hidden. It's static by default because it is in an interface. If I add the static keyword, intellij tells me that it is not needed. It is not different to |
I'm putting this PR on hold an updating #9402 to include the bulk of these changes, and then merge them back through from 10. |
Fix incorrect change to RFC6265 to not support dollars in cookie names. Included updates and tests from #9399 Signed-off-by: gregw <gregw@webtide.com>
Fix incorrect change to RFC6265 to not support dollars in cookie names. Included updates and tests from #9399 Signed-off-by: gregw <gregw@webtide.com>
Signed-off-by: gregw <gregw@webtide.com>
Exceptions will propagate through lots of complex logging scenarios. The other examples don't propagate through other layers like logging. |
@joakime it is static. All classes within an interface are static: |
…est-CookieCompliance-from