Uploaded image for project: 'Nuxeo Web UI'
  1. Nuxeo Web UI
  2. WEBUI-1443

Fix usage of multi-valued complex field with only one subfield

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.x
    • Component/s: Web UI
    • Backlog priority:
      700
    • Sprint:
      UI - 2024-02, UI - 2024-3, UI - 2024-5
    • Story Points:
      3

      Description

      This configuration is not relevant, but some customers have configured a property as multi-valued complex with only one sub field => we need to support it for people who are moving from JSF and where this configuration worked.

      Steps to reproduce:

      1. deploy the attached jar and start Nuxeo
      2. navigate to the personal workspace
      3. push the + button and choose the type "monocomplex"
      4. set a title and add a new value for "signataires" : push the Add button, fill the "address" field and validate with "ok"
      5. observe that the new line in the datatable is empty => you cannot see the value you set for "address" : first bug
      6. Push the Create button
      7. Observe that a message is displayed to indicate that the document creation failed : second bug
        {entity-type: 'exception', status: 400, message: 'Unable to deserialize property: monocomplex:signataires/-1'}
        

         

      Expected behavior: the data table which contains the entries for the multi-valued complex field displays the subfield correctly, and the complex property is saved correctly when the document is created. Note that the same problem may affect the document modification.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: