mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fixed issue when some PHP clients where passing null values as empty strings. Now the server code will expect this possibility and check accordingly.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2204 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -185,7 +185,7 @@ public class Utils
|
|||||||
// find out where we are starting from, either the root or the node
|
// find out where we are starting from, either the root or the node
|
||||||
// represented by the uuid
|
// represented by the uuid
|
||||||
NodeRef rootNodeRef = null;
|
NodeRef rootNodeRef = null;
|
||||||
if (uuid == null)
|
if (uuid == null || uuid.length() == 0)
|
||||||
{
|
{
|
||||||
rootNodeRef = nodeService.getRootNode(convertToStoreRef(store));
|
rootNodeRef = nodeService.getRootNode(convertToStoreRef(store));
|
||||||
} else
|
} else
|
||||||
@@ -194,7 +194,7 @@ public class Utils
|
|||||||
}
|
}
|
||||||
|
|
||||||
// see if we have a path to further define the node being requested
|
// see if we have a path to further define the node being requested
|
||||||
if (path != null)
|
if (path != null && path.length() != 0)
|
||||||
{
|
{
|
||||||
List<NodeRef> nodes = searchService.selectNodes(rootNodeRef, path,
|
List<NodeRef> nodes = searchService.selectNodes(rootNodeRef, path,
|
||||||
null, namespaceService, false);
|
null, namespaceService, false);
|
||||||
|
Reference in New Issue
Block a user