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

Unable to edit web content translations created by a user who was deleted

    Details

      Description

      Description

      If a user who has created a web-content translation is then deleted, that web-content translation cannot be edited by another admin user.

      NOTE. Issue is not truly fixed/broken in master - we change the way we manage translation content, as another article (in master) - rather than directly related to the original article - the method updateArticleTranslation is not called in master as it is in 6.2. and 6.1. This fix is primarily for 6.2 and 6.1.

      Steps to reproduce

      1. Startup Liferay.
      2. Login with a test [Administrator] user.
      3. Add new user from Control Panel > Users (e.g. Translator) and make this user an administrator.
      4. In another browser, login with new user (Translator).
      5. Create a web content and publish it.
      6. Edit web content and add new translation.
      7. Now, login as test user and from control panel deactivate and then delete the user (Translator) who created the web content.
      8. Now go to Control Panel > Web Content and edit the translation of same Web Content which was created using deleted user (Translator).

      Expedted Result:
      Administrator User will be able to edit Web Content.

      Actual Result:
      Administrator User is unable to edit Web Content.

      Errors

      Web Content is temporarily unavailable.

      Exception:
      23:14:47,495 ERROR [render_portlet_jsp:154] com.liferay.portal.NoSuchUserException: No User exists with the primary key 10632
      at com.liferay.portal.service.persistence.UserPersistenceImpl.findByPrimaryKey(UserPersistenceImpl.java:959)
      at com.liferay.portal.service.impl.UserServiceImpl.getUserById(UserServiceImpl.java:736)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.updateArticleTranslation(JournalArticleLocalServiceImpl.java:2159)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      at com.liferay.portlet.journal.service.impl.JournalArticleServiceImpl.updateArticleTranslation(JournalArticleServiceImpl.java:527)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
      at com.liferay.portlet.journal.service.JournalArticleServiceUtil.updateArticleTranslation(JournalArticleServiceUtil.java:451)
      at com.liferay.portlet.journal.action.EditArticleAction.updateArticle(EditArticleAction.java:775)
      at com.liferay.portlet.journal.action.EditArticleAction.processAction(EditArticleAction.java:132)
      at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:175)

      Reproduced

      Master =2492ded9acb5c5e739199991b562dbe675d9847d (issue is fixed in master)

      Branch =710e547eb8be48fcca6bcd904410d62285ff8f03 (issue was reproduced in 6.1.x and 6.2.x)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.3 CE GA4
                  6.2.X EE
                  7.0.0 M3