You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2012/09/04 09:31:07 UTC

[jira] [Resolved] (WICKET-4747) WicketFilter#setFilterPath is broken

     [ https://issues.apache.org/jira/browse/WICKET-4747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4747.
-------------------------------------

    Resolution: Duplicate

Duplicate of WICKET-4737
                
> WicketFilter#setFilterPath is broken
> ------------------------------------
>
>                 Key: WICKET-4747
>                 URL: https://issues.apache.org/jira/browse/WICKET-4747
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.0.0
>            Reporter: Christoph Leiter
>            Priority: Critical
>
> In wicket 1.5 I initialize wicket this way:
>         WicketFilter wicket = new WicketFilter(webApplication);
>         wicket.setFilterPath("");
>         FilterRegistration.Dynamic filter = servletContext.addFilter("wicket", wicket);
> In 6.0.0 I get "Filter path is write-once. You can not change it. Current value=''
> That's because the logic in WicketFilter#init changed a bit and it re-sets the filter even though it has already been set (there's already a comment that it should be allowed but it's broken now).
> This
> 		if (configureFilterPath != null)
> 		{
> 			setFilterPath(configureFilterPath);
> 		}
> needs to be
> 		if (getFilterPath() == null && configureFilterPath != null)
> 		{
> 			setFilterPath(configureFilterPath);
> 		}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira