[MAGNOLIA-5066] Exporting a tree as xml starting from root includes rep:accesscontrol node Created: 30/May/13  Updated: 04/Dec/15  Resolved: 20/Jun/13

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 4.5.8, 5.0
Fix Version/s: 4.5.10

Type: Bug Priority: Critical
Reporter: Federico Grilli Assignee: Ondrej Chytil
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by MAGNOLIA-5118 CLONE - Exporting a tree as xml start... Closed
causality
relation
is related to JCRTOOLS-10 Exported tree as XML contains ACL info Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

To reproduce simply

The xml output will contain the following cruft on top

<sv:node sv:name="rep:accesscontrol">
    <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:value>rep:AccessControl</sv:value>
    </sv:property>
    <sv:node sv:name="everyone">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
        <sv:value>rep:PrincipalAccessControl</sv:value>
      </sv:property>
      <sv:node sv:name="rep:policy">
        <sv:property sv:name="jcr:primaryType" sv:type="Name">
          <sv:value>rep:ACL</sv:value>
        </sv:property>
        <sv:node sv:name="entry">
          <sv:property sv:name="jcr:primaryType" sv:type="Name">
            <sv:value>rep:GrantACE</sv:value>
          </sv:property>
          <sv:property sv:name="rep:nodePath" sv:type="Path">
            <sv:value>/</sv:value>
          </sv:property>
          <sv:property sv:name="rep:principalName" sv:type="String">
            <sv:value>everyone</sv:value>
          </sv:property>
          <sv:property sv:name="rep:privileges" sv:type="Name" sv:multiple="true">
            <sv:value>jcr:read</sv:value>
          </sv:property>
        </sv:node>
      </sv:node>
    </sv:node>
  </sv:node>


 Comments   
Comment by Jan Haderka [ 18/Jun/13 ]

Modification to VersionFilter is not enough. You need to adapt also info.magnolia.importexport.filters.ImportXmlRootFilter ... and better check if there's no more places with such filtering.

Generated at Mon Feb 12 04:01:39 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.