diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/store/content.get.desc.xml b/config/alfresco/templates/webscripts/org/alfresco/repository/store/content.get.desc.xml index aa8b8e12d5..a1dd43af62 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/store/content.get.desc.xml +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/store/content.get.desc.xml @@ -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.
]]> - /api/node/content{property}/{store_type}/{store_id}/{node_id}?a={attach?} - /api/path/content{property}/{store_type}/{store_id}/{path}?a={attach?} - /api/avmpath/content{property}/{store_id}/{path}?a={attach?} + /api/node/content{property}/{store_type}/{store_id}/{id}?a={attach?} + /api/path/content{property}/{store_type}/{store_id}/{id}?a={attach?} + /api/avmpath/content{property}/{store_id}/{id}?a={attach?} /api/node/{store_type}/{store_id}/{id}/content{property}?a={attach?} /api/path/{store_type}/{store_id}/{id}/content{property}?a={attach?} guest diff --git a/source/java/org/alfresco/repo/web/scripts/content/ContentGet.java b/source/java/org/alfresco/repo/web/scripts/content/ContentGet.java index 2399dc51d4..5330c8ad6c 100644 --- a/source/java/org/alfresco/repo/web/scripts/content/ContentGet.java +++ b/source/java/org/alfresco/repo/web/scripts/content/ContentGet.java @@ -89,7 +89,7 @@ public class ContentGet extends StreamContent String match = req.getServiceMatch().getPath(); String[] matchParts = match.split("/"); Map templateVars = req.getServiceMatch().getTemplateVars(); - String[] id = templateVars.get("node_id").split("/"); + String[] id = templateVars.get("id").split("/"); String[] path = new String[id.length + 2]; path[0] = templateVars.get("store_type"); path[1] = templateVars.get("store_id");