Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-103071

Site Admin has no permission to access image in own Site

    Details

      Description

      1. Log in with admin user.
      2. Create a new user, and add it to the Liferay DXP site, and make him Site Administrator on that site.
      2.5 Enable local staging for the Liferay DXP site (leave default settings). (This step is important, the issue cannot be reproduced if the site is not staged)
      3. On the staging side, create a web content structure with an Image field. Create a template for it.
      4. Create a web content with this structure and upload an image from your PC (or an existing image that you previously uploaded to Documents and Media).
      5. On the home page of the site, put a Web Content Display portlet and configure it to show the content created at step 4.
      6. Log out and log in with the user created at step 2 (the site administrator).
      Result: The image is not visible and in the browser console, Network tab, you can check that the request to fetch it returns with 401(Unauthorized) code. Also, if you copy the image's URL (e.g. http://localhost:8080/documents/1012428/1012472/colonnina_bg.png/2e7c736b-b5e7-bb43-3a4d-cd02d2e4ef64?t=1557846687143) and paste it in a new tab in your browser, you will get a "Forbidden: You do not have the necessary permissions..." error.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              beck.liu Beck Liu
              Reporter:
              istvan.dezsi Istvan Dezsi
              Participants of an Issue:
              Recent user:
              Joel Garman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 6 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.0 DXP FP89
                  7.0.10.13 DXP SP13
                  7.0.X
                  7.1.10 DXP FP16
                  7.1.X
                  7.2.10 DXP FP4
                  7.2.X
                  7.2.1 CE GA2
                  7.3.10 DXP GA1
                  Master