REPO-1681 / MNT-17228: CMIS: Attempt to delete non-current version throws "Unexpected: current version does not appear ..."

- Fixed the misuse of the version node instead of live node
   - Added permission check for deleting a version
   - Uncommented the test added by JanV (REPO-1228) + added testcase for deleting with no permission
   - PublicApiCallContextHandler inherits basic auth parameters from BasicAuthCallContextHandler, to ensure proper exceptions are thrown by CMIS servlets (in this case, CmisPermissionDeniedException instead of CmisUnauthorizedException).

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133954 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ancuta Morarasu
2016-12-21 07:25:38 +00:00
parent 7d07045d52
commit 0bb9f231ad
2 changed files with 56 additions and 34 deletions

View File

@@ -231,7 +231,7 @@ public abstract class CMISServletDispatcher implements CMISDispatcher
{
if(arg0.equals(CmisAtomPubServlet.PARAM_CALL_CONTEXT_HANDLER))
{
return "org.alfresco.opencmis.PublicApiCallContextHandler";
return PublicApiCallContextHandler.class.getName();
}
else if(arg0.equals(CmisAtomPubServlet.PARAM_CMIS_VERSION))
{