Christian Schneider created JCRVLT-881:
------------------------------------------

             Summary: Binary-less default config still declares the removed 
nodetype aggregate, which absorbs folder hierarchies
                 Key: JCRVLT-881
                 URL: https://issues.apache.org/jira/browse/JCRVLT-881
             Project: Jackrabbit FileVault
          Issue Type: Bug
          Components: core
            Reporter: Christian Schneider


{{defaultConfig-1.1-binaryless.xml}} still declares {{<aggregate 
type="nodetype"/>}}, which was removed from {{defaultConfig-1.1.xml}} together 
with the dedicated node type aggregator. {{Registry}} now maps {{nodetype}} to 
{{GenericAggregator}}. Without match or contains filters, it matches every 
node. It sits before the folder and default aggregates. During binary-less 
export (package property {{useBinaryReferences=true}}) it therefore absorbs 
nt:folder-like nodes and inlines their descendant hierarchy levels into an 
ancestor {{.content.xml}}.

A descendant that has a {{jcr:content}} child is still matched earlier by the 
file/folder aggregate and serialized in its own {{.content.xml}}. If its parent 
is not orderable, the ancestor document contains no placeholder for it. On 
REPLACE import with a filter that covers that node, the ancestor document 
removes it and its own document recreates it. Descendants excluded by the 
filter are lost (see JCRVLT-880 for the import side). Ordinary 
(non-binary-less) export of the same content produces one {{.content.xml}} per 
folder level and is not affected.

Expected: binary-less export uses the same aggregation as ordinary export, 
except for binary handling.

Fix: remove the obsolete {{nodetype}} aggregate from 
{{defaultConfig-1.1-binaryless.xml}}.



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

Reply via email to