[ 
https://issues.apache.org/jira/browse/JCRVLT-880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18147790#comment-18147790
 ] 

Christian Schneider commented on JCRVLT-880:
--------------------------------------------

[~kwin] Yes, FileVault generates it itself. A binary-less export 
({{useBinaryReferences=true}}, i.e. {{defaultConfig-1.1-binaryless.xml}}) of 
ordinary repository content produces it: {{nt:folder}}-derived, non-orderable 
folders (e.g. {{sling:Folder}}) above a folder that has a {{jcr:content}} 
child. The leftover {{nodetype}} aggregate (JCRVLT-881) inlines the ancestor 
folders into the topmost {{.content.xml}}. The folder with {{jcr:content}} is 
still serialized separately by the file/folder aggregate and gets no 
placeholder. {{BinaryPropertiesIT}} in 
https://github.com/apache/jackrabbit-filevault/pull/467 builds exactly this 
package with {{packMgr.assemble}} from repository content; ordinary export of 
the same content is not affected.

> REPLACE import deletes and recreates separately serialized nodes omitted from 
> an ancestor's .content.xml
> --------------------------------------------------------------------------------------------------------
>
>                 Key: JCRVLT-880
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-880
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: core
>            Reporter: Christian Schneider
>            Priority: Major
>
> When an ancestor {{.content.xml}} contains several inline hierarchy levels, a 
> node that sits deeper than those levels may be serialized in its own 
> {{.content.xml}} without a placeholder in the ancestor document. {{Importer}} 
> processes the ancestor first and only gives it hints for its immediate child 
> transactions. During REPLACE import, {{DocViewImporter}} therefore treats the 
> deeper node as absent and removes it if the filter covers it. Its own 
> {{.content.xml}} later recreates it. Descendants excluded by the filter are 
> lost, and the node is recreated with a new identity.
> Expected: separately serialized descendants are treated as package content 
> while the ancestor document is imported. Included nodes that are genuinely 
> absent from the package are still removed.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to