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

Selecting Global Web Content Structures in a different community creates an exception in 6.1.x

    Details

      Description

      After creating a global structure and template and attempting to use them in another community, an exception is thrown.

      Here are the steps to reproduce the issue:

      1. Go to Control Panel
      2. Select "Global" as the scope
      3. Add a Web Content structure and template
      4. Create a new community
      5. Select the newly created community as the scope
      6. Click "Web Content"
      7. Click "Add"
      8. Click the "Change" icon next to "Structure"
      9. Select "Global" under "My Places" in the new pop-up window
      10. Click on the newly created structure and click "OK" if an alert message pops up
      11. The user will see a "Web Content is temporarily unavailable" message along with the following exception in the command prompt:

      17:14:49,259 ERROR [render_portlet_jsp:154] com.liferay.portlet.journal.NoSuchStructureException: No JournalStructure exists with the key

      {groupId=88, structureId=10380}

      at com.liferay.portlet.journal.service.persistence.JournalStructurePersistenceImpl.findByG_S(JournalStructurePersistenceImpl.java:2128)
      at com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl.getStructure(JournalStructureLocalServiceImpl.java:365)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:86)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
      at com.liferay.portlet.journal.service.JournalStructureLocalServiceUtil.getStructure(JournalStructureLocalServiceUtil.java:368)
      at com.liferay.portlet.journal.service.permission.JournalStructurePermission.contains(JournalStructurePermission.java:91)
      at com.liferay.portlet.journal.service.permission.JournalStructurePermission.check(JournalStructurePermission.java:54)
      at com.liferay.portlet.journal.service.impl.JournalStructureServiceImpl.getStructure(JournalStructureServiceImpl.java:72)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:86)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
      at com.liferay.portlet.journal.service.JournalStructureServiceUtil.getStructure(JournalStructureServiceUtil.java:73)
      at com.liferay.portlet.journal.action.ActionUtil.getArticle(ActionUtil.java:62)
      at com.liferay.portlet.journal.action.ActionUtil.getArticle(ActionUtil.java:85)
      at com.liferay.portlet.journal.action.EditArticleAction.render(EditArticleAction.java:235)

      This issue could not be reproduced in 6.0.x Revision 80789.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 51 weeks, 5 days ago