GitHub user fschrogl opened a pull request:

    https://github.com/apache/wicket/pull/230

    Replace filterPath pattern '/*' with empty string

    A filterPath pattern of '/*' is now replaced with an empty string. This 
matches the behavior of methods getFilterPathFromAnnotation() and 
getFilterPathFromConfig().
    
    I'm not sure if it's a bug, but I noticed the different beahvior when 
initializing Wicket in a Spring Boot application. When using a @WebFilter("/*") 
annotation or the init parameter filterMappingUrlPattern="/*" Wicket works as 
expected, but when doing the same programmatically with 
wicketFilter.setFilterPath("/*") the path gets internally rewritten to "*/" and 
Wicket than only handles HTTP requests to the root path.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/fschrogl/wicket patch-1

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/wicket/pull/230.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #230
    
----
commit 6ed034ec23213d50b799e6b6eb2b721eb7a3a9ce
Author: Fritz Schrogl <fschr...@users.noreply.github.com>
Date:   2017-08-26T20:20:19Z

    Replace filterPath pattern '/*' with empty string
    
    A filterPath pattern of '/*' is now replaced with an empty string. This 
matches the behavior of methods getFilterPathFromAnnotation() and 
getFilterPathFromConfig().

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to