alfresco-ng2-components icon indicating copy to clipboard operation
alfresco-ng2-components copied to clipboard

Getting "Complex properties" through NodesApiService doesn't work

Open yregaieg opened this issue 6 years ago • 1 comments

When I try to get a multivalued property using NodesApiService, instead of getting an array of values, I get a string representation of an array of objects.

This is actually similar to the issue we raised few months back related to lockOwner data, except now it is showing up on custom properties that are multivalued

Type of issue: (check with "[x]")

  • [ ] New feature request
  • [X] Bug
  • [X] Support request
  • [ ] Documentation

Current behaviour: See above

Expected behavior: The API should be able to correctly parse data coming from the backend and show mutivalued properties as arrays of values instead of a string serialization.

Steps to reproduce the issue:

  • Create and deploy a model containing a multivalued property to ACS
  • Create a node of that type in ACS (through REST api or whatever) (don't forget to fill in multivalued properties)
  • In ADF use NodesApiService.getNode(uuid) to get node information, and print the output to browser's console.
  • By browsing into the printed object in browser dev tools you can confirm that the property is present but with the wrong content (string serialization of the array)
  • By inspecting the network tab you can confirm that REST api is actually returning the correct format.

Component name and version:

Browser and version: ALL

Node version (for build issues):
not relevant

New feature request: N/A

yregaieg avatar Oct 22 '18 13:10 yregaieg

it looks like a javascript api issue

eromano avatar Oct 30 '18 12:10 eromano