Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2319

Repository Explorer should reset navigation path to "root" when changing workspaces

    XMLWordPrintable

Details

    • Hide

      1) Build the latest version of the WF web-explorer-war file
      2) Go to the modeshape-jbossas-kit-tests module and run mvn clean process-test-classes
      3) Manually start the WF container from target/wildfly-8.1.0.Final
      4) Navigate to the artifacts repository and then from the default workspace to the /files path
      5) Change the workspace from the dropdown to extra

      Show
      1) Build the latest version of the WF web-explorer-war file 2) Go to the modeshape-jbossas-kit-tests module and run mvn clean process-test-classes 3) Manually start the WF container from target/wildfly-8.1.0.Final 4) Navigate to the artifacts repository and then from the default workspace to the /files path 5) Change the workspace from the dropdown to extra

    Description

      When a user navigates via the repository explorer to a given path in a workspace (e.g. default -> files) and then changes from the dropdown to another workspace (e.g. artifacts) the repository explorer expects the same path to be present and if that is not the case will raise an exception like:

      0:25:37,569 ERROR [stderr] (http-/127.0.0.1:8080-4) javax.jcr.PathNotFoundException: No node exists at path '/files' in workspace "extra"
      0:25:37,570 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.modeshape.jcr.JcrSession.cachedNode(JcrSession.java:611)
      0:25:37,571 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.modeshape.jcr.JcrSession.node(JcrSession.java:641)
      0:25:37,573 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.modeshape.jcr.JcrSession.node(JcrSession.java:660)
      0:25:37,577 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:844)
      0:25:37,578 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:827)
      0:25:37,580 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:134)
      0:25:37,580 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.modeshape.web.server.JcrServiceImpl.node(JcrServiceImpl.java:145)
      0:25:37,583 ERROR [stderr] (http-/127.0.0.1:8080-4)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      0:25:37,583 ERROR [stderr] (http-/127.0.0.1:8080-4)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      0:25:37,588 ERROR [stderr] (http-/127.0.0.1:8080-4)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      0:25:37,589 ERROR [stderr] (http-/127.0.0.1:8080-4)    at java.lang.reflect.Method.invoke(Method.java:606)
      0:25:37,590 ERROR [stderr] (http-/127.0.0.1:8080-4)    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
      0:25:37,591 ERROR [stderr] (http-/127.0.0.1:8080-4)    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
      0:25:37,594 ERROR [stderr] (http-/127.0.0.1:8080-4)    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
      0:25:37,595 ERROR [stderr] (http-/127.0.0.1:8080-4)    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
      0:25:37,597 ERROR [stderr] (http-/127.0.0.1:8080-4)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
      0:25:37,597 ERROR [stderr] (http-/127.0.0.1:8080-4)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      0:25:37,597 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
      0:25:37,598 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      0:25:37,599 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.modeshape.web.AuthFilter.doFilter(AuthFilter.java:61)
      0:25:37,599 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
      0:25:37,599 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
      0:25:37,600 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)
      0:25:37,600 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
      0:25:37,602 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:512)
      0:25:37,602 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
      0:25:37,603 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
      0:25:37,605 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
      0:25:37,606 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
      0:25:37,607 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)
      0:25:37,608 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      0:25:37,612 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
      0:25:37,613 ERROR [stderr] (http-/127.0.0.1:8080-4)    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)
      0:25:37,615 ERROR [stderr] (http-/127.0.0.1:8080-4)    at java.lang.Thread.run(Thread.java:724)
      

      The expected behavior should be, IMO, to reset the navigation path to the root of a workspace whenever the user changes the workspace from the dropdown (of course, provided it selects another workspace than the current one)

      Attachments

        Activity

          People

            oleg.kulikov Oleg Kulikov (Inactive)
            hchiorean Horia Chiorean (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: