Issue Details (XML | Word | Printable)

Key: STR-2901
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Unassigned
Reporter: Stefan Podkowinski
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Struts 1

Map-backed forms won't work with ')' characters in keys

Created: 04/Jul/06 09:07 PM   Updated: 04/Jul/07 05:31 AM
Return to search "Shale Unresolved Bugs"
Component/s: None
Affects Version/s: 1.2.8
Fix Version/s: None

Environment: java 5, windows


 Description  « Hide

I'm trying to setup a form using the map-backed form pattern as described here:
http://struts.apache.org/1.x/userGuide/building_controller.html#map_action_form_classes

While working with xpath expressions as key values, i noticed that struts will have a unexpected behaviour on ')' occurences in keys.

<html:text property="value(/d:layout/d:page/d:layout-context[position()=1])"/>

the key value passed to get/setValue() becomes:
/d:layout/d:page/d:layout-context[position(

Appearently all characters after the closing bracket in "position()" will be simply cut off.

Please optimize parsing to the full string value as there is no reason not to use ')' characters in keys.



 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Niall Pemberton added a comment - 05/Jul/06 06:50 AM
The problem is with Commons BeanUtils, rather than Struts and there is already an open issue for this - BEANUTILS-109

http://issues.apache.org/jira/browse/BEANUTILS-109