Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-26303

The "Install this flavor" button of the Distribution Wizard can be enabled while no flavor is selected

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce

      1. Start the Distribution Wizard on a wiki with no flavor, or with an invalid flavor, so that the flavor step displays the flavor picker
      2. Look at the "Install this flavor" button as soon as the step is displayed, before selecting a flavor

      Expected results

      The button is disabled as long as no flavor is selected.

      Actual results

      The button can be enabled for a while with no flavor selected. It gets disabled only once the flavor picker has received its first list of flavors from the server. Clicking it in the meantime just displays the step again.

      The button is rendered enabled, and the step script disables it only when the flavor picker notifies an update, which happens asynchronously (jQuery is loaded through RequireJS and the flavors through AJAX).

      Impact on the tests

      This makes Upgrade84Test#upgrade and Upgrade84FileStoreTest#upgrade fail from time to time on assertFalse(flavorPicker.isInstallFlavorEnabled()) in UpgradeTest.flavorStepKnownInvalidUpgrade. Seen on CI on master (2026-06-30), stable-18.4.x (2026-06-29) and stable-17.10.x (2026-10-20).

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: