[jira] [Created] (SLING-6958) Sling Eclipse IDE Tooling fails when exporting rep:policy nodes to server

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (SLING-6958) Sling Eclipse IDE Tooling fails when exporting rep:policy nodes to server

JIRA jira@apache.org
Stefan Seifert created SLING-6958:
-------------------------------------

             Summary: Sling Eclipse IDE Tooling fails when exporting rep:policy nodes to server
                 Key: SLING-6958
                 URL: https://issues.apache.org/jira/browse/SLING-6958
             Project: Sling
          Issue Type: Bug
          Components: IDE
    Affects Versions: Sling Eclipse IDE 1.1.0
            Reporter: Stefan Seifert
             Fix For: Sling Eclipse IDE 1.2.0


usecase - try to export an content package eclipse project with sling ide tooling (i've tested only version 1.1.0) to a local instance, e.g. this one:
https://github.com/Adobe-Marketing-Cloud/aem-sample-we-retail/tree/master/ui.apps

this fails once it hits the "rep:policy" node with this exception:
{noformat}
[14. Juni 2017 15:48:26 MESZ] AddOrUpdateNodeCommand -> /apps/public/weretail/hapi_types : JcrResult[ success:true] (25 ms)
[14. Juni 2017 15:48:26 MESZ] AddOrUpdateNodeCommand -> /apps/public/weretail/hapi_types/rep:policy : JcrResult[ success:false, exception: org.apache.sling.ide.transport.RepositoryException - javax.jcr.nodetype.ConstraintViolationException: {}allow is protected.] (12 ms)
org.apache.sling.ide.transport.RepositoryException: javax.jcr.nodetype.ConstraintViolationException: {}allow is protected.
        at org.apache.sling.ide.impl.vlt.JcrResult.failure(JcrResult.java:33)
        at org.apache.sling.ide.impl.vlt.JcrCommand.execute(JcrCommand.java:76)
        at org.apache.sling.ide.transport.TracingCommand.execute(TracingCommand.java:45)
        at org.apache.sling.ide.eclipse.ui.internal.ExportWizard$1$2.visit(ExportWizard.java:89)
        at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:120)
        at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:84)
        at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
        at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
        at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
        at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
        at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
        at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
        at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:129)
        at org.eclipse.core.internal.resources.Resource.accept(Resource.java:94)
        at org.eclipse.core.internal.resources.Resource.accept(Resource.java:52)
        at org.eclipse.core.internal.resources.Resource.accept(Resource.java:117)
        at org.eclipse.core.internal.resources.Resource.accept(Resource.java:105)
        at org.apache.sling.ide.eclipse.ui.internal.ExportWizard$1.run(ExportWizard.java:81)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
Caused by: javax.jcr.nodetype.ConstraintViolationException: {}allow is protected.
        at org.apache.jackrabbit.jcr2spi.nodetype.EffectiveNodeTypeImpl.checkAddNodeConstraints(EffectiveNodeTypeImpl.java:375)
        at org.apache.jackrabbit.jcr2spi.state.ItemStateValidator.checkAddNode(ItemStateValidator.java:388)
        at org.apache.jackrabbit.jcr2spi.state.SessionItemStateManager.addNodeState(SessionItemStateManager.java:435)
        at org.apache.jackrabbit.jcr2spi.state.SessionItemStateManager.visit(SessionItemStateManager.java:245)
        at org.apache.jackrabbit.jcr2spi.operation.AddNode.accept(AddNode.java:79)
        at org.apache.jackrabbit.jcr2spi.state.SessionItemStateManager.execute(SessionItemStateManager.java:215)
        at org.apache.jackrabbit.jcr2spi.NodeImpl.createNode(NodeImpl.java:1454)
        at org.apache.jackrabbit.jcr2spi.NodeImpl.addNode(NodeImpl.java:186)
        at org.apache.sling.ide.impl.vlt.AddOrUpdateNodeCommand.createNode(AddOrUpdateNodeCommand.java:176)
        at org.apache.sling.ide.impl.vlt.AddOrUpdateNodeCommand.update(AddOrUpdateNodeCommand.java:100)
        at org.apache.sling.ide.impl.vlt.AddOrUpdateNodeCommand.update(AddOrUpdateNodeCommand.java:112)
        at org.apache.sling.ide.impl.vlt.AddOrUpdateNodeCommand.execute0(AddOrUpdateNodeCommand.java:85)
        at org.apache.sling.ide.impl.vlt.AddOrUpdateNodeCommand.execute0(AddOrUpdateNodeCommand.java:1)
        at org.apache.sling.ide.impl.vlt.JcrCommand.execute(JcrCommand.java:68)
        ... 17 more
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)