Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aborroy opened this issue Oct 29, 2021 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@aborroy
Copy link

aborroy commented Oct 29, 2021

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.

@mmartinadanx mmartinadanx added the bug Something isn't working label Nov 4, 2021
@jlosornogil
Copy link
Contributor

Already solved in #104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants