mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.4-BUG-FIX to HEAD
28513: Merged DEV/SKYITALIA to V3.4-BUG-FIX 26917: ALF-9145: AVM: fix "get store" (+ store not found) - if root node id is not found - remove from cache and throw concurrency failure (see also r26916) - add missing error info - report store name (if not found) 28514: ALF-9145: Fixed merge issue 28518: Fixed ALF-8511: Share - Property with prefix name with - can't be updated/found by Share 28525: Merged DEV to V3.4-BUG-FIX 28522: ALF-8197: Replication service fails to replicate Multilingual Containers 1) Inject list of excluded aspects into ReplicationActionExecutor using replication-services-context.xml. 2) Don't write value in XMLTransferManifestWriter.writeMLValue if it is null. 28534: Merged DEV/TEMPORARY to V3.4-BUG-FIX 28533: ALF-9085: Share version numbers wrong when uploading initial change, initial Inline edit or adding versionable aspect. 1. In ScriptNode.addAspect() if ContentModel.ASPECT_VERSIONABLE aspect added than call ensureVersioningEnabled(true, true) otherwise this.nodeService.addAspect (this.nodeRef, aspectQName, aspectProps) 2. In VersionServiceImpl.ensureVersioningEnabled() the call of createVersion(nodeRef, null) is replaced on createVersion(nodeRef, Collections.<String,Serializable>singletonMap(VersionModel.PROP_VERSION_TYPE, VersionType.MAJOR)); 28536: Merged V3.4 to V3.4-BUG-FIX 28246: ALF-3037: Fixed English in patch message 28313: Latest L10N Updates from Gloria. 28335: Removed translations of untranslated bundle! 28364: Merged V3.4-TEAM to V3.4 26978: Fixes: ALF-6107 - Fixes Tab order issues with Add event form. 28387: Merged V3.4-BUG-FIX to V3.4 28386: ALF-9100: Merged PATCHES/V3.4.1 to V3.4-BUG-FIX 28249: ALF-8946: Avoid one full table scan per batch in full reindex - Now each batch scans a single time sample, dynamically adjusted based on the number of transactions in the previous sample, always aiming for 1000 transactions per sample. 28421: ALF-9064: commas in "tinymce_languages=en,de,es,fr,it,ja" had been translated. 28422: ALF-7882: security setting incorrect. FileFolderService.moveFrom arguments changed position, but not reflected in RM security file 28496: ALF-2740 - File Types are not properly recognized by Alfresco 28537: Merged V3.4 to V3.4-BUG-FIX (RECORD ONLY) 28240: Merged V3.4-BUG-FIX to V3.4 (3.4.3) 28535: Merged V3.4-BUG-FIX to V3.4 28534: Merged DEV/TEMPORARY to V3.4-BUG-FIX 28533: ALF-9085: Share version numbers wrong when uploading initial change, initial Inline edit or adding versionable aspect. 1. In ScriptNode.addAspect() if ContentModel.ASPECT_VERSIONABLE aspect added than call ensureVersioningEnabled(true, true) otherwise this.nodeService.addAspect (this.nodeRef, aspectQName, aspectProps) 2. In VersionServiceImpl.ensureVersioningEnabled() the call of createVersion(nodeRef, null) is replaced on createVersion(nodeRef, Collections.<String,Serializable>singletonMap(VersionModel.PROP_VERSION_TYPE, VersionType.MAJOR)); 28538: ALF-8589: Fixes "Message could not be displayed" errors with IMAP in Outlook Express - Corrected generation of subtypes git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28540 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1253,13 +1253,13 @@ public class FormServiceImplTest extends BaseAlfrescoSpringTest
|
||||
assertEquals(1, assocs.size());
|
||||
|
||||
// request a form for a type with an underscore in it's name
|
||||
fields = new ArrayList<String>(4);
|
||||
fields = new ArrayList<String>(1);
|
||||
fields.add("cm:name");
|
||||
|
||||
form = this.formService.getForm(new Item(TYPE_FORM_ITEM_KIND, "fdk:with_underscore"), fields);
|
||||
assertNotNull(form);
|
||||
|
||||
// make sure there are 3 fields
|
||||
// make sure there is 1 fields
|
||||
fieldDefs = form.getFieldDefinitions();
|
||||
assertNotNull(fieldDefs);
|
||||
assertEquals(1, fieldDefs.size());
|
||||
@@ -1271,6 +1271,34 @@ public class FormServiceImplTest extends BaseAlfrescoSpringTest
|
||||
data.addFieldData(AbstractFormProcessor.DESTINATION, this.folder.toString());
|
||||
NodeRef newNode = (NodeRef)this.formService.saveForm(new Item(TYPE_FORM_ITEM_KIND, "fdk:with_underscore"), data);
|
||||
assertNotNull(newNode);
|
||||
|
||||
// get and save a form for a type and property that has a dash in the namespace prefix
|
||||
fields = new ArrayList<String>(2);
|
||||
fields.add("cm:name");
|
||||
fields.add("my-fdk:more_text");
|
||||
|
||||
form = this.formService.getForm(new Item(TYPE_FORM_ITEM_KIND, "my-fdk:namespace-with-dash"), fields);
|
||||
assertNotNull(form);
|
||||
|
||||
// make sure there are 2 fields
|
||||
fieldDefs = form.getFieldDefinitions();
|
||||
assertNotNull(fieldDefs);
|
||||
assertEquals(2, fieldDefs.size());
|
||||
|
||||
// save the form to ensure persistence works too
|
||||
nodeName = GUID.generate() + ".txt";
|
||||
data = new FormData();
|
||||
data.addFieldData("prop_cm_name", nodeName);
|
||||
data.addFieldData("prop_my-fdk_more_text", "This is some text");
|
||||
data.addFieldData(TypeFormProcessor.DESTINATION, this.folder.toString());
|
||||
newNode = (NodeRef)this.formService.saveForm(new Item(TYPE_FORM_ITEM_KIND, "my-fdk_namespace-with-dash"), data);
|
||||
assertNotNull(newNode);
|
||||
|
||||
// retrieve the properties and check the values
|
||||
Map<QName, Serializable> props = nodeService.getProperties(newNode);
|
||||
assertEquals(nodeName, (String)props.get(ContentModel.PROP_NAME));
|
||||
assertEquals("This is some text", (String)props.get(
|
||||
QName.createQName("http://www.alfresco.org/model/my-fdk/1.0", "more_text")));
|
||||
}
|
||||
|
||||
public void testGetFormForJbpmTask() throws Exception
|
||||
|
@@ -97,7 +97,7 @@ public abstract class ContentModelFormProcessor<ItemType, PersistType> extends
|
||||
* names will look like <code>"prop_cm_name"</code>. The pattern can also be
|
||||
* used to extract the "cm" and the "name" parts.
|
||||
*/
|
||||
protected Pattern propertyNamePattern = Pattern.compile(PROP_DATA_PREFIX + "([a-zA-Z0-9]+)_(.*)");
|
||||
protected Pattern propertyNamePattern = Pattern.compile(PROP_DATA_PREFIX + "([a-zA-Z0-9-]+)_(.*)");
|
||||
|
||||
/**
|
||||
* A regular expression which can be used to match tranisent property names.
|
||||
@@ -112,7 +112,7 @@ public abstract class ContentModelFormProcessor<ItemType, PersistType> extends
|
||||
* pattern can also be used to extract the "cm", the "name" and the suffix
|
||||
* parts.
|
||||
*/
|
||||
protected Pattern associationNamePattern = Pattern.compile(ASSOC_DATA_PREFIX + "([a-zA-Z0-9]+)_(.*)(_[a-zA-Z]+)");
|
||||
protected Pattern associationNamePattern = Pattern.compile(ASSOC_DATA_PREFIX + "([a-zA-Z0-9-]+)_(.*)(_[a-zA-Z]+)");
|
||||
|
||||
/**
|
||||
* Sets the node service
|
||||
|
Reference in New Issue
Block a user