mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged HEAD (5.2) to 5.2.N (5.2.1)
126419 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2) 121799 jvonka: FileFolder API - minor validation fix when listing children via "relativePath" - also check type of parentId (to be a folder) before (as well as after) resolving relative path RA-753 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126765 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -498,6 +498,10 @@ public class NodeApiTest extends AbstractBaseApiTest
|
||||
// -ve test - try to list children using relative path to node that is of wrong type (ie. not a folder/container)
|
||||
params = Collections.singletonMap("relativePath", folder1 + "/" + contentF1);
|
||||
getAll(myChildrenUrl, user1, paging, params, 400);
|
||||
|
||||
// -ve test - list folder children for non-folder node with relative path should return 400
|
||||
params = Collections.singletonMap("relativePath", "/unknown");
|
||||
getAll(getChildrenUrl(contentNodeRef), user1, paging, params, 400);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user