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

Field validation not triggered for a schema dynamically added

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2021.14
    • Fix Version/s: None
    • Component/s: Core

      Description

      Steps to reproduce:

      • Have a schema with a required field
      • Add it to a facet definition
      • In emptyDocCreated, add the facet (Document.AddFacet, without saving because we are in emptyDocCreated)
      • Save document without filling the required field
      • => no error triggered.

      Notice : in this use case, the field is not displayed in the UI (so WebUI does not do anything special)

      The document is created, its JSON show the facet is there and the field is there, null.

      Expected: Creation should have been rejected.

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: