Donate Share

portletUnit

Tracker: Bugs

5 portletUnit does not handle encoded parameters correctly - ID: 1876995
Last Update: Settings changed ( m0smith )

portletUnit does not seem to handle encoded parameters correctly.
If one uses HttpUnit to build a request, httpunit encodes the parameters
automatically. For example "foo bar" becomes "foo+bar".

When you use PortletReuqest.getParameter(..) in your portlet you get
"foo+bar" instead of the expected "foo bar" value.

The API says that the parameter should NOT be encoded
http://www.bluesunrise.com/portlet-api/javax/portlet/PortletRequest.html#ge
tParameter(java.lang.String)

Not sure where the fix should be applied. PortletUnitPortletRequest.java
would seem to be the most obvious place, but perhaps there is a better
location.


Matthew O. Smith ( m0smith ) - 2008-01-22 04:32

5

Open

None

Matthew O. Smith

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change ( 1 )

Field Old Value Date By
assigned_to nobody 2008-01-22 04:34 m0smith