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

Niall Pemberton resolved BEANUTILS-109.
---------------------------------------

    Resolution: Won't Fix

> [beanutils] BeanUtils.setProperty fails with mapped properties containing 
> several MAPPED_DELIM2 characters
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-109
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-109
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Expression Syntax
>    Affects Versions: 1.6
>         Environment: Operating System: All
> Platform: All
>            Reporter: Alejandro H. Gil Sanda
>             Fix For: 1.8.0
>
>
> If you have some struts property of type HashMap in a form bean, and the key 
> of 
> the hashmap has an "(" or an ")" the method will incorrectly parse the name 
> of 
> the property causing struts to fail.
> <html:text property="myhashmap(some_key_with_)_map_delim_in_it)" />
> Some fix to the problem is to change the following lines:
> BeanUtils.java:375
> - int k = propName.indexOf(PropertyUtils.MAPPED_DELIM2);
> + int k = propName.lastIndexOf(PropertyUtils.MAPPED_DELIM2);
> BeanUtils.java:914
> - int k = propName.indexOf(PropertyUtils.MAPPED_DELIM2);
> + int k = propName.lastIndexOf(PropertyUtils.MAPPED_DELIM2);

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to