commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Yeung (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CONFIGURATION-230) XPathExpressionEngine nodeKey method create a wrong key for attribute node
Date Mon, 16 Oct 2006 03:34:36 GMT
     [ http://issues.apache.org/jira/browse/CONFIGURATION-230?page=all ]

Andy Yeung updated CONFIGURATION-230:
-------------------------------------

    Attachment: ConfigTest.java

Oh, I have modified the testcase so that the test didn't pass when the xml is not reloaded.

> XPathExpressionEngine nodeKey method create a wrong key for attribute node
> --------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-230
>                 URL: http://issues.apache.org/jira/browse/CONFIGURATION-230
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.3 Final
>         Environment: Any
>            Reporter: Andy Yeung
>         Attachments: ConfigTest.java, ConfigTest.java
>
>
> In org.apache.commons.configuration.tree.xpath.XPathExpressionEngine line 178
>             if (node.isAttribute())
>             {
>                 buf.append(ATTR_DELIMITER);
>             }
> should be changed to 
>             if (node.isAttribute()) {
> 	buf.append(NODE_PATH_DELIMITERS);
>             }
> Using ATTR_DELIMITER will create key like element@attribute rather than element/@attribute
and make config reload fail.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
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