Skip to content

Issue #4598 - rework InetAccessHandler to use path mappings#4615

Merged
lachlan-roberts merged 5 commits intojetty-10.0.xfrom
jetty-10.0.x-4598-InetAccessHandler
Mar 1, 2020
Merged

Issue #4598 - rework InetAccessHandler to use path mappings#4615
lachlan-roberts merged 5 commits intojetty-10.0.xfrom
jetty-10.0.x-4598-InetAccessHandler

Conversation

@lachlan-roberts
Copy link
Copy Markdown
Contributor

Issue #4598

InetAccessHandler now works on patterns with an optional connector name, address and URI mapping.

The connector name is separated from the InetAddress pattern with an '@' character, and the InetAddress pattern is separated from the URI pattern using the "|" (pipe) character.

Examples:
- "connector1@127.0.0.1|/foo"
- "127.0.0.1|/foo"
- "connector1@127.0.0.1"
- "127.0.0.1"


Note: this completely changes the previous behaviour where the set of connector names defined only which connectors you wanted the filter to apply to. Now the code:

include("127.0.0.1", "connector1@")

will include any requests from the address 127.0.0.1 OR requests on connector1.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
…er' into jetty-10.0.x-4598-InetAccessHandler
Copy link
Copy Markdown
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 think this is a much better approach. It is a pity about the changed API and I think we should deprecate those methods to help, but other than those niggles: LGTM

@joakime joakime linked an issue Feb 28, 2020 that may be closed by this pull request
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@lachlan-roberts lachlan-roberts merged commit 6151fc0 into jetty-10.0.x Mar 1, 2020
@lachlan-roberts lachlan-roberts deleted the jetty-10.0.x-4598-InetAccessHandler branch March 1, 2020 07:43
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.

Add URI mapping to InetAccessHandler

2 participants