alfresco-java-sdk
alfresco-java-sdk copied to clipboard
NodesApi.getNode() is not getting expected results for "include" param
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.
Already solved in https://github.com/Alfresco/alfresco-java-sdk/pull/104