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

Handle errors on string constraints in custom document form layouts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 10.3-SNAPSHOT
    • Fix Version/s: 10.3
    • Component/s: Seam / JSF UI

      Description

      Steps to reproduce:

      • In Studio modeler, configure a custom document.
      • To the custom document's schema, add a multi-valued string property with the following constraint:
        • select Web link pattern
        • In the Layout Widget editor, choose a template widget and upload the attached template.
      • Add the field to all three layouts and deploy.
      • Try creating a custom document in Nuxeo and add https://www.nuxeo.com
        => Error page appears, errors in server.log

      Expected result:

      • Should be able to create the custom document with a URL in the constrained field.
      • If the URL doesn't fit the correct pattern, an error message should appear in the form instead of crashing the UI.

        Attachments

        1. link_widget_template_fixed.xhtml
          0.6 kB
          Anahide Tchertchian
        2. link_widget_template.xhtml
          0.7 kB
          Karin Touchie

          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 - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 20 minutes
                  20m