2 Replies Latest reply on Apr 25, 2013 4:48 PM by Kristian Wright

    Packaging /rep:policy node - Node is protected

    Kristian Wright Level 1

      Hi all,

       

      I'm trying to package up some groups, along with their policy nodes down the content tree, so I can easily import them onto other Author instances via package manager.  All is working, except for the root rep:policy node.  When I try and install the package on an author, I get the following error thrown in the package manager when it tires to add this node:

       

      Error during processing:

       

      com.day.jcr.vault.packaging.PackageException: javax.jcr.nodetype.ConstraintViolationException: Unable to perform operation. Node is protected.

      at com.day.jcr.vault.packaging.impl.ZipVaultPackage.extract(ZipVaultPackage.java:365)

      at com.day.jcr.vault.packaging.impl.JcrPackageImpl.extract(JcrPackageImpl.java:364)

      at com.day.jcr.vault.packaging.impl.JcrPackageImpl.install(JcrPackageImpl.java:337)

      at com.day.crx.packaging.impl.J2EEPackageManager.consoleInstall(J2EEPackageManager.java:327)

      at com.day.crx.packaging.impl.J2EEPackageManager.doPost(J2EEPackageManager.java:173)

      at com.day.crx.packaging.impl.PackageManagerServlet.doPost(PackageManagerServlet.java:143)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

      at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)

      at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)

      at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)

      at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)

      at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

      at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)

      at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

      at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

      at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

      at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

      at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:238)

      at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

      at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

      at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

      at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

      at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179)

      at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

      at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

      at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

      at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

      at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75 )

      at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

      at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

      at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

      at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

      at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)

      at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)

      at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

      at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:250)

      at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)

      at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)

      at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:377)

      at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:351)

      at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:625)

      at java.lang.Thread.run(Thread.java:680)

      Caused by: javax.jcr.nodetype.ConstraintViolationException: Unable to perform operation. Node is protected.

      at org.apache.jackrabbit.core.ItemValidator.checkCondition(ItemValidator.java:276)

      at org.apache.jackrabbit.core.ItemValidator.checkRemove(ItemValidator.java:254)

      at org.apache.jackrabbit.core.ItemRemoveOperation.perform(ItemRemoveOperation.java:63)

      at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)

      at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)

      at org.apache.jackrabbit.core.ItemImpl.remove(ItemImpl.java:322)

      at com.day.jcr.vault.fs.io.Importer.commit(Importer.java:827)

      at com.day.jcr.vault.fs.io.Importer.commit(Importer.java:747)

      at com.day.jcr.vault.fs.io.Importer.commit(Importer.java:783)

      at com.day.jcr.vault.fs.io.Importer.commit(Importer.java:783)

      at com.day.jcr.vault.fs.io.Importer.run(Importer.java:415)

      at com.day.jcr.vault.packaging.impl.ZipVaultPackage.extract(ZipVaultPackage.java:360)

      ... 43 more

       

      Error: javax.jcr.nodetype.ConstraintViolationException: Unable to perform operation. Node is protected.

       

      The filter in the package for this node is  /rep:policy/allow1, so I'm making sure just to grab the ACL I'm interested in, nothing more.  I've tried all the combinations of Access Control Handling when I'm installing, but I can never get this policy to be added to the author.  All it contains is read access to the root for my group.

       

      Does anyone know how I can get past this, or another way to achieve what I'm trying to do?

       

      Thanks,

      K