Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-6607

Console: Applying patch doesn't work

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • 2.24.00
    • 2.24.00
    • console
    • None
    • Testsuite, running locally

    Description

      Errors are generated when applying a patch.

      To reproduce:

      • Start with a fresh testsuite
      • Log in to the console
      • Change the "password" property of "/hippo:configuration/hippo:users/admin" to "admin"
      • Apply changes
      • Click on the "/hippo:configuration" node
      • Create patch and save it somewhere (patch.xml)
      • Restart testsuite with a fresh repository
      • Log in to the console
      • Click on the "/hippo:configuration" node
      • Click "Apply patch"
      • Choose the file (patch.xml)
      • Apply the patch
        Expected: The patch is applied without errors
        Actual: Errors occur.

      The following is logged in the console:
      [INFO] [talledLocalContainer] 2012-11-06 17:06:05,190 ERROR [http-8080-1] [org.onehippo.cms7.jcrdiff.patch.Patcher$Action.apply():79] Failed to execute operation
      [INFO] [talledLocalContainer] org.onehippo.cms7.jcrdiff.JcrDiffException: Could not set property hipposys:password
      [INFO] [talledLocalContainer] at org.onehippo.cms7.jcrdiff.content.jcr.JcrTreeNode.setProperty(JcrTreeNode.java:268)
      [INFO] [talledLocalContainer] at org.onehippo.cms7.jcrdiff.content.jcr.JcrTreeNode.setProperty(JcrTreeNode.java:241)
      [INFO] [talledLocalContainer] at org.onehippo.cms7.jcrdiff.patch.Patcher$UpdateAction.apply(Patcher.java:251)
      [INFO] [talledLocalContainer] at org.onehippo.cms7.jcrdiff.patch.Patcher$Action.apply(Patcher.java:74)
      [INFO] [talledLocalContainer] at org.onehippo.cms7.jcrdiff.patch.Patcher.applyPatch(Patcher.java:383)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.console.menu.patch.ApplyPatchDialog.applyPatch(ApplyPatchDialog.java:160)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.console.menu.patch.ApplyPatchDialog.access$400(ApplyPatchDialog.java:54)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.console.menu.patch.ApplyPatchDialog$ApplyPatchStep.execute(ApplyPatchDialog.java:241)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.console.dialog.MultiStepDialog.handleSubmit(MultiStepDialog.java:60)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.dialog.AbstractDialog$2.onSubmit(AbstractDialog.java:265)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.dialog.ButtonWrapper$1.onSubmit(ButtonWrapper.java:77)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.markup.html.form.AjaxButton$1.onSubmit(AjaxButton.java:101)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:156)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:312)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:157)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.PluginRequestCycleProcessor.processEvents(PluginRequestCycleProcessor.java:36)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1279)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.step(RequestCycle.java:1358)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1465)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:370)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:589)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      [INFO] [talledLocalContainer] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
      [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
      [INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:662)
      [INFO] [talledLocalContainer] Caused by: javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for

      {http://www.onehippo.org/jcr/hipposys/nt/1.0}

      password
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicablePropertyDef(EffectiveNodeType.java:782)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.getApplicablePropertyDefinition(NodeImpl.java:834)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.getOrCreateProperty(NodeImpl.java:435)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl$7.perform(NodeImpl.java:2099)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl$7.perform(NodeImpl.java:2092)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:2092)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1841)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.decorating.NodeDecorator.setProperty(NodeDecorator.java:119)
      [INFO] [talledLocalContainer] at org.onehippo.cms7.jcrdiff.content.jcr.JcrTreeNode.setProperty(JcrTreeNode.java:261)
      [INFO] [talledLocalContainer] ... 42 more

      Attachments

        Issue Links

          Activity

            People

              svoortman Simon Voortman (Inactive)
              svoortman Simon Voortman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: