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 Regression Bug
    • Status: Closed
    • 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
    • Similar Issues:
      Show 5 results 

      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)
      
      1. error.PNG
        6 kB
      2. privatepages.PNG
        139 kB
      3. usergroups.PNG
        80 kB

        Issue Links

          Activity

          Hide
          Robert Srisam-ang (Inactive) added a comment -

          Reproduced on:
          Tomcat 7 + MySQL 5. Portal 6.1.x EE GIT ID: 1a60bca8b054156d86c8b366e11c002a722d738f.

          I was able to reproduce this issue with the steps listed in the description. I changed the steps to specify it more.

          Show
          Robert Srisam-ang (Inactive) added a comment - Reproduced on: Tomcat 7 + MySQL 5. Portal 6.1.x EE GIT ID: 1a60bca8b054156d86c8b366e11c002a722d738f. I was able to reproduce this issue with the steps listed in the description. I changed the steps to specify it more.
          Hide
          Preston Crary added a comment -

          Hi Robert,

          can you elaborate on this step:
          3. Click Actions near user group > Manage Site Pages > Private Pages > Add Page
          Not totally sure what to do on this step.

          Step 5 is just adding the user to the group, right?

          I wasn't able to reproduce this, there wasn't an option for the new user to navigate to their private page without creating one.

          Show
          Preston Crary added a comment - Hi Robert, can you elaborate on this step: 3. Click Actions near user group > Manage Site Pages > Private Pages > Add Page Not totally sure what to do on this step. Step 5 is just adding the user to the group, right? I wasn't able to reproduce this, there wasn't an option for the new user to navigate to their private page without creating one.
          Hide
          Preston Crary added a comment -

          Not going to be able to work on this for awhile. Will reassign to myself if no one else gets to this first.

          Show
          Preston Crary added a comment - Not going to be able to work on this for awhile. Will reassign to myself if no one else gets to this first.
          Hide
          Robert Srisam-ang (Inactive) added a comment -

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7 + MySQL 5. Portal 6.1.x EE GIT ID: 1a60bca8b054156d86c8b366e11c002a722d738f.

          User gets an unexpected system error.

          Fixed on:
          Tomcat 7 + MySQL 5. Portal 6.1.x EE GIT ID: 6c5fe8229b8b352c620fcccf396194be27266e41.

          The user inherits the private page of user group.

          Show
          Robert Srisam-ang (Inactive) added a comment - PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7 + MySQL 5. Portal 6.1.x EE GIT ID: 1a60bca8b054156d86c8b366e11c002a722d738f. User gets an unexpected system error. Fixed on: Tomcat 7 + MySQL 5. Portal 6.1.x EE GIT ID: 6c5fe8229b8b352c620fcccf396194be27266e41. The user inherits the private page of user group.
          Hide
          Ginson Ren added a comment -

          PASSED Manual Testing following the steps in the description.

          Fixed on:
          Tomcat 7 + MySQL 5. Portal 6.2.x GIT ID: a548ac73f57df83b1fa84f9b0f195b29ef1d4021.

          The user inherits the private page of user group.

          Show
          Ginson Ren added a comment - PASSED Manual Testing following the steps in the description. Fixed on: Tomcat 7 + MySQL 5. Portal 6.2.x GIT ID: a548ac73f57df83b1fa84f9b0f195b29ef1d4021. The user inherits the private page of user group.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 46 weeks, 3 days ago

                Development

                  Structure Helper Panel