Merged 5.2.N-REPO-1815 (5.2.1) to 5.2.N (5.2.1)

134749 mmuller: REPO-1815 / ACE-5753 check if operation is null or empty and attach cmisselect=repositoryInfo and some code optimazion


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134753 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Martin Muller
2017-01-25 12:55:22 +00:00
parent 08a903bb85
commit 7f03b263ba

View File

@@ -473,24 +473,16 @@ public class CMISHttpServletRequest implements HttpServletRequest
if(networkId != null && networkId.length() > 0)
{
if (reqQueryString == null)
if (reqQueryString != null)
{
queryString.append("repositoryId=");
queryString.append(networkId);
queryString.append(reqQueryString + "&");
}
else
{
queryString.append(reqQueryString);
queryString.append("&repositoryId=");
queryString.append(networkId);
}
String cmisselector = httpReq.getParameter("cmisselector");
if(cmisselector == null || cmisselector.isEmpty())
queryString.append("repositoryId=" + networkId);
if(operation == null || operation.isEmpty())
{
queryString.append("&cmisselector=");
queryString.append(Constants.SELECTOR_REPOSITORY_INFO);
}
return queryString.toString();
}
return reqQueryString;