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

Unable to list tagged documents when no read permission to a document

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.10
    • Fix Version/s: 7.10-HF10, 8.3
    • Component/s: Tagging
    • Tags:
    • Backlog priority:
      600
    • Sprint:
      nxBD 8.3.1
    • Story Points:
      2

      Description

      When a tag (in the tag cloud) has at least one document that the user does not have access to, an error is raised when you try and navigate to the results.

      This error is found in the logs

      SEVERE: Error Rendering View[/search/tag_search_results.xhtml]
      org.nuxeo.ecm.core.api.DocumentSecurityException: Privilege 'Read' is not granted to 'tm'
      	at org.nuxeo.ecm.core.api.AbstractSession.checkPermission(AbstractSession.java:204)
      	at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:939)
      	at org.nuxeo.ecm.platform.tag.web.TagActionsBean.getChildrenSelectModel(TagActionsBean.java:244)
      

      And TagActionsBean#getChildrenSelectModel does not seem to check if the current user has Read permission on the documents in the results.

      Maybe it could be a good opportunity to migrate the tag results to a content view: NXP-10003

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 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