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

Can't download link document from web content

    Details

      Description

      Description:
      The issue is related with "portal.proxy.path" is configured and enable SPA, and Liferay is accessed via a proxy server. In this scenario, we are unable to download the file by clicking link (<a> label) which we added it in content field.

      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.Upload any file (I used a jpg) in document and media portlet.
      5. Add a Web Content article, and link this document to its content.
      Note: it doesn't include target="_blank". (At this progress, you might not use alloyeditor, so you may disable "portal.proxy.path" and create this article, and then enable this property "portal.proxy.path" by restart server to test the issue)
      The link is as the followings:

      <a href="/abc/documents/20143/0/create_article.txt/945b76a9-3cda-c0cf-038d-9ce1f91d90ea" target="">Test 2</a>
      

      6. If target doesn't set, publish the content
      7. Preview the content(Web Content-Display Article List->Preview) or display it in Web Content Display, click the link.

      Actual Result
      When click the link, document can't download as attachment.
      Expected Behavior
      When click the link, document can be downloaded as attachment.

      Note: if we don't configure the "portal.proxy.path", the issue won't occur.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              felix.zhang Felix Zhang
              Reporter:
              hai.yu Hai Yu
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.0.0 DXP FP23
                  7.0.X EE
                  7.0.4 CE GA5
                  7.1.X
                  Master