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

Exception occurred when user try to publish a DM with custom field

    Details

      Description

      Steps to reproduce:

      1. Start portal and login as test user.
      2. Add a regular role, define the following permission:
      Custom Fields > Custom Field: View
      Documents and Media > Document: Update
      3. Add a user, and assign the role to the user.
      4. Go to control panel > custom fields > document, add a custom field called test.
      5. Add DM portlet to page, add a basic document, fill the custom field with any content, publish it.
      6. Login as the new user, press edit button of the document, press publish without doing anything.

      Expected result:
      User could publish the document without issue.

      Actual result:
      Exception occurred in console, DM portlet could not use.

      08:08:31,581 WARN  [elasticsearch[Mastermind][management][T#1]][decider:154] [Mastermind] high disk watermark [90%] exceeded on [pefDie8cT16rtoIangYfqA][Mastermind] free: 6.5gb[4.4%], shards will be relocated away from this node
      08:08:53,592 ERROR [com.liferay.portal.layoutconfiguration.util.RuntimePageImpl-2][render_portlet_jsp:131] null
      com.liferay.portal.security.auth.PrincipalException$MustHavePermission: User  must have UPDATE permission for com.liferay.portlet.expando.model.ExpandoColumn 
      	at com.liferay.portlet.expando.service.permission.ExpandoColumnPermissionImpl.check(ExpandoColumnPermissionImpl.java:35)
      	at com.liferay.portlet.expando.service.permission.ExpandoColumnPermissionUtil.check(ExpandoColumnPermissionUtil.java:32)
      	at com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl.addValue(ExpandoValueServiceImpl.java:50)
      	at com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl.addValues(ExpandoValueServiceImpl.java:83)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:149)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:93)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:123)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:123)
      	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:123)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173)
      	at com.liferay.portlet.expando.service.ExpandoValueServiceUtil.addValues(ExpandoValueServiceUtil.java:65)
      	at com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.setAttributes(ExpandoBridgeImpl.java:528)
      	at com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.setAttributes(ExpandoBridgeImpl.java:563)
      	at com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.setAttributes(ExpandoBridgeImpl.java:554)
      	at com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl.setExpandoBridgeAttributes(DLFileVersionModelImpl.java:1096)
      	at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.addFileVersion(DLFileEntryLocalServiceImpl.java:2154)
      	at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.checkOutFileEntry(DLFileEntryLocalServiceImpl.java:562)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hong.zhao Hong Zhao
                Reporter:
                hong.zhao Hong Zhao
                Participants of an Issue:
                Recent user:
                Brian Wulbern
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 14 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 Alpha 1