Hello,
I looked at the FastURLDecoder and the way it is used in the JSF backing beans, such as :
org.jboss.portal.core.identity.ui.EditProfileAction
Main question : FastURLDecoder is not multi thread safe ?
then, in the EditProfileAction, it is used like that :
private final static FastURLDecoder decoder = FastURLDecoder.getUTF8Instance();
and getUTF8Instance returns the same static instance of FastURLDecoder.
then, in case two threads call the encode() method at the same time... there will be some
mixing in the data, and bad result. no ?
I am not very used to these multi thread safe issues, but it seems to me that :
- either the FastURLDecoder should be programmed to be threads safe
- either it should not be used as a static in a jsf backing bean
did I missed something ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138244#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...