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

Empty dropdown with new version

    XMLWordPrintable

Details

    • Bug
    • Status: Fixed but Unreleased (View Workflow)
    • Major
    • Resolution: Fixed
    • active-choices-plugin
    • None
    • Jenkins: 2.249.2
      Active choices plugin: 2.5, 2.5.1

    Description

      The newest versions of the active choices plugin (2.5 and 2.5.1) both have a problem with the values of the shown dropdown. Iam using a custom scriptler script for a sorting algorithm and returning the values as an array containing strings.

      The active choices dropdown remains empty. With version 2.4 everything works fine.

       

      Could you please look into this problem. I'd like to update the plugin to the newest version.

      Attachments

        Activity

          Hi alexander_geringer,

          Could you provide an example script to reproduce the issue? Otherwise the issue is rather hard to reproduce, and might be closed as Cannot Reproduce. There were two other regressions, related to the new security checks with Scriptler & Groovy. It might be related, but unless we have a test case for this issue, we won't be able to guarantee the next release works for you.

          Next release should be ready in the coming days.

          Cheers,

          Bruno

          kinow Bruno P. Kinoshita added a comment - Hi alexander_geringer , Could you provide an example script to reproduce the issue? Otherwise the issue is rather hard to reproduce, and might be closed as Cannot Reproduce. There were two other regressions, related to the new security checks with Scriptler & Groovy. It might be related, but unless we have a test case for this issue, we won't be able to guarantee the next release works for you. Next release should be ready in the coming days. Cheers, Bruno

          p.s. worth checking if your case is not a legit change for security reasons. In previous versions, the scripts were not always verified with the Script Security Plugin. Check out your scripts pending approval in Jenkins, and see if you have your script, or some method signature that is pending approval. If you approve and it fixes the issue, it means that now the scripts are being correctly audited.

          kinow Bruno P. Kinoshita added a comment - p.s. worth checking if your case is not a legit change for security reasons. In previous versions, the scripts were not always verified with the Script Security Plugin. Check out your scripts pending approval in Jenkins, and see if you have your script, or some method signature that is pending approval. If you approve and it fixes the issue, it means that now the scripts are being correctly audited.

          Hi Bruno,

           

          the problem had nothing to do with the custom sorting method i was using. I created an URL within the script, which contained multiple build parameters of the job.

          The active choices plugin made some changes regarding escaping of build parameters. It seems like the creation of the URL was the problem.

          Also, i indeed had pending approvals for several methods in jenkins. I approved those methods and the values are being displayed in the dropdown again.

           

          Thanks for your quick response and help!

           

          Greetings,

          Alex

          alexander_geringer Alexander Geringer added a comment - Hi Bruno,   the problem had nothing to do with the custom sorting method i was using. I created an URL within the script, which contained multiple build parameters of the job. The active choices plugin made some changes regarding escaping of build parameters. It seems like the creation of the URL was the problem. Also, i indeed had pending approvals for several methods in jenkins. I approved those methods and the values are being displayed in the dropdown again.   Thanks for your quick response and help!   Greetings, Alex

          Glad it helped Alex, and super thanks for describing your case here, as it may help others later

          Cheers

          Bruno

          kinow Bruno P. Kinoshita added a comment - Glad it helped Alex, and super thanks for describing your case here, as it may help others later Cheers Bruno

          People

            kinow Bruno P. Kinoshita
            alexander_geringer Alexander Geringer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: