[JCRTOOLS-10] Exported tree as XML contains ACL info Created: 04/Dec/15  Updated: 29/Mar/22  Resolved: 04/Dec/15

Status: Closed
Project: JCR Tools
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0

Type: Bug Priority: Major
Reporter: Federico Grilli Assignee: Bradley Andersen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 20m
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-5066 Exporting a tree as xml starting from... 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:
Sprint: Basel 22
Story Points: 1
Team: Nucleus

 Description   

The following node should be filtered out as it may cause troubles when re-imported. See related issue. In that case happened only when exporting from root, here happens from any sub-path too

<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 Bradley Andersen [ 04/Dec/15 ]

info.magnolia.module.admininterface.pages.ExportPage#exportxml calls info.magnolia.importexport.DataTransporter#executeExport, which contains the following, possibly interesting line:

```java
reader = new AccesscontrolNodeFilter(reader);
```

Comment by Bradley Andersen [ 04/Dec/15 ]

this eventually dies around L462 of DataTransporter due to keepVersionHistory being set as true in the new ExporterSubApp. as we don't offer to export versions, there should be nothing lost by simply setting that to false.

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