Uploaded image for project: 'Explorer'
  1. Explorer
  2. EXPLORER-522

Export ZIP archive failed when an folder contains a non-authorized folder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.7.17, 4.8.4, 4.9.0
    • 4.7.14, 4.8.1, 4.9.0
    • None
    • None

      I have the following folders in ressources explorer

      My user has administrator profile on "Documents" folder.
      This same profile is denied to user on "Confidentiel" folder.

      From resources explorer, I select "Documents" folder and clic on "Export ZIP".

      A blank page is open.
      In logs there is the following error

      Caused by: org.ametys.runtime.authentication.AccessDeniedException: User UserIdentity [login=admin, population=ametys_demo_users] has no right to access the resource resource://829b9789-c662-471c-8808-cdd9aa225d01
      	at org.ametys.plugins.explorer.resources.readers.AmetysResourceReader.checkUserAccess(AmetysResourceReader.java:152)
      	at org.ametys.plugins.explorer.resources.readers.AmetysResourceReader.doSetup(AmetysResourceReader.java:88)
      	at org.ametys.core.util.cocoon.AbstractResourceReader.setup(AbstractResourceReader.java:66)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupReader(AbstractProcessingPipeline.java:597)
      

      Note that no READER profile is affected on resources.

            Unassigned Unassigned
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: