Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)

124349 adavis: Merged 5.1.0-CLOUD43 (Cloud ) to 5.1.N (5.1.2)
      123596 skopf: ACE-2540


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@124367 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andreea Dragoi
2016-03-22 14:33:37 +00:00
parent d14f28a0a9
commit eea38e0590

View File

@@ -125,9 +125,19 @@ public class PublicApiAlfrescoCmisService extends AlfrescoCmisServiceImpl
@Override
public RepositoryInfo getRepositoryInfo(String repositoryId, ExtensionsData extension)
{
checkRepositoryId(repositoryId);
Network network = null;
try
{
checkRepositoryId(repositoryId);
network = networksService.getNetwork(repositoryId);
}
catch(Exception e)
{
// ACE-2540: Avoid information leak. Same response if repository does not exist or if user is not a member
throw new CmisObjectNotFoundException("Unknown repository '" + repositoryId + "'!");
}
Network network = networksService.getNetwork(repositoryId);
return getRepositoryInfo(network);
}