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

CKEditor generates invalid links to documents when portal.proxy.path is set

    Details

    • Branch Version/s:
      6.1.x, 6.0.x
    • Backported to Branch:
      Committed

      Description

      When using a reverse proxy and the portal is configured to use a path component in the URLs specified by portal.proxy.path property, the CKEditor's FileManager will select files without this path prefix which causes the portal to not find the related file when user clicks on the link.

      Steps to reproduce:

      1.) Setup Apache to connect Tomcat through AJP:
      LoadModule proxy_ajp_module libexec/apache2/mod_proxy_ajp.so
      ...
      ProxyPass /lfr ajp://localhost:8009/
      ProxyPassReverse /lfr ajp://localhost:8009/
      2.) Set portal to use proxy path in portal-ext.properties:
      portal.proxy.path=/lfr
      3.) Start Tomcat
      4.) Start Apache
      5.) Navigate to http://localhost/lfr and login
      6.) Navigate to Control Panel > Document And Media
      7.) Upload a file like test.doc
      8.) Add a Web Content Display to the opening page
      9.) Create new Web Content
      10.) Insert link into Web Content and select 'Browse Server'
      11.) Navigate to the folder where you uploaded test.doc to and select it

      Expected behavior:
      The selected URL should start as /lfr/documents/

      Current behavior:
      The selected URL starts with /documents/

        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:
                  5 years, 8 weeks, 2 days ago