mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
75505: Merged V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (5.0/Cloud) 74929: MNT-11772: Cast Exception When Mapping Single Metadata Property to cm:taggable - Added check of propertyValue type git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@77467 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1581,10 +1581,17 @@ abstract public class AbstractMappingMetadataExtracter implements MetadataExtrac
|
|||||||
// We must want to map tag string values instead of nodeRefs
|
// We must want to map tag string values instead of nodeRefs
|
||||||
// ContentMetadataExtracter will take care of tagging by string
|
// ContentMetadataExtracter will take care of tagging by string
|
||||||
ArrayList<Object> list = new ArrayList<Object>(1);
|
ArrayList<Object> list = new ArrayList<Object>(1);
|
||||||
|
if (propertyValue instanceof Object[])
|
||||||
|
{
|
||||||
for (Object value : (Object[]) propertyValue)
|
for (Object value : (Object[]) propertyValue)
|
||||||
{
|
{
|
||||||
list.add(value);
|
list.add(value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
list.add(propertyValue);
|
||||||
|
}
|
||||||
convertedProperties.put(propertyQName, list);
|
convertedProperties.put(propertyQName, list);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user