Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-9028

Fix TreeActionsBean initialization where navigating to user workspace

    XMLWordPrintable

    Details

      Description

      If a user doesn't have access to the default domain, she's redirected to the dashboard after logging in.
      Then if she navigates to her personal workspace, she falls on this error

      Exception: org.nuxeo.ecm.core.api.DocumentException. message: Invalid reference (null)
      
                  javax.servlet.ServletException: /incl/tree_explorer.xhtml @12,46 test="#{!empty treeActions.treeRoots}": Error reading 'treeRoots' on type org.nuxeo.ecm.webapp.tree.TreeActionsBean_$$_javassist_47
      	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
      ...
      Caused by: javax.el.ELException: /incl/tree_explorer.xhtml @12,46 test="#{!empty treeActions.treeRoots}": Error reading 'treeRoots' on type org.nuxeo.ecm.webapp.tree.TreeActionsBean_$$_javassist_47
      	at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
      	at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:233)
      	at com.sun.facelets.tag.TagAttribute.getBoolean(TagAttribute.java:79)
      ...
      Caused by: org.nuxeo.ecm.core.api.ClientException: Failed to get document null
      	at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:1159)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ...
      Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: org.nuxeo.ecm.core.api.DocumentException. message: Invalid reference (null)
      	at org.nuxeo.ecm.core.api.DocumentResolver.resolveReference(DocumentResolver.java:57)
      

      Some initialization is needed to avoid this null value

        Attachments

          Activity

            People

            • Assignee:
              tmartins Thierry Martins
              Reporter:
              tmartins Thierry Martins
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: