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

Unable to change layout when creating user was deleted and default language was changed

    Details

      Description

      1. Log in as the default admin user and create a new user A, and give it Administrator role.
      2. Create a new blank site and go to its Site Settings/Display Settings.
      3. Remove French from Current to Available.
      4. Log in as user A and create a page in that site. Fill in name with "germantitle".
      5. Log back in as the default admin user, deactivate and delete user A.
      6. Go to the site settings of that site, Display Settings. Move back French from Available to Current. Save.
      7. Change default language from German to French and save.
      8. Go to the pages section of the site's adminnistration and click on that page.
      9. In the name field type "frenchtitle" (flag is set to french flag now, underneath). 
      10. If you want, also modify the ending of the Friendly URL field to /frenchtitle. (Customer did not mention this, but I did it because I think that would be a logical usage. However, this is probably not necessary in order to reproduce the issue.)
      11. Click Save.
      Result: On UI "The portlet is temporarily unavailable" and the following stack trace in the logs:

      14:02:44,300 ERROR [http-bio-8081-exec-5][render_portlet_jsp:132] null
       com.liferay.portal.NoSuchUserException: No User exists with the primary key 20555
       at com.liferay.portal.service.persistence.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:7199)
       at com.liferay.portal.service.persistence.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:7217)
       at com.liferay.portal.service.impl.LayoutFriendlyURLLocalServiceImpl.addLayoutFriendlyURL(LayoutFriendlyURLLocalServiceImpl.java:63)
       at com.liferay.portal.service.impl.LayoutFriendlyURLLocalServiceImpl.updateLayoutFriendlyURL(LayoutFriendlyURLLocalServiceImpl.java:264)
       at com.liferay.portal.service.impl.LayoutFriendlyURLLocalServiceImpl.updateLayoutFriendlyURLs(LayoutFriendlyURLLocalServiceImpl.java:294)
       at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
       at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
       at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
       at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
       at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
       at com.liferay.portal.service.impl.LayoutLocalServiceImpl.updateLayout(LayoutLocalServiceImpl.java:2395)
       at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.updateLayout(LayoutLocalServiceStagingAdvice.java:271)
       at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:196)
       at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
       at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
       at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
       at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
       at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
       at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
       at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)

       Branch(4a91fba752fff49bbf828f357d690f8aacaad0a3): reproduced
       Master(da91f7f4392dd94eed9a5db46d659e9c9e798d1a): could not reproduce, it seems to work fine, no error.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hong.zhao Hong Zhao (Inactive)
              Reporter:
              rimi.saadou Rimi Saadou (Inactive)
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.2.X EE