alfresco-java-sdk icon indicating copy to clipboard operation
alfresco-java-sdk copied to clipboard

NodesApi.getNode() is not getting expected results for "include" param

Open aborroy opened this issue 4 years ago • 1 comments

When using following code to get additional details for a node...

String nodeId = "8bb36efb-c26d-4d2b-9199-ab6922f53c28";
List<String> include = List.of("permissions", "path");

Node node = nodesApi.getNode(nodeId, include, null, null).getBody().getEntry();

... returned Object only contains "permissions" information, while "path" is ignored.

The same request using directly REST API works as expected.

It has been observed some differences in the request URL:

  • URL generated with the SDK: GET /alfresco/api/-default-/public/alfresco/versions/1/nodes/8bb36efb-c26d-4d2b-9199-ab6922f53c28?include=permissions&include=path
  • URL generated with the Swagger Client (api-explorer): GET /alfresco/api/-default-/public/alfresco/versions/1/nodes/8bb36efb-c26d-4d2b-9199-ab6922f53c28?include=permissions,path

Both "permissions" and "path" details are expected to be recovered when using SDK and Swagger Client.

aborroy avatar Oct 29 '21 08:10 aborroy

Already solved in https://github.com/Alfresco/alfresco-java-sdk/pull/104

jlosornogil avatar Apr 27 '22 08:04 jlosornogil