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


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


      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:
      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/


          Issue Links



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


                • Created:
                  Days since last comment:
                  5 years, 34 weeks, 5 days ago