You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (JIRA)" <ji...@apache.org> on 2014/07/17 14:55:04 UTC

[jira] [Resolved] (SLING-3764) Incorrect resource processing order - directory artifact processed before primary artifact

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

Robert Munteanu resolved SLING-3764.
------------------------------------

    Resolution: Fixed

> Incorrect resource processing order - directory artifact processed before primary artifact
> ------------------------------------------------------------------------------------------
>
>                 Key: SLING-3764
>                 URL: https://issues.apache.org/jira/browse/SLING-3764
>             Project: Sling
>          Issue Type: Bug
>          Components: IDE
>    Affects Versions: Sling Eclipse IDE 1.0.0
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>             Fix For: Sling Eclipse IDE 1.0.2
>
>
> It seems that with a specific content  structure a clean publish fails:
> Here's what we have:
> {code}
> en [cq:Page]
>  jcr:content [nt:unstructured]
>   image [nt:unstructured]
>     file [nt:file] ! <-- has file.dir/.content.xml
>       jcr:content [nt:resource]
>         dam:thumbnails [nt:folder]
>           _dam_thumbnail_319.png [nt:file]
> {code}
> The error comes up when trying to create the nt:resource node at en/jcr:content/image/file/jcr:content since the parent 'file' node does not exist. Debugging the list of changes, it seems that the _jcr_content folder comes in before the .content.xml file belonging to the file folder.
> {code}
> 36 - ModuleFolder [file.dir, content/testproject/_jcr_content/image/file.dir]
> 37 - ModuleFolder [_jcr_content, content/testproject/_jcr_content/image/file.dir/_jcr_content]
> 38 - ModuleFolder [_dam_thumbnails, content/testproject/_jcr_content/image/file.dir/_jcr_content/_dam_thumbnails]
> 39 - ModuleFile [_dam_thumbnail_319.png, content/testproject/_jcr_content/image/file.dir/_jcr_content/_dam_thumbnails/_dam_thumbnail_319.png, 1404475333440]
> 40 - ModuleFile [.content.xml, content/testproject/_jcr_content/image/file.dir/.content.xml, 1404475333414]
> {code}
> This is visible when debugging the SlingContentModuleAdapter
> {code}
> [ test002.ui] :  added resource at content/testproject/_jcr_content
> [ test002.ui] :  added resource at content/testproject/_jcr_content/image
> [ test002.ui] :  added resource at content/testproject/_jcr_content/image/file.dir
> [ test002.ui] :  added resource at content/testproject/_jcr_content/image/file.dir/_jcr_content
> [ test002.ui] :  added resource at content/testproject/_jcr_content/image/file.dir/_jcr_content/_dam_thumbnails
> [ test002.ui] :  added resource at content/testproject/_jcr_content/image/file.dir/_jcr_content/_dam_thumbnails/_dam_thumbnail_319.png
> [ test002.ui] :  added resource at content/testproject/_jcr_content/image/file.dir/.content.xml
> [ test002.ui] :  added resource at content/testproject/_jcr_content/image/file
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)