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

Crash when navigating to a document if the user doesn't have READ on any parent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6
    • Fix Version/s: 5.7.1
    • Component/s: Seam / JSF UI

      Description

      To reproduce: A workflow can give temporary permissions to a user to access a document . The user doesn't have READ permission on any of the parents of that document. When trying to navigate to the document from his dashboard the application crashes with the following error:

      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      	at java.lang.String.substring(String.java:1937)
      	at java.lang.String.substring(String.java:1904)
      	at java.lang.String.substring(String.java:1937)
      	at java.lang.String.substring(String.java:1904)
      	at org.nuxeo.ecm.webapp.tree.DocumentTreeNodeImpl.isSelected(DocumentTreeNodeImpl.java:186)
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mcedica Mariana Cedica
                Reporter:
                mcedica Mariana Cedica
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: