Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14801

Office preview doesn't work for presentation documents when guest users have been denied view access

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 8.4.5
    • Fix Version/s: 9.11-rc-1, 8.4.6
    • Component/s: Resource
    • Labels:
      None
    • Development Priority:
      High
    • Difficulty:
      Medium
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      How to reproduce:

      • Deny view access right to guest users
      • Connect to the office server
      • Attach a presentation to a wiki page
      • Click on the eye icon near the attached presentation

      The image gallery appears but the slide images are not loaded.

      The reason is because the temporary resource handler doesn't initialize the XWiki context so the ContextualAuthorizationManager uses the null user reference (guest user reference) to check access rights.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: