mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.N (5.2.2) to HEAD (5.2)
134045 cturlica: REPO-1684: We should not return properties that are empty - Empty (zero length) string values are considered to be null values, and will be represented the same as null values (i.e. by non-existence of the property). git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@137334 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1197,6 +1197,15 @@ public class NodesImpl implements Nodes
|
||||
{
|
||||
value = Node.lookupUserInfo((String)value, mapUserInfo, sr.getPersonService());
|
||||
}
|
||||
|
||||
// Empty (zero length) string values are considered to be
|
||||
// null values, and will be represented the same as null
|
||||
// values (i.e. by non-existence of the property).
|
||||
if (value != null && value instanceof String && ((String) value).isEmpty())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
props.put(qName.toPrefixString(namespaceService), value);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user