[ 
http://jira.nuxeo.org/browse/NXP-2308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stéfane Fermigier updated NXP-2308:
-----------------------------------

    Fix Version/s:     (was: 5.2 M2)
                   5.2 M3

> Make property paths follow the XPath spec of 1-based indexes
> ------------------------------------------------------------
>
>                 Key: NXP-2308
>                 URL: http://jira.nuxeo.org/browse/NXP-2308
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>            Reporter: Florent Guillaume
>            Assignee: Florent Guillaume
>            Priority: Major
>             Fix For: 5.1.6, 5.2 M3
>
>         Attachments: NXP-2308-ui-changes.txt
>
>
> In the XPath spec, addessing an element of a list uses indexes that start at 
> 1. So if you want the first child of a <p> node, you do /p[1], not /p[0].
> It's the same in JCR paths, which use a subset of XPath for addressing.
> In Nuxeo currently when using dm.getProperty("some/xpath/expression[1]"), the 
> [1] refers to the second element of the array, not the first. This is 
> incorrect.
> As this is a potential backward compatibility problem, a system property will 
> be introduced so that projects that really need it and don't want to / can't 
> change their code can still use 0-based indexes.

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

       
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to