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

An unexpected system error occurred when user inherited user group's private page

    Details

    • Type: Regression Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.1.30 EE GA3, 6.2.0 CE M6
    • Fix Version/s: 6.1.30 EE GA3, 6.2.0 CE M6
    • Component/s: User Management
    • Labels:
    • Environment:
      Tomcat 7 + MySQL 5. Portal 6.1.x EE GIT ID: 7a2085277ca5d7113bae6205cc849f811cb09f65.
      Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 42125918cdbe6ae24577f3eb565e4bcf3c0d617b.
    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Story Points:
      4
    • Fix Priority:
      4

      Description

      Steps for reproduce:

      1. Add following lines to portal-ext:

      layout.user.private.layouts.auto.create=false
      user.groups.copy.layouts.to.user.personal.site=true

      2. Startup Liferay
      3. Navigate to Control Panel > User Groups > Add
      3. Click Actions near user group > Manage Site Pages > Private Pages > Add Page
      4. Navigate to Control Panel > Users and Organizations > Add > User
      5. Click User groups > Select > Choose User Group
      6. Log in as the new user.
      7. Go to My Private Page.

      The page will throw exceptions:

      an-unexpected-system-error-occurred 
      
      com.liferay.portal.NoSuchGroupException: No Group exists with the key {companyId=10154, classNameId=10031, classPK=0}
      

      The console will throw the error messages:

      02:46:50,169 ERROR [http-bio-8080-exec-8][MainServlet:413] com.liferay.portal.NoSuchGroupException: No Group exists with the key {companyId=10152, classNameId=10034, clas
      sPK=0}
      com.liferay.portal.NoSuchGroupException: No Group exists with the key {companyId=10152, classNameId=10034, classPK=0}
              at com.liferay.portal.service.persistence.GroupPersistenceImpl.findByC_C_C(GroupPersistenceImpl.java:4207)
              at sun.reflect.GeneratedMethodAccessor546.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:86)
              at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:54)
              at com.sun.proxy.$Proxy127.findByC_C_C(Unknown Source)
              at com.liferay.portal.service.impl.GroupLocalServiceImpl.getLayoutSetPrototypeGroup(GroupLocalServiceImpl.java:1216)
              at sun.reflect.GeneratedMethodAccessor560.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
      

        Attachments

        1. error.PNG
          error.PNG
          6 kB
        2. privatepages.PNG
          privatepages.PNG
          139 kB
        3. usergroups.PNG
          usergroups.PNG
          80 kB

          Issue Links

            Activity

              People

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

                Dates

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