[
https://issues.apache.org/jira/browse/JCRVLT-24?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866852#comment-13866852
]
Tobias Bocanegra commented on JCRVLT-24:
----------------------------------------
the problem seems to be that the content.xml (3) that defines the ordering is
not the same that actually contains the items (4-7). vlt processes the
structural content.xml first (which does not contain the items) and then
installs the sub items. at that time, the ordering information is lost.
{noformat}
1: jcr_root/.content.xml
2: jcr_root/libs/ordertest/.content.xml
3: jcr_root/libs/ordertest/test/.content.xml
4: jcr_root/libs/ordertest/test/rail/items/modes/items/a.xml
5: jcr_root/libs/ordertest/test/rail/items/modes/items/b.xml
6: jcr_root/libs/ordertest/test/rail/items/modes/items/c.xml
7: jcr_root/libs/ordertest/test/rail/items/modes/items/d.xml
{noformat}
{code:title=3: .content.xml}
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0"
xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured">
<rail
jcr:primaryType="nt:unstructured">
<items jcr:primaryType="nt:unstructured">
<modes
jcr:primaryType="nt:unstructured">
<items jcr:primaryType="nt:unstructured">
<a/>
<d/>
<b/>
<c/>
</items>
</modes>
</items>
</rail>
</jcr:root>
{code}
{code:title=4: .content.xml}
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
xmlns:vlt="http://www.day.com/jcr/vault/1.0"
xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:mixinTypes="[vlt:FullCoverage]"
jcr:primaryType="sling:OrderedFolder"
icon="icon-compass"
name="A">
</jcr:root>
{code}
> Childnode order not respected for detached full coverage sub aggergates
> -----------------------------------------------------------------------
>
> Key: JCRVLT-24
> URL: https://issues.apache.org/jira/browse/JCRVLT-24
> Project: Jackrabbit FileVault
> Issue Type: Bug
> Affects Versions: 3.0
> Reporter: Tobias Bocanegra
> Assignee: Tobias Bocanegra
> Attachments: GRANITE-4673-0.0.1-SNAPSHOT.zip
>
>
> To reproduce the issue:
> * Start Granite load 2014.01a
> * Upload attached package to CRX package manager and install it
> * Observe /libs/ordertest/test/rail/items/modes/items are wrongly ordered in
> CRXDE Lite
> * Reinstall the package
> * Observe /libs/ordertest/test/rail/items/modes/items is now correctly ordered
> Note: this occurs independently of the way the package is
> installed/reinstalled (package manager, part of quickstart, using the maven
> content package plugin)
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)