This repository was archived by the owner on Sep 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
This repository was archived by the owner on Sep 25, 2022. It is now read-only.
Alfresco 6.2 Prevents Content Data setting with addProperties Method #81
Copy link
Copy link
Open
Description
Bug Report
Steps to Reproduce:
Using Alfresco version 6.2 or newer there is a new Class (ContentPropertyRestrictionInterceptor) that prevents setting Content Property Content Data directly using the Node Service. This prevents any iteration of this Bulk Importer (except for the embedded one, go figure) from adding metadata that includes the Content Property.
Expected Result:
The Ability to set Content metadata as needed.
Actual Result:
When attempting to set Content Metadata as part of import you will receive this error.
The node's content can't be updated via NodeService#addProperties directly:
content_1 | node: workspace://SpacesStore/a8e2f27d-b34c-483c-8dc6-b329b06be0ad
content_1 | property name: content
content_1 | org.alfresco.service.cmr.dictionary.InvalidTypeException: 00220051 The node's content can't be updated via NodeService#addProperties directly:
content_1 | node: workspace://SpacesStore/a8e2f27d-b34c-483c-8dc6-b329b06be0ad
content_1 | property name: content
content_1 | at org.alfresco.repo.node.ContentPropertyRestrictionInterceptor.invoke(ContentPropertyRestrictionInterceptor.java:147)
content_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
content_1 | at org.alfresco.repo.audit.DisableAuditableBehaviourInterceptor.invoke(DisableAuditableBehaviourInterceptor.java:120)
content_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
content_1 | at org.alfresco.module.org_alfresco_module_rm.security.RMMethodSecurityInterceptor.invoke(RMMethodSecurityInterceptor.java:352)
content_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
content_1 | at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:53)
content_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
content_1 | at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:166)
content_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
content_1 | at org.alfresco.repo.transaction.RetryingTransactionInterceptor$1.execute(RetryingTransactionInterceptor.java:86)
content_1 | at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
content_1 | at org.alfresco.repo.transaction.RetryingTransactionInterceptor.invoke(RetryingTransactionInterceptor.java:76)
content_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
content_1 | at org.alfresco.enterprise.repo.authorization.AuthorizationStatusInterceptor.invoke(AuthorizationStatusInterceptor.java:167)
content_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
content_1 | at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
content_1 | at com.sun.proxy.$Proxy20.addProperties(Unknown Source)
Environment:
Any Alfresco version 6.2 or higher will have this new class.
Additional Context:
There is a way to disable this class, or add the classes to a whitelist. I intend on updating wiki documentation to specify that these properties must be set in order for the bulk importer to work.
Metadata
Metadata
Assignees
Labels
No labels