You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "John Ray (JIRA)" <ji...@apache.org> on 2007/09/08 23:17:29 UTC

[jira] Updated: (WICKET-946) WebRequestCodingStrategy is not synchronized

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

John Ray updated WICKET-946:
----------------------------

    Attachment: WebRequestCodingStrategy.java

> WebRequestCodingStrategy is not synchronized
> --------------------------------------------
>
>                 Key: WICKET-946
>                 URL: https://issues.apache.org/jira/browse/WICKET-946
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta3
>            Reporter: John Ray
>         Attachments: WebRequestCodingStrategy-patch, WebRequestCodingStrategy.java
>
>
> The WebRequestCodingStrategy class uses a TreeMap to store mounted pages however there is no synchronization done. This will cause problems if pages are being mounted/unmounted by one thread while web requests are being served from a different one. It could also cause problems if two threads try to mount/unmount pages at the same time.
> I'll include a patch to fix this as well as a new version of the java file that you can use if you want
> Keep up the good work

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.