Skip to content

Fixes #4577 IPAccessHandler in context#4580

Merged
gregw merged 3 commits intojetty-9.4.xfrom
jetty-9.4.x-4577-IPAccessHandler-target
Feb 25, 2020
Merged

Fixes #4577 IPAccessHandler in context#4580
gregw merged 3 commits intojetty-9.4.xfrom
jetty-9.4.x-4577-IPAccessHandler-target

Conversation

@gregw
Copy link
Copy Markdown
Contributor

@gregw gregw commented Feb 17, 2020

Fixes and tests #4577 IPAccessHandler in context by using target instead of pathInfo for path matching.

Signed-off-by: Greg Wilkins gregw@webtide.com

Fixes and tests #4577 IPAccessHandler in context by using target instead of pathInfo for path matching.

Signed-off-by: Greg Wilkins <gregw@webtide.com>
@gregw gregw requested a review from sbordet February 17, 2020 07:14
This was referenced Feb 17, 2020
@gregw
Copy link
Copy Markdown
Contributor Author

gregw commented Feb 17, 2020

The behaviour is il defined if this handler is within a context and a named dispatch is done. As t his is a deprecated handler, I am not inclined to define this behaviour.

@sbordet
Copy link
Copy Markdown
Contributor

sbordet commented Feb 21, 2020

Class IPAccessHandler is deprecated, but lacks the @Deprecated annotation, can you please add it?

Copy link
Copy Markdown
Contributor

@sbordet sbordet left a comment

Choose a reason for hiding this comment

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

@gregw I'm surprised that the functionality of matching the URI that we have here is missing from InetAccessHandler.
Do we have it elsewhere, also considering this class has been removed from Jetty 10?

Updates from review.

Signed-off-by: Greg Wilkins <gregw@webtide.com>
@gregw
Copy link
Copy Markdown
Contributor Author

gregw commented Feb 21, 2020

Looking at the commit comments for InetAccessHandler, they suggest that URI mapping was intended to be added eventually. I'll open a new issue to track it. (edit see: #4598)

@gregw gregw requested a review from sbordet February 21, 2020 19:39
@joakime joakime linked an issue Feb 22, 2020 that may be closed by this pull request
Match on full URI path rather than target.

Signed-off-by: Greg Wilkins <gregw@webtide.com>
@gregw gregw merged commit 9bb6840 into jetty-9.4.x Feb 25, 2020
@sbordet sbordet deleted the jetty-9.4.x-4577-IPAccessHandler-target branch February 25, 2020 09:06
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.

request getPathInfo returns null

3 participants