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

Fix retention rule validation in create/edit layout

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10-HF21
    • Fix Version/s: 10.10-HF22
    • Component/s: Retention, Web UI

      Description

      Steps to reproduce:

      • Go to the retention dawer menu and click Retention rules
      • Create a new retention rule
      • Fill required title field
      • In RETENTION PERIOD STARTING POINT / Define when the retention period starts, select Based on metadata. Xpath required field appears -> leave it blank
      • Then select Immediate
      • Fill other required Years, Months, Days duration fields
      • Click Create -> KO nothing happens

      It is because the validation fails as the Xpath field is inside a dom-if template and is stamped when selection Based on metadata policy is selected. Once unselected, it remains stamped and is processed by the form validation. Indeed:

      By default, stamped elements will be hidden but left in the DOM when if becomes false, which is generally results in better performance.

      See https://polymer-library.polymer-project.org/3.0/api/elements/dom-if#DomIf-property-restamp

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.