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

Basic Authentication doesn't work with path: /c/document_library/get_file

    Details

      Description

      Reproduction steps:
      1) Start Liferay
      2) Upload a file with no Guest permission
      3) Go to Control Panel -> System Settings -> Security -> API Authentication -> Auto Login Basic Authentication Header
      Check Enabled then Save
      4) Get the document's uuid and the site's groupId and replace them in the following curl command:

      curl --location --request GET 'http://localhost:8080/c/document_library/get_file?uuid=3f42f6d3-8bb1-2a13-1b18-728c3f5c575c&groupId=20127' \
      --header 'Accept: application/pdf ' \
      --header 'Authorization: Basic dGVzdEBsaWZlcmF5LmNvbTp0ZXN0'
      

      You emailaddress and password should be: test@liferay.com test
      5) Execute the above command

      Result: The file cannot be accessed.

        Attachments

          Activity

            People

            Assignee:
            della.wang Della Wang
            Reporter:
            istvan.sajtos Istvan Sajtos
            Participants of an Issue:
            Recent user:
            Jason Pince
            Engineering Assignee:
            Istvan Sajtos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              28 weeks, 4 days ago

                Packages

                Version Package
                7.1.10 DXP FP18
                7.1.X
                7.2.10 DXP FP5
                7.2.10.2 DXP SP2
                7.2.X
                7.3.10 DXP GA1
                Master