You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/03/06 16:38:32 UTC

[jira] [Commented] (SLING-6614) JcrContentLoader should ignore protected nodes and properties

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

ASF GitHub Bot commented on SLING-6614:
---------------------------------------

GitHub user glucazeau opened a pull request:

    https://github.com/apache/sling/pull/201

    SLING-6614: check that property/parent node is not protected before import

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/glucazeau/sling dev

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/sling/pull/201.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #201
    
----
commit 08145afef696c2874eac9a94cc0bf0f7f2b5a0f1
Author: Guillaume Lucazeau <gl...@advanced-schema.com>
Date:   2017-03-06T14:53:33Z

    Check if property is protected before creation
    
    SLING-6614

commit 0821ce18328e0557eb0f05a908b7abaceb2803c2
Author: Guillaume Lucazeau <gl...@advanced-schema.com>
Date:   2017-03-06T14:54:44Z

    Fix existing unit tests
    
    SLING-6614

commit 90cab96bec0e7efe2877f8f366c1391afc511b14
Author: Guillaume Lucazeau <gl...@advanced-schema.com>
Date:   2017-03-06T14:57:13Z

    Add createProtectedProperty unit test
    
    SLING-6614

commit eb77aeebe45fbca408d42cd86ea1a01e1cd6efa8
Author: Guillaume Lucazeau <gl...@advanced-schema.com>
Date:   2017-03-06T16:07:13Z

    Add unit test for node creation under protected node
    
    SLING-6614

commit d03f1afd6a08ca664feceae5cf45f1203d2c869e
Author: Guillaume Lucazeau <gl...@advanced-schema.com>
Date:   2017-03-06T16:07:59Z

    Check parent node is not protected before creating node
    
    SLING-6614

----


> JcrContentLoader should ignore protected nodes and properties
> -------------------------------------------------------------
>
>                 Key: SLING-6614
>                 URL: https://issues.apache.org/jira/browse/SLING-6614
>             Project: Sling
>          Issue Type: Improvement
>          Components: JCR
>    Affects Versions: JCR ContentLoader 2.1.10
>            Reporter: Guillaume Lucazeau
>
> When exporting node tree from Sling as JSON, it would be nice to be able to import it directly into another path or JCR repository.
> Currently, this is not possible as the export contains protected properties ("jcr:created") and protected nodes (ACLs).
> The content loader should ignore them and process the other content.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)