- reverted behaviour of CMIS createDocument() with VersioningState == CHECKEDOUT

- added support for sticky sessions to CMIS server

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31819 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Florian Mü
2011-11-07 19:43:18 +00:00
parent cd92e7c08e
commit 05cf5fb4d2
3 changed files with 36 additions and 9 deletions

View File

@@ -35,6 +35,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.transaction.Status;
import javax.transaction.UserTransaction;
@@ -170,6 +171,14 @@ public class AlfrescoCmisService extends AbstractCmisService
{
this.context = context;
if (connector.openHttpSession())
{
// create a session -> set a cookie
// if the CMIS client supports cookies that might help in clustered
// environments
((HttpServletRequest) context.get(CallContext.HTTP_SERVLET_REQUEST)).getSession();
}
AuthenticationUtil.pushAuthentication();
try