You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Andreas Köhler (JIRA)" <ji...@apache.org> on 2011/03/19 02:49:29 UTC
[jira] Created: (WICKET-3544) Race condition in WicketFilter
startup with following StringIndexOutOfBoundsException
Race condition in WicketFilter startup with following StringIndexOutOfBoundsException
-------------------------------------------------------------------------------------
Key: WICKET-3544
URL: https://issues.apache.org/jira/browse/WICKET-3544
Project: Wicket
Issue Type: Bug
Components: wicket-core
Affects Versions: 1.5-RC2
Reporter: Andreas Köhler
We noticed spurious problems with the startup of a Wicket application and some requests (to /wicket, if /wicket/* is the filter url-mapping) always throwing a StringIndexOutOfBoundsException.
The only way to fix this was to redeploy the app.
It seems this is due to a race condition in WicketFilter when determining the filterPathLength.
The attached patch contains a fix and also a test case. Feel free to apply the parts you like.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (WICKET-3544) Race condition in WicketFilter
startup with following StringIndexOutOfBoundsException
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-3544.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.5-RC3
Assignee: Martin Grigorov
Fixed with r1083519.
Thanks!
> Race condition in WicketFilter startup with following StringIndexOutOfBoundsException
> -------------------------------------------------------------------------------------
>
> Key: WICKET-3544
> URL: https://issues.apache.org/jira/browse/WICKET-3544
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC2
> Reporter: Andreas Köhler
> Assignee: Martin Grigorov
> Fix For: 1.5-RC3
>
> Attachments: filter-path-length.patch
>
>
> We noticed spurious problems with the startup of a Wicket application and some requests (to /wicket, if /wicket/* is the filter url-mapping) always throwing a StringIndexOutOfBoundsException.
> The only way to fix this was to redeploy the app.
> It seems this is due to a race condition in WicketFilter when determining the filterPathLength.
> The attached patch contains a fix and also a test case. Feel free to apply the parts you like.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (WICKET-3544) Race condition in WicketFilter
startup with following StringIndexOutOfBoundsException
Posted by "Andreas Köhler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Köhler updated WICKET-3544:
-----------------------------------
Attachment: filter-path-length.patch
Patch and test case
> Race condition in WicketFilter startup with following StringIndexOutOfBoundsException
> -------------------------------------------------------------------------------------
>
> Key: WICKET-3544
> URL: https://issues.apache.org/jira/browse/WICKET-3544
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC2
> Reporter: Andreas Köhler
> Attachments: filter-path-length.patch
>
>
> We noticed spurious problems with the startup of a Wicket application and some requests (to /wicket, if /wicket/* is the filter url-mapping) always throwing a StringIndexOutOfBoundsException.
> The only way to fix this was to redeploy the app.
> It seems this is due to a race condition in WicketFilter when determining the filterPathLength.
> The attached patch contains a fix and also a test case. Feel free to apply the parts you like.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira