Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-776

Web Forms: Validation of mandatory xs:boolean types is not working correctly

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.1 Enterprise
    • Fix Version/s: 3.3 Enterprise
    • Component/s: ZZ_Archive
    • Labels:
      None
    • Environment:
      n/a
    • Resource:
      External
    • Resolution Time Custom Field:
      20 weeks, 4 days, 21 hours, 17 minutes, 8 seconds

      Description

      Steps to reproduce:
      1. create an XML schema that includes a mandatory (minOccurs="1" maxOccurs="1") element of type xs:boolean
      2. upload the schema as a new Web Form
      3. create content using the Web Form
      4. don't touch the checkbox field created for the xs:boolean element
      5. click ok

      Expected result:

      • content is saved correctly, with the xs:boolean element having a value of "false"

      Actual result:

      • an error message is displayed, indicating that the boolean field is mandatory but doesn't have a value

      This is incorrect as it does have a value by default - an unchecked checkbox has a value of "false".

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs
                Reporter:
                pmonks Peter Monks [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Structure Helper Panel