mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2)
124741 jkaabimofrad: RA-895: fixed the error message when the relativePath does not exist. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@126582 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -662,7 +662,6 @@ public class NodesImpl implements Nodes
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
FileInfo fileInfo = null;
|
||||
try
|
||||
{
|
||||
@@ -675,14 +674,14 @@ public class NodesImpl implements Nodes
|
||||
fileInfo = fileFolderService.getFileInfo(parentNodeRef);
|
||||
if (fileInfo == null)
|
||||
{
|
||||
throw new FileNotFoundException(parentNodeRef);
|
||||
throw new EntityNotFoundException(parentNodeRef.getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (FileNotFoundException fnfe)
|
||||
{
|
||||
// convert checked exception
|
||||
throw new EntityNotFoundException(parentNodeRef.getId());
|
||||
throw new NotFoundException("The entity with relativePath: " + path + " was not found.");
|
||||
}
|
||||
|
||||
return fileInfo.getNodeRef();
|
||||
|
Reference in New Issue
Block a user