Session.getPageMaps is not thread safe.
---------------------------------------

                 Key: WICKET-3668
                 URL: https://issues.apache.org/jira/browse/WICKET-3668
             Project: Wicket
          Issue Type: Bug
          Components: wicket-core
    Affects Versions: 1.4.17
            Reporter: Yaron


Session.getPageMaps first gets all attributes names, then it add all pageMaps 
with a name of a pageMap.

But another thread with the same session might remove the attribute in the time 
between the get attribues names and the get of the attribute.
So the result will include a null object that will throw null pointer in the 
sort.

The senario is basicly related to previous bug where pageMap was created for 
link with popup (So pageMap would exceed max level and massive removal of 
pageMaps).
But this could still happen, and should be easy to fix (Just don't add a null 
pageMap to the list)...

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to