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

Fix login if the Read permission was removed to a document in the worklist

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.10, 8.2
    • Fix Version/s: 7.10-HF11, 8.3
    • Component/s: Security, Web Common
    • Tags:
    • Backlog priority:
      700
    • Sprint:
      nxDM 8.3.4
    • Story Points:
      3

      Description

      Steps to reproduce:

      1. log in as an administrator
      2. create a new user jdoe without any group
      3. grant Read permission to jdoe on the root of the repository
      4. log out
      5. log in as jdoe
      6. go to the default domain
      7. select the Sections document
      8. push the button "Add to Worklist"
      9. the Sections document is added to jdoe worklist
      10. log out
      11. log in as an administrator
      12. remove Read permisson on the root repository for jdoe
      13. log out
      14. try to log in as jdoe
        => this exception is raised: "You don't have the necessary permission to do the requested action."

      with the stacktrace

      Privilege 'Read' is not granted to 'jdoe'
      
      Caused by: org.nuxeo.ecm.core.api.DocumentSecurityException: Privilege 'Read' is not granted to 'jdoe'
      	at org.nuxeo.ecm.core.api.AbstractSession.checkPermission(AbstractSession.java:215)
      	at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:934)
      	at org.nuxeo.ecm.webapp.documentsLists.DocumentsListsPersistenceManager.getDocModel(DocumentsListsPersistenceManager.java:171)
      	at org.nuxeo.ecm.webapp.documentsLists.DocumentsListsPersistenceManager.loadPersistentDocumentsLists(DocumentsListsPersistenceManager.java:203)
      	at org.nuxeo.ecm.webapp.documentsLists.BaseDocumentsListsManager.createWorkingList(BaseDocumentsListsManager.java:131)
      	at org.nuxeo.ecm.webapp.documentsLists.DocumentsListsManagerBean.initListManager(DocumentsListsManagerBean.java:74)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h