Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Completed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.4.2, 5.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      WinXP, JDK5, Tomcat 5.5.17, Liferay 4.1.1

      Description

      Cannot Browse Server and path to portal for images and documents is without root path.

      To fix replace code in:

      /html/js/editor/fckeditor/fckconfig.jsp

      <%
      String rootPath = (String)pageContext.getServletContext().getAttribute(WebKeys.ROOT_PATH);
      %>
      FCKConfig.LinkBrowserURL = FCKConfig.BasePath + "filemanager/browser/liferay/browser.html?Connector=<%= rootPath %>/html/js/editor/fckeditor/editor/filemanager/browser/liferay/connectors/jsp/connector?p_l_id=<%= plid %>";
      FCKConfig.ImageBrowserURL = FCKConfig.BasePath + "filemanager/browser/liferay/browser.html?Type=Image&Connector=<%= rootPath %>/html/js/editor/fckeditor/editor/filemanager/browser/liferay/connectors/jsp/connector?p_l_id=<%= plid %>";

      com.liferay.portal.editor.fckeditor.receiver.impl.ImageCommandReceiver

      fileEl.setAttribute(
      "url", arg.getHttpServletRequest().getContextPath() +
      "/image/image_gallery?img_id=" + image.getImageId());

      com.liferay.portal.editor.fckeditor.receiver.impl.DocumentCommandReceiver

      portletURL.setParameter(
      "struts_action", arg.getHttpServletRequest().getContextPath() +
      "/document_library/get_file");

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            vpugar Vedran Pugar (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                4.4.2
                5.0.0