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 #7059 - prevent an internal NPE in AllowedResourceAliasChecker doStart (9.4) #7081

Merged
merged 5 commits into from
Dec 6, 2021

Conversation

lachlan-roberts
Copy link
Contributor

Issue #7059

Backport of changes from PR #7076 to 9.4.x branch.

@lachlan-roberts lachlan-roberts requested a review from gregw November 5, 2021 00:50
Copy link
Contributor

@joakime joakime left a comment

Choose a reason for hiding this comment

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

Lets be more friendly to users.

gregw
gregw previously approved these changes Nov 10, 2021
@lachlan-roberts
Copy link
Contributor Author

I have added changes suggested by @joakime.

This introduces a behaviour change. The following code:

ContextHandler context = new ContextHandler();
context.setResourceBase(...);
context.addAliasCheck(customAliasCheck);
context.start();

Previously resulted in aliasCheckers={symlinkAliasCheck, customAliasCheck}, but will now result in just aliasCheckers={customAliasCheck}. So if anyone is relying on the default SymlinkAllowedResourceAliasChecker but is also adding another alias checker then they will be broken.

@lachlan-roberts lachlan-roberts merged commit e0beeea into jetty-9.4.x Dec 6, 2021
@lachlan-roberts lachlan-roberts deleted the jetty-9.4.x-7059-AliasCheckerNPE branch December 6, 2021 22:38
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.

3 participants