commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19733] New: - Unmatched delimiter in org.apache.commons.beanutils.PropertyUtils.getMappedProperty()
Date Wed, 07 May 2003 14:21:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19733>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19733

Unmatched delimiter in org.apache.commons.beanutils.PropertyUtils.getMappedProperty()

           Summary: Unmatched delimiter in
                    org.apache.commons.beanutils.PropertyUtils.getMappedProp
                    erty()
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: butor99@yahoo.com


The method org.apache.commons.beanutils.PropertyUtils.getMappedProperty() return
a wrong mapped property value when the property value contains chars like the
map delimiter "(" and ")".

I have a DynaFormBean (x_from) with a method getEnabled(). In this form I have
an entry of the type HashMap (iaP2). So when in my jsp I use the logic tag:

<logic:equal name="x_form" property="getEnabled(iaP2(mkt_sym))" value="true">

the method getEnabled() receive the key "iaP2(mkt_sym" the ")" are missing!

I looked at the beanutils code and found what imontionned at the begining. I
suggest that the method getMappedProperty() look at the matching ")" instead of
the first found!

If you agree with this I can send a fix.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message