PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-34709

Global structure not found when selecting template as a request parameter

    Details

    • Story Points:
      2
    • Similar Issues:
      Show 4 results 

      Description

      Reproduction Steps
      1- Add a template and structure in global scope. Note the template ID
      2 - Modify the journal_content/view.jsp
      from line 347:
      <liferay-portlet:renderURL portletName="<%= PortletKeys.JOURNAL %>" var="addArticleURL" windowState="<%= WindowState.MAXIMIZED.toString() %>">
      <portlet:param name="struts_action" value="/journal/edit_article" />
      <portlet:param name="redirect" value="<%= currentURL %>" />
      <portlet:param name="portletResource" value="<%= portletDisplay.getId() %>" />
      <portlet:param name="groupId" value="<%= String.valueOf(scopeGroupId) %>" />
      <portlet:param name="templateId" value="TEMPLATEID" /> <!--This is the new one. Suppose there's a template in global scope with ID "TEMPLATEID" -->
      </liferay-portlet:renderURL>

      Add a new Web Content from a web content display. You'll get a NoSuchStructureException.

      Additional Information

      The problem is in /html/portlet/journal/article/content.jsp line 75:
      Instead of

      structure = JournalStructureLocalServiceUtil.getStructure(structureGroupId, structureId);

      it should be

      structure = JournalStructureLocalServiceUtil.getStructure(structureGroupId, structureId, true);

      Furthermore, on the UI, the Template will say "None". This is set in content.jsp, due to the fact that the template is empty. There seems to be an issue with setting the templateId this way when the structure is from the global scope.

        Activity

        Hide
        Mark Jin added a comment -

        PASSED Manual Testing following the steps in the description.

        Reproduced on:
        Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2.

        Creating web content cause NoSuchStructureException.

        Fixed on:
        Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: b1b91397d000ccceb906c4267f0f3bfd191f3a25.

        Unable to see the exception.

        Show
        Mark Jin added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0 + MySQL 5. Portal 6.1.20 EE GA2. Creating web content cause NoSuchStructureException. Fixed on: Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: b1b91397d000ccceb906c4267f0f3bfd191f3a25. Unable to see the exception.

          People

          • Assignee:
            Mark Jin
            Reporter:
            Gabor Pusoma (Inactive)
            Recent user:
            Randy Zhu
            Participants of an Issue:
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 4 days ago

              Development

                Structure Helper Panel