Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-74963

Exceptions caused by reference parameter dependencies

      There are two Active Choices Reactive Parameters here that called channel and include_arm32, include_arm32 needs channel. When we save the configuration and back to the job page, then click Build with Parameters menu, there is a loading in the front of the channel field checkbox. At this time, if you switch to the Console tab of the chrome browser, you'll find some error messagess about UnoChoice.js in it. The screenshots image and job files is as blow:

          [JENKINS-74963] Exceptions caused by reference parameter dependencies

          Mars Wong added a comment -

          BTW, Jenkins 2.488 and Active Choices Plug-in 2.8.3, the result is ok~

          Mars Wong added a comment - BTW, Jenkins 2.488 and Active Choices Plug-in 2.8.3, the result is ok~

          Mars Wong added a comment -

          Mars Wong added a comment - just the same as Active choice parameter filter throws JavaScript error for parameter change event in browser console , I will track that issue.

          Bruno P. Kinoshita added a comment - - edited

          Successfully reproduced this issue with the latest commit from `master` branch (a2fc7de13ad3ae5ab23dc1c9548cab9d0eadd8fa, future 2.8.7 version), thanks a lot for the detailed example

          Will start working on this one for the next release (looks like something went wrong with the past releases and it took me too long to notice it). Cheers

           

           

          Bruno P. Kinoshita added a comment - - edited Successfully reproduced this issue with the latest commit from `master` branch (a2fc7de13ad3ae5ab23dc1c9548cab9d0eadd8fa, future 2.8.7 version), thanks a lot for the detailed example Will start working on this one for the next release (looks like something went wrong with the past releases and it took me too long to notice it). Cheers    

          Fixed it locally, what appears to be a case where the `SELECT` element is not visible/displayed when the plug-in searches for it, which results in an exception and causes the Spinner/Loading to not be released.

          Fix: https://github.com/jenkinsci/active-choices-plugin/pull/425

          I've attached uno-choice-JENKINS-74963.hpi, which is the plug-in built with the branch of this pull request. When I have time over next days I will see if I can write a unit &/| e2e test, but if someone else could either check the code or try this version and confirm it fixes this bug, then it would be a lot easier and faster to merge and release a new version with the fix.

          Cheers

          Bruno P. Kinoshita added a comment - Fixed it locally, what appears to be a case where the `SELECT` element is not visible/displayed when the plug-in searches for it, which results in an exception and causes the Spinner/Loading to not be released. Fix: https://github.com/jenkinsci/active-choices-plugin/pull/425 I've attached uno-choice- JENKINS-74963 .hpi, which is the plug-in built with the branch of this pull request. When I have time over next days I will see if I can write a unit &/| e2e test, but if someone else could either check the code or try this version and confirm it fixes this bug, then it would be a lot easier and faster to merge and release a new version with the fix. Cheers

            kinow Bruno P. Kinoshita
            noneorone Mars Wong
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: