Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-16507

Fix JSON marshalling of list properties

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 7.1
    • Fix Version/s: None
    • Component/s: Automation

      Description

      org.nuxeo.ecm.automation.core.util.JSONPropertyWriter write list properties as list of strings whatever the base type of the items.

      This happens in method writeListPropertyValue

                  org.nuxeo.ecm.core.schema.types.Type type = ((ListType) prop.getType()).getFieldType();
                  for (Object o : ar) {
                          jg.writeString(type.encode(o));
                  }
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: