mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)
125609 jvonka: RA-952: If relative path cannot be resolved due to a permissionn error, return 404 (rather than 403) - when listing children or getting node info git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127557 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -685,6 +685,11 @@ public class NodesImpl implements Nodes
|
||||
// convert checked exception
|
||||
throw new NotFoundException("The entity with relativePath: " + path + " was not found.");
|
||||
}
|
||||
catch (AccessDeniedException ade)
|
||||
{
|
||||
// return 404 instead of 403 (as per security review - uuid vs path)
|
||||
throw new NotFoundException("The entity with relativePath: " + path + " was not found.");
|
||||
}
|
||||
|
||||
return fileInfo.getNodeRef();
|
||||
}
|
||||
|
Reference in New Issue
Block a user