mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.1 to HEAD
13853: Merged V3.0 to V3.1 13008: Merged V2.2 to V3.0 12824: (record only) Change admin access to the web project staging store to be read-only in the virtualization view - ETWOTWO-933 13031: (Record only) AMP fix for ETWOTWO-968: Space rules are not run when saving from MS Word 13040: Merged V2.2 to V3.0 12824: (record-only) - already done via r13005 (ETWOTWO-933) 13145: Merged V2.2 to V3.0: 13089: (record-only) Fix "Read-Write transaction started within read-only transaction" exception. ETWOTWO-1055. 13091: (record-only) Fix for NFS server "Read-Write transaction started within read-only transaction" exception. ETWOTWO-1054. 13508: ETHREEOH-1548 - allow config to reset (even if null/cache) 13514: ETHREEOH-1548 (follow-on fix) - to allow config to reset (even if null/cache) and also reduce 5 caches to 1 13848: Merged V2.2 to V3.0 13188: *RECORD ONLY* Using correct ooo startup context - does not work for *nix. Fixed in 3.0sp1 13212: *RECORD ONLY* AMP for ETWOTWO-984 13342: *RECORD ONLY* Merge info stuff 13435: Merged V2.1 to V2.2 12307: Merged DEV/V2.1SP7 to 2.1 11927: ETWOONE-396 12112: ETWOONE-396 13442: *RECORD ONLY* Updated version to 2.2.4dev 13468: *RECORD ONLY* Removed svn:mergeinfo crud 13470: I18NUtil doesn't cause NPE if message key doesn't exist 13471: Fixed ETWOTWO-1133: Incorrect CRC32 Values for non-ASCII names 13475: Test fix: I18NUtil.getMessage() no longer returns null, leading to NPEs if message bundle is missing 13476: Reverted back to null return values. Will save for fixing on HEAD. 13749: Fixed ALFCOM-2655: MLTranslationInterceptor doesn't handle getType method 13803: ETWOTWO-710 13819: *RECORD ONLY* ACT-6420 - Office 2003 "Install for all users" - DO NOT MERGE 13827: ETWOTWO-1172 - authority exists now checks nodeRef result ___________________________________________________________________ Modified: svn:mergeinfo Merged /alfresco/BRANCHES/V3.0:r12824,13008,13031,13040,13089,13091,13145,13848 Merged /alfresco/BRANCHES/V2.2:r12824,13188,13212,13342,13442,13468,13470-13471,13475-13476,13749,13803,13827 Merged /alfresco/BRANCHES/V3.1:r13853 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14763 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -29,12 +29,14 @@ import java.io.InputStreamReader;
|
||||
import java.io.Reader;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
import javax.transaction.UserTransaction;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.i18n.I18NUtil;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.dictionary.DictionaryDAO;
|
||||
import org.alfresco.repo.dictionary.M2Model;
|
||||
@@ -44,6 +46,7 @@ import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
||||
import org.alfresco.service.ServiceRegistry;
|
||||
import org.alfresco.service.cmr.model.FileExistsException;
|
||||
import org.alfresco.service.cmr.model.FileFolderService;
|
||||
import org.alfresco.service.cmr.model.FileFolderServiceType;
|
||||
import org.alfresco.service.cmr.model.FileInfo;
|
||||
import org.alfresco.service.cmr.model.FileNotFoundException;
|
||||
import org.alfresco.service.cmr.repository.ContentReader;
|
||||
@@ -651,4 +654,14 @@ public class FileFolderServiceImplTest extends TestCase
|
||||
assertNotNull("Long filename not found", fileNodeRef);
|
||||
assertEquals(fileInfo.getNodeRef(), fileNodeRef);
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates <a href="https://issues.alfresco.com/jira/browse/ALFCOM-2655">ACT-7225</a>
|
||||
*/
|
||||
public void testGetType() throws Exception
|
||||
{
|
||||
I18NUtil.setContentLocale(Locale.CANADA);
|
||||
FileFolderServiceType type = fileFolderService.getType(ContentModel.TYPE_FOLDER);
|
||||
assertEquals("Type incorrect for folder", FileFolderServiceType.FOLDER, type);
|
||||
}
|
||||
}
|
||||
|
@@ -91,6 +91,7 @@ public class MLTranslationInterceptor implements MethodInterceptor
|
||||
METHOD_NAMES_OTHER.add("delete");
|
||||
METHOD_NAMES_OTHER.add("getReader");
|
||||
METHOD_NAMES_OTHER.add("getWriter");
|
||||
METHOD_NAMES_OTHER.add("getType");
|
||||
}
|
||||
|
||||
private static Log logger = LogFactory.getLog(MLTranslationInterceptor.class);
|
||||
|
Reference in New Issue
Block a user