Details

      Description

      1. Start liferay, e.g.
      docker run -it -p 8080:8080 --env LIFERAY_COMPANY_PERIOD_SECURITY_PERIOD_STRANGERS_PERIOD_VERIFY=false liferay/portal:7.3.1-ga2
      2. Login as administrator
      3. Create a user "content-editor" with rights to add documents, e.g. with the Administrator role and add a password
      4. Login as the "content-editor" user
      5. Upload a document as the "content-editor" in the main site (Liferay)
      6. Access the headless api for documents of the guest site and examine the output:
      curl -u
      test@liferay.com(opens in new tab)
      :test
      http://localhost:8080/o/headless-delivery/v1.0/sites/Guest/documents
      7. The JSON output contains information about the document uploaded in step #5
      8. As the test@liferay.com(opens in new tab) user, delete the "content-editor" user
      9. Repeat the headless api request as in step #6 and examine the outputExpected Result:The response still contains information about the documentActual result:The API call just returns the following, and even if there are other documents in the system, no data about them is returned (at least for the page of data that document is in){{{}}
      {{ "status" : "NOT_FOUND",}}
      {{ "title" : "No User exists with the primary key 35755"}}
      } (edited) 

        Attachments

          Activity

            People

            Assignee:
            manoel.cyreno Manoel Cyreno
            Reporter:
            javier.gamarra Javier Gamarra
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Javier Gamarra
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              36 weeks, 6 days ago

                Packages

                Version Package
                7.1.10 DXP FP19
                7.1.10.5 SP5
                7.1.X
                7.2.10 DXP FP7
                7.2.X
                7.3.3 CE GA4
                7.3.10 DXP GA1
                Master