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

Issue #4985 - fix NPE related to use of Attributes.Wrapper getAttributeNameSet() Jetty 10 #5046

Merged
merged 3 commits into from
Jul 15, 2020

Conversation

lachlan-roberts
Copy link
Contributor

Merge the changes from PR #5004 to Jetty 10

Had to do things a bit differently due to conflicts due to the ServletPathMapping changes.

In IncludeAttributes.getAttributeNameSet() we now actually call getAttribute() to check if each field is null. We can't assign these fields in the constructor as the ServletPathMapping isn't set until the request goes through the ServletHandler.

…teNameSet()

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

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

I still kind of think that a null pathInfo is still a value in the map.... but as it does break down stream users I guess we revert back to this style.

@lachlan-roberts lachlan-roberts merged commit cadaf87 into jetty-10.0.x Jul 15, 2020
@lachlan-roberts lachlan-roberts deleted the jetty-10.0.x-4985-AttributeNameSet branch July 15, 2020 22:52
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.

2 participants