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

Sevencogs articles do not properly respect portal.ctx relocation paths

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.1.0 CE GA1
    • Fix Version/s: 6.1.1 CE GA2
    • Component/s: Legacy > Samples
    • Labels:
      None
    • Environment:
      All

      Description

      If you relocate Liferay to a different context path by moving the webapp from Tomcat's webapps/ROOT to webapps/liferay (for example), then the hard-coded values in the 7cogs sample journal articles become invalid. For example, take a look at

      https://github.com/liferay/liferay-plugins/blob/master/hooks/sevencogs-hook/docroot/WEB-INF/src/resources/guest/journal/articles/welcome.xml

      In there, you can see some content such as:

      <img alt="Cisco" src="/image/[$GROUP_ID$]/[$CUSTOMER_1_R_FE_UUID$]" />
      

      The hard-coded /image path fails to be retrieved, since the actual images servlet (and other servlets) are actually located at the relocated path (e.g. /liferay). So the correct path above would be

      [$ROOT_PATH]/image/[$GROUP_ID$]/[$CUSTOMER_1_R_FE_UUID$]
      

      Where $ROOT_PATH is the relocated context path.

      I believe some additional text replacement needs to occur during the sevencogs-hook execution.

        Attachments

          Activity

            People

            Assignee:
            edwin.chung Edwin Chung (Inactive)
            Reporter:
            james.falkner James Falkner
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 years, 20 weeks ago

                Packages

                Version Package
                6.1.1 CE GA2