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

Cannot add translation to a Web Content Article

    Details

    • Story Points:
      1
    • Fix Priority:
      2
    • Application Servers:
      JBoss EAP 6.0

      Description

      Steps to reproduce

      1) Define two expando fields for web content, revoke all the privileges on one of them
      2) Create organization o1 with a site, add page p1 to the organization's site
      3) Add a non-admin user u1
      , assign it to o1 and add it to organization admin role
      4) Login with u1
      5) Add a WC display to p1
      6) Add a WC article, gen. ID auto
      7) Add a title and content in french, save
      and publish
      8) Open the article for edition and try to add a german translation
      9) When you click Save the following exception will be thrown

      09:50:04,989 ERROR [http-/10.76.10.186:8080-2][render_portlet_jsp:132] null
      com.liferay.portal.security.auth.PrincipalException
      	at com.liferay.portlet.expando.service.permission.ExpandoColumnPermissionImpl.check(ExpandoColumnPermissionImpl.java:36)
      	at com.liferay.portlet.expando.service.permission.ExpandoColumnPermissionUtil.check(ExpandoColumnPermissionUtil.java:33)
      	at com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl.addValue(ExpandoValueServiceImpl.java:51)
      	at com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl.addValues(ExpandoValueServiceImpl.java:83)
      	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.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)
      	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.portlet.expando.service.ExpandoValueServiceUtil.addValues(ExpandoValueServiceUtil.java:88)
      	at com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.setAttributes(ExpandoBridgeImpl.java:518)
      	at com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.setAttributes(ExpandoBridgeImpl.java:500)
      	at com.liferay.portal.model.impl.BaseModelImpl.setExpandoBridgeAttributes(BaseModelImpl.java:81)
      	at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.updateArticleTranslation(JournalArticleLocalServiceImpl.java:5047)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      

      At the time of trying to save the article with the new translation, in method ExpandoValueServiceImpl.addValues(), the value of attributeValues.entrySet() look like as follows : [col1=, col2=, *col3*=null].

      Debugging ExpandoColumnPermissionImpl through AdvancedPermissionChecker revealed that the newly created non-priviledged user didn't have permission to field c3.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 35 weeks, 6 days ago

                Packages

                Version Package
                6.2.X EE