Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-1825

A user shouln't be allowed to set a default value in a schema for a field marked as Multi-Valued

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15
    • Fix Version/s: 2.16
    • Component/s: Workflow

      Description

      For example setting a default string on a field of type StringList is causing a crash:

      See https://connect-test.nuxeo.com/nuxeo/site/studio/ide?project=mcedica-SANDBOX#@container:workflow
      for the workflow : Production_cahier_workflow

      2013-10-31 16:02:48,589 ERROR [com.nuxeo.studio.core.builders.WorkflowFeatureBuilder] Unable to export workflow models to zip 
      java.lang.IllegalArgumentException: A value of list type is neither list neither array: group:admin_fabrication
      	at org.nuxeo.ecm.core.io.impl.ExportedDocumentImpl.readProperty(ExportedDocumentImpl.java:329)
      	at com.nuxeo.studio.core.builders.workflow.ExportedDetachedDocumentImpl.readDocumentSchemas(ExportedDetachedDocumentImpl.java:58)
      	at org.nuxeo.ecm.core.io.impl.ExportedDocumentImpl.readDocument(ExportedDocumentImpl.java:250)
      	at org.nuxeo.ecm.core.io.impl.ExportedDocumentImpl.<init>(ExportedDocumentImpl.java:106)
      	at com.nuxeo.studio.core.builders.workflow.ExportedDetachedDocumentImpl.<init>(ExportedDetachedDocumentImpl.java:35)
      	at com.nuxeo.studio.core.builders.workflow.GraphTreeReader.read(GraphTreeReader.java:51)
      	at org.nuxeo.ecm.core.io.impl.AbstractDocumentReader.read(AbstractDocumentReader.java:43)
      	at org.nuxeo.ecm.core.io.impl.DocumentPipeImpl.readAndWriteDocs(DocumentPipeImpl.java:117)
      	at org.nuxeo.ecm.core.io.impl.DocumentPipeImpl.run(DocumentPipeImpl.java:98)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified