Proper fix for SLNG-1166

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10864 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2008-09-09 10:19:26 +00:00
parent 3559269b35
commit 2f77a9c25e
2 changed files with 4 additions and 4 deletions

View File

@@ -20,9 +20,9 @@ Some CMIS protocol bindings MAY choose not to explicitly implement a “getConte
Each CMIS protocol binding will provide a way for fetching a sub-range within a content stream, in a manner appropriate to that protocol.<br> Each CMIS protocol binding will provide a way for fetching a sub-range within a content stream, in a manner appropriate to that protocol.<br>
]]> ]]>
</description> </description>
<url>/api/node/content{property}/{store_type}/{store_id}/{node_id}?a={attach?}</url> <url>/api/node/content{property}/{store_type}/{store_id}/{id}?a={attach?}</url>
<url>/api/path/content{property}/{store_type}/{store_id}/{path}?a={attach?}</url> <url>/api/path/content{property}/{store_type}/{store_id}/{id}?a={attach?}</url>
<url>/api/avmpath/content{property}/{store_id}/{path}?a={attach?}</url> <url>/api/avmpath/content{property}/{store_id}/{id}?a={attach?}</url>
<url>/api/node/{store_type}/{store_id}/{id}/content{property}?a={attach?}</url> <url>/api/node/{store_type}/{store_id}/{id}/content{property}?a={attach?}</url>
<url>/api/path/{store_type}/{store_id}/{id}/content{property}?a={attach?}</url> <url>/api/path/{store_type}/{store_id}/{id}/content{property}?a={attach?}</url>
<authentication>guest</authentication> <authentication>guest</authentication>

View File

@@ -89,7 +89,7 @@ public class ContentGet extends StreamContent
String match = req.getServiceMatch().getPath(); String match = req.getServiceMatch().getPath();
String[] matchParts = match.split("/"); String[] matchParts = match.split("/");
Map<String, String> templateVars = req.getServiceMatch().getTemplateVars(); Map<String, String> templateVars = req.getServiceMatch().getTemplateVars();
String[] id = templateVars.get("node_id").split("/"); String[] id = templateVars.get("id").split("/");
String[] path = new String[id.length + 2]; String[] path = new String[id.length + 2];
path[0] = templateVars.get("store_type"); path[0] = templateVars.get("store_type");
path[1] = templateVars.get("store_id"); path[1] = templateVars.get("store_id");