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

No events fired when user selects enable and disable project button

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • ubuntu quantal
      jenkins ver 1.502

      The jenkins ItemListener does not fire events when user clicks on the button to disable and enable a project. That button should at least fire an onUpdated event.

          [JENKINS-17108] No events fired when user selects enable and disable project button

          Kathi Stutz added a comment -

          I just noticed this as well. It also doesn't fire when you change the description of a project using the "edit description" textbox on the project page. This is a pity, because it renders the onUpdated() method of ItemListener useless for me. (We'll use the SaveableListener as a workaround.)

          Kathi Stutz added a comment - I just noticed this as well. It also doesn't fire when you change the description of a project using the "edit description" textbox on the project page. This is a pity, because it renders the onUpdated() method of ItemListener useless for me. (We'll use the SaveableListener as a workaround.)

          If I have time I will create a pull request for this tonight, it's an easy fix, only two lines of code.

          Daniel Olausson added a comment - If I have time I will create a pull request for this tonight, it's an easy fix, only two lines of code.

          Code changed in jenkins
          User: Daniel Olausson
          Path:
          core/src/main/java/hudson/model/AbstractItem.java
          core/src/main/java/hudson/model/AbstractProject.java
          http://jenkins-ci.org/commit/jenkins/e81a9076c414eda983559f17aa8f0c38b8a89b09
          Log:
          JENKINS-17108. This solves the problem with ItemListner.onUpdated not being called if the project was disabled/enabled by pushing the button on the project page. Also solved the problem with ItemListener.onUpdated not getting called if the project description was updated using the edit description on the project page.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Olausson Path: core/src/main/java/hudson/model/AbstractItem.java core/src/main/java/hudson/model/AbstractProject.java http://jenkins-ci.org/commit/jenkins/e81a9076c414eda983559f17aa8f0c38b8a89b09 Log: JENKINS-17108 . This solves the problem with ItemListner.onUpdated not being called if the project was disabled/enabled by pushing the button on the project page. Also solved the problem with ItemListener.onUpdated not getting called if the project description was updated using the edit description on the project page.

          vjuranek added a comment -

          Now, should be fixed by PR #912

          vjuranek added a comment - Now, should be fixed by PR #912

          Khai Do added a comment -

          I have verified that has been fixed in LTS ver 1.565.3

          Khai Do added a comment - I have verified that has been fixed in LTS ver 1.565.3

          Khai Do added a comment -

          works in LTS ver 1.565.3

          Khai Do added a comment - works in LTS ver 1.565.3

            Unassigned Unassigned
            zaro Khai Do
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: