Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)

93839: Merged 5.0.N (5.0.1) to HEAD-BUG-FIX (5.1/Cloud)
      93772: MNT-13089: RepoAdminServiceImplTest hangs on SQL Server
      Fixed RenditionServicePermissionsTest.userWithoutDeleteAccessToNodeShouldNotCauseFailedThumbnailProblemsOnUpdate.
      Disabled for MS SQL Server AuthenticationTest.testLoginNotExistingTenant, RenditionServiceIntegrationTest.testALF3733, RenditionServiceIntegrationTest.testJavascriptAPI.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@95000 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2015-01-31 15:23:40 +00:00
parent 5527c737c5
commit f1cfb74849
3 changed files with 38 additions and 15 deletions

View File

@@ -72,6 +72,7 @@ import org.alfresco.test_category.OwnJVMTestsCategory;
import org.alfresco.util.ApplicationContextHelper;
import org.hibernate.dialect.Dialect;
import org.hibernate.dialect.PostgreSQLDialect;
import org.hibernate.dialect.SQLServerDialect;
import org.junit.experimental.categories.Category;
import org.springframework.context.ApplicationContext;
import org.springframework.extensions.webscripts.GUID;
@@ -1732,11 +1733,12 @@ public class AuthenticationTest extends TestCase
public void testLoginNotExistingTenant() throws Exception
{
// split the transactions to pass on SQL Server
// disable in case of SQL Server
// see MNT-13089
userTransaction.commit();
userTransaction = transactionService.getUserTransaction();
userTransaction.begin();
if (dialect instanceof SQLServerDialect)
{
return;
}
boolean wasEnabled = AuthenticationUtil.isMtEnabled();
try