mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
- 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:
@@ -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
|
||||
|
Reference in New Issue
Block a user