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

    • Similar Issues:
      Show 3 results 

      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.

        Activity

        Hide
        Julio Camarero added a comment -

        Assigned to Igor Beslic. (Ni Jira account created yet)

        Show
        Julio Camarero added a comment - Assigned to Igor Beslic. (Ni Jira account created yet)
        Hide
        Igor Bešlić added a comment -

        Can not recreate.
        I successfuly selected given structure, defined content and published it.
        Note regarding scenario: when Change structure is invoked, structure created with global scope is already listed despite scope Global is not selected in My Places - I would say it is logical - so I haven't need to interact with My Places drop down. In another atempt I choose Global and invoked Search. In filtered list there was just structure from global scope. I've selected it and add and publish content without problems.
        Note regarding weird issue: in new site created for scenario, after two added articles, Add button dissapired. After that I was able to add content just via action menus of structure and template. Just to be sure, I repeated scenario again with newly created site but new site hasn't this wierd issue.

        Show
        Igor Bešlić added a comment - Can not recreate. I successfuly selected given structure, defined content and published it. Note regarding scenario: when Change structure is invoked, structure created with global scope is already listed despite scope Global is not selected in My Places - I would say it is logical - so I haven't need to interact with My Places drop down. In another atempt I choose Global and invoked Search. In filtered list there was just structure from global scope. I've selected it and add and publish content without problems. Note regarding weird issue: in new site created for scenario, after two added articles, Add button dissapired. After that I was able to add content just via action menus of structure and template. Just to be sure, I repeated scenario again with newly created site but new site hasn't this wierd issue.
        Hide
        Julio Camarero added a comment -

        Hi Ken, it seems the issue can not be reproduced.

        Can you check again? If you can reproduce it, can you give us more accurate steps?

        Thanks a lot!

        Show
        Julio Camarero added a comment - Hi Ken, it seems the issue can not be reproduced. Can you check again? If you can reproduce it, can you give us more accurate steps? Thanks a lot!

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              4 years, 5 weeks, 1 day ago

              Development

                Subcomponents

                  Structure Helper Panel