Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-6958

Sling Eclipse IDE Tooling fails when exporting rep:policy nodes to server

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • Sling Eclipse IDE 1.1.0
    • None
    • IDE
    • None

    Description

      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:

      [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
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sseifert Stefan Seifert
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: