mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-23 16:05:00 +00:00
* issue exclude/include con name InetAccesHandler - add better unit test this logic: String name = baseRequest.getHttpChannel().getConnector().getName(); return _names.test(name) && _addrs.test(addr); Is not correct. it's treating the connector name exactly like the filter. But that's not what it's intended to do. It's supposed to tell what connectors are applicable to this filter. And what connectors are not affected. For example in the unit test there exists 2 connectors: http tls We want to restrict the http connector, but we want to leave tls connector alone. So we would specify: include = 192.168.1.1-192.168.1.254 includeConnector = http The way the logic is above, it is treating the connector name as if it's the filter itself. Which is not what I intended. What i need in psuedo-code is this: if (there are no "include connectors" OR if this connector is included) AND (if this connector is not in the excluded list) ---> Then apply the IP filter. Signed-off-by: Nicholas DiPiazza <nicholas.dipiazza@lucidworks.com> * exclude should take precedence over include Signed-off-by: Nicholas DiPiazza <nicholas.dipiazza@lucidworks.com> * Issue #4193 InetAccessHandler reverted changes to IncludeExcludeSet Signed-off-by: Greg Wilkins <gregw@webtide.com> * Issue #4193 InetAccessHandler updates from review Signed-off-by: Greg Wilkins <gregw@webtide.com>