mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged 5.0.N (5.0.4) to 5.1.N (5.1.2)
128260 adavis: Merged V4.2-BUG-FIX (4.2.7) to 5.0.N (5.0.4) 128213 arebegea: MNT-16437 : CLONE - 4.2.N - 4.2.3 CMIS Bulk Update Properties only updates the properties of one document when more than one document is in the objectIdAndChangeTokens list Merged V4.2.3 (4.2.3.25) to V4.2-BUG-FIX (4.2.7) 128177 arebegea: MNT-16376 : 4.2.3 CMIS Bulk Update Properties only updates the properties of one document when more than one document is in the objectIdAndChangeTokens list - The batch worker threads did not have the thread context to know that they were dealing with CMIS version 1.1 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@128341 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1858,6 +1858,10 @@ public class AlfrescoCmisServiceImpl extends AbstractCmisService implements Alfr
|
|||||||
{
|
{
|
||||||
throw new CmisConstraintException("Bulk update not supported for more than " + connector.getBulkMaxItems() + " objects.");
|
throw new CmisConstraintException("Bulk update not supported for more than " + connector.getBulkMaxItems() + " objects.");
|
||||||
}
|
}
|
||||||
|
// MNT-16376 We need the CMIS call context from this thread to set
|
||||||
|
// to the working threads below, in order to correctly identify
|
||||||
|
// the CMIS version protocol used for this CMIS call
|
||||||
|
final CallContext cmisCallContext = AlfrescoCmisServiceCall.get();
|
||||||
|
|
||||||
// WorkProvider
|
// WorkProvider
|
||||||
class WorkProvider implements BatchProcessWorkProvider<BulkEntry>
|
class WorkProvider implements BatchProcessWorkProvider<BulkEntry>
|
||||||
@@ -1917,6 +1921,7 @@ public class AlfrescoCmisServiceImpl extends AbstractCmisService implements Alfr
|
|||||||
// Authentication
|
// Authentication
|
||||||
AuthenticationUtil.pushAuthentication();
|
AuthenticationUtil.pushAuthentication();
|
||||||
AuthenticationUtil.setFullyAuthenticatedUser(runAsUser);
|
AuthenticationUtil.setFullyAuthenticatedUser(runAsUser);
|
||||||
|
AlfrescoCmisServiceCall.set(cmisCallContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user