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

Validation error when adding a new folder in document perspective

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: CMS-10.0-alpha-1, 10.0.2
    • Fix Version/s: 4.2.0
    • Component/s: None
    • Labels:
    • Similar issues:
    • Story Points:
      1
    • Sprint:
      Tiger Sprint 149, Tiger Sprint 150
    • Processed by team:
      Tiger

      Description

      Please note that I was only able to reproduce this issue twice out of approximately 20 times, so some effort might be needed to reproduce.

      Steps to reproduce (using cargo.run on gogreen and Chrome browser)

      • login CMS (as author)
      • open document perspective
      • click Hippo Go Green folder
      • right-mouse and select "Add new translated folder"
      • Type in F in Name input field
      • Hit ENTER
        Expected:
        Modal window closes and a folder named F is created as child of Hippo Go Green folder
        Actual:
        Alert panel is displayed with the text "Error to validate input names". See screenshot.

      Work-around: ignore the warning and click OK.

      Logging with stack-trace:
      16.04.2015 10:31:40 ERROR [org.hippoecm.frontend.plugins.standardworkflow.validators.AddDocumentValidator.validate():69] validation error
      javax.jcr.RepositoryException: Failed to resolve path relative to node /content/documents/hippogogreen
      at org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:240)
      at org.apache.jackrabbit.core.NodeImpl.resolveRelativeNodePath(NodeImpl.java:223)
      at org.apache.jackrabbit.core.NodeImpl.hasNode(NodeImpl.java:2281)
      at org.hippoecm.repository.decorating.NodeDecorator.hasNode(NodeDecorator.java:299)
      at org.hippoecm.frontend.plugins.standardworkflow.validators.AddDocumentValidator.validate(AddDocumentValidator.java:61)
      at org.apache.wicket.markup.html.form.validation.FormValidatorAdapter.validate(FormValidatorAdapter.java:55)
      at org.apache.wicket.markup.html.form.Form.validateFormValidator(Form.java:1993)
      at org.apache.wicket.markup.html.form.Form.validateFormValidators(Form.java:2006)
      at org.apache.wicket.markup.html.form.Form.validate(Form.java:1861)
      at org.apache.wicket.markup.html.form.Form.process(Form.java:921)
      at org.hippoecm.frontend.dialog.AbstractDialog.process(AbstractDialog.java:668)
      at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:784)
      at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:171)
      at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:146)
      at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:633)
      at sun.reflect.GeneratedMethodAccessor190.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
      at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
      at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250)
      at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
      at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:890)
      at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
      at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
      at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
      at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
      at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
      at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
      at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:106)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      at org.apache.catalina.core.StandardHostValve.__invoke(StandardHostValve.java:142)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
      at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1517)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1474)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: empty path
      at org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:219)
      at org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:177)
      at org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:149)
      at org.hippoecm.repository.jackrabbit.HippoPathParser.parse(HippoPathParser.java:68)
      at org.hippoecm.repository.jackrabbit.HippoCachingPathResolver.getQPath(HippoCachingPathResolver.java:53)
      at org.hippoecm.repository.jackrabbit.HippoNamePathResolver.getQPath(HippoNamePathResolver.java:61)
      at org.apache.jackrabbit.core.SessionImpl.getQPath(SessionImpl.java:652)
      at org.apache.jackrabbit.core.session.SessionContext.getQPath(SessionContext.java:338)
      at org.apache.jackrabbit.core.NodeImpl.resolveRelativePath(NodeImpl.java:238)
      ... 53 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                meggermont Michiel Eggermont
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: