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

Cannot disable a plugin when dependent plugins are disabled (regression in 2.325)

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • 2.344

      I've updated to 2.332.2 (from 2.303.2) and I'm not able to disable the Jira plugin anymore.

      If I hover the mouse over the toggle, it tells me it cannot be disabled because it is used by the "Jira integration for Blue Ocean"

      I disable it, restart jenkins and still the toggle switch for the Jira plugin is disabled. If I hover over it there is no warning box either.

       

      The workaround is to open the developer console and remove the class "has-dependents" to enable the toggle.

       

        1. disable_plugin_1.png
          disable_plugin_1.png
          56 kB
        2. disable_plugin_2.png
          disable_plugin_2.png
          45 kB
        3. disable_plugin_3.png
          disable_plugin_3.png
          114 kB
        4. disable_plugin_4.png
          disable_plugin_4.png
          107 kB

          [JENKINS-68277] Cannot disable a plugin when dependent plugins are disabled (regression in 2.325)

          Basil Crow added a comment -

          dcendents When filing regression bugs, it is helpful to include the steps to reproduce, expected results, and actual results as described in the Issue Reporting documentation. As a courtesy, I have taken the liberty of providing this information below:

          Steps to reproduce

          1. Install Jenkins in a clean Jenkins home.
          2. Go through the setup wizard and install the suggested plugin set.
          3. Install Blue Ocean and Jira Integration for Blue Ocean.
          4. Restart Jenkins.
          5. Observe that in ${JENKINS_URL/pluginManager/installed Jira Integration for Blue Ocean can be disabled but Jira cannot. Disable Jira Integration for Blue Ocean.
          6. Observe that ${JENKINS_HOME}/plugins/blueocean-jira.jpi.disabled was created.
          7. Restart Jenkins.
          8. Attempt to disable Jira.

          Expected results

          Note: These are the actual results prior to 2.325.

          Jira can be disabled, because Jira Integration for Blue Ocean was disabled previously.

          Actual results

          Jira cannot be disabled. The enabled slider is grayed out. Hovering over the on the right hand side, the UI says (erroneously!): "This plugin cannot be uninstalled. It has one or more installed dependencts. Jira Integration for Blue Ocean"

          Evaluation

          Bisection reveals this regression was introduced in 2.325 in jenkinsci/jenkins#5916 (JENKINS-68285).

          Basil Crow added a comment - dcendents When filing regression bugs, it is helpful to include the steps to reproduce, expected results, and actual results as described in the Issue Reporting documentation. As a courtesy, I have taken the liberty of providing this information below: Steps to reproduce Install Jenkins in a clean Jenkins home. Go through the setup wizard and install the suggested plugin set. Install Blue Ocean and Jira Integration for Blue Ocean . Restart Jenkins. Observe that in ${JENKINS_URL/pluginManager/installed Jira Integration for Blue Ocean can be disabled but Jira cannot. Disable Jira Integration for Blue Ocean . Observe that ${JENKINS_HOME}/plugins/blueocean-jira.jpi.disabled was created. Restart Jenkins. Attempt to disable Jira . Expected results Note: These are the actual results prior to 2.325. Jira can be disabled, because Jira Integration for Blue Ocean was disabled previously. Actual results Jira cannot be disabled. The enabled slider is grayed out. Hovering over the ⓧ on the right hand side, the UI says (erroneously!): "This plugin cannot be uninstalled. It has one or more installed dependencts. Jira Integration for Blue Ocean " Evaluation Bisection reveals this regression was introduced in 2.325 in jenkinsci/jenkins#5916 ( JENKINS-68285 ).

          Jan Faracik added a comment -

          Fix is available here https://github.com/jenkinsci/jenkins/pull/6486 - thanks for raising

          Jan Faracik added a comment - Fix is available here https://github.com/jenkinsci/jenkins/pull/6486  - thanks for raising

            janfaracik Jan Faracik
            dcendents Daniel Beland
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: