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

Conjur Secrets Plugin causes "Save" button on System Configuration to be grayed out

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • Jenkins 2.452.4, 2.462.3, and 2.479.3
      Conjur Secrets Plugin Version2.2.3

      When plugin is installed, whenever a field in "System Configuration" is changed, the "SAVE" button and "APPLY" button become grayed out and never become active any more, even if the change was un-done.

      Need to either reload the page and ignore changes or go back in the browser.

          [JENKINS-75258] Conjur Secrets Plugin causes "Save" button on System Configuration to be grayed out

          Yuval Yosha created issue -
          Mark Waite made changes -
          Attachment New: plugins.txt [ 63950 ]
          Mark Waite made changes -
          Attachment New: run-jenkins.sh [ 63951 ]

          Mark Waite added a comment - - edited

          Thanks for reporting the issue. I can duplicate the issue. The JavaScript debugging tools report an exception attempting to assign the value true to a field that is part of a null object applyBtn. That is line 192 of the file src/main/resources/org/conjur/jenkins/configuration/GlobalConjurConfiguration/config.jelly in the Conjur credentials plugin source code.

          Steps that I used to duplicate the bug:

          1. Create a plugins.txt file with the list of plugins and their versions
          2. Create a run-jenkins.sh shell script that downloads Jenkins 2.479.3 and the plugins from plugins.txt
          3. Run the run-jenkins.sh script and complete the setup wizard by creating a user and installing no additional plugins
          4. Open the "Manage Jenkins" -> "System" page and change any field (I changed number of executors from 2 to 3)
          5. Confirm that the "Save" and "Apply" buttons are now disabled (bug confirmed)
          6. Disable the Conjur Credentials plugin from the plugin manager and restart Jenkins
          7. Open the "Manage Jenkins" -> "System" page and change any field (I changed number of executors from 2 to 3)
          8. Confirm that the "Save" and "Apply" buttons are active (bug only visible when Conjur credentials plugin is active)

          Mark Waite added a comment - - edited Thanks for reporting the issue. I can duplicate the issue. The JavaScript debugging tools report an exception attempting to assign the value true to a field that is part of a null object applyBtn . That is line 192 of the file src/main/resources/org/conjur/jenkins/configuration/GlobalConjurConfiguration/config.jelly in the Conjur credentials plugin source code. Steps that I used to duplicate the bug: Create a plugins.txt file with the list of plugins and their versions Create a run-jenkins.sh shell script that downloads Jenkins 2.479.3 and the plugins from plugins.txt Run the run-jenkins.sh script and complete the setup wizard by creating a user and installing no additional plugins Open the "Manage Jenkins" -> "System" page and change any field (I changed number of executors from 2 to 3) Confirm that the "Save" and "Apply" buttons are now disabled (bug confirmed) Disable the Conjur Credentials plugin from the plugin manager and restart Jenkins Open the "Manage Jenkins" -> "System" page and change any field (I changed number of executors from 2 to 3) Confirm that the "Save" and "Apply" buttons are active (bug only visible when Conjur credentials plugin is active)

          Mark Waite added a comment - - edited

          Same problem happens with Jenkins 2.462.3 and 2.452.4

          Mark Waite added a comment - - edited Same problem happens with Jenkins 2.462.3 and 2.452.4
          Mark Waite made changes -
          Remote Link New: This issue links to "PR-38 - do not disable the system configuration submit button (Web Link)" [ 30530 ]
          Mark Waite made changes -
          Attachment New: conjur-credentials.zip [ 63952 ]

          Mark Waite added a comment -

          I've uploaded a build of the plugin from my pull request as conjur-credentials.zip . If you're willing to try it in a non-production environment, that might be more likely to persuade the plugin maintainers that they should accept the pull request and deliver a new release.

          Mark Waite added a comment - I've uploaded a build of the plugin from my pull request as conjur-credentials.zip . If you're willing to try it in a non-production environment, that might be more likely to persuade the plugin maintainers that they should accept the pull request and deliver a new release.
          Mark Waite made changes -
          Comment [ Same problem happens with Jenkins 2.452.4. ]
          Mark Waite made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

            markewaite Mark Waite
            yyosha Yuval Yosha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: