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

Using the property "portal.proxy.path" can't directly download file.

    Details

      Description

      Description:
      Web browser directly opens a file when clicking on Download anchor text in Documents and Media portlet if portal.proxy.path is configured, and Liferay is accessed via a proxy server. In this scenario, we are unable to download the file by clicking on Download anchor text.

      Steps to reproduce
      1. Configure apache as the followings in httpd.conf.

      <VirtualHost *:80>
          ProxyPreserveHost On
          ProxyPass /abc http://localhost:8080
          ProxyPassReverse /abc http://localhost:8080
      </VirtualHost>
      

      2.Set portal.proxy.path=/abc in portal-ext.properties
      3.Start master or (DXP bundle)
      4.Place a Documents and Media portlet on homepage, and upload any file (I used a txt file)
      5. Click on the uploaded file's link text, and click on Info button to open a info sidebar
      In the info sidebar, click on the Download link text

      Actual Result
      File is opened by browser. However, after refreshing the page, the content is served as a download.
      Expected Results
      File is served as a downloadable file.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 19 weeks, 2 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP14
                  7.0.0 DXP SP3
                  7.0.3 CE GA4
                  7.0.X EE
                  7.1.X
                  Master