Skip to content

[JENKINS-44608] Effectively disable administrative monitors #22116

Closed

Description

@jenkins-infra-bot

When a administrative monitor is disabled, in the Manage Jenkins page the isActivated method is called before the isEnabled one, so e.g., if the computation of the activated state throws an error it will continue to do so even with the monitor disabled.

This does not happen in the page decorated, which checks the state in the correct order.


Originally reported by andresrc, imported from: Effectively disable administrative monitors
  • assignee: andresrc
  • status: Resolved
  • priority: Minor
  • component(s): core
  • label(s): 2.60.2-fixed
  • resolution: Fixed
  • resolved: 2017-06-03T08:37:40+00:00
  • votes: 0
  • watchers: 2
  • imported: 2025-11-24
Raw content of original issue

When a administrative monitor is disabled, in the Manage Jenkins page the isActivated method is called before the isEnabled one, so e.g., if the computation of the activated state throws an error it will continue to do so even with the monitor disabled.

This does not happen in the page decorated, which checks the state in the correct order.

  • environment: Jenkins 2.64

Activity

  1. jenkins-infra-bot commented on Jun 1, 2017

    @jenkins-infra-bot
    Author
  2. jenkins-infra-bot commented on Jun 3, 2017

    @jenkins-infra-bot
    Author
    scm_issue_link:

    Code changed in jenkins
    User: Andres Rodriguez
    Path:
    core/src/main/java/jenkins/management/AdministrativeMonitorsDecorator.java
    core/src/main/java/jenkins/model/Jenkins.java
    core/src/main/resources/jenkins/model/Jenkins/manage.jelly
    http://jenkins-ci.org/commit/jenkins/ce07ccbcd74cb9954c54137af8268e00629f7363
    Log:
    JENKINS-44608 Don't check for monitor activation if it is disabled

  3. jenkins-infra-bot commented on Jun 3, 2017

    @jenkins-infra-bot
    Author
    scm_issue_link:

    Code changed in jenkins
    User: Andres Rodriguez
    Path:
    core/src/main/java/jenkins/model/Jenkins.java
    http://jenkins-ci.org/commit/jenkins/92e56fd3deb18042107656fcab8bd41df965fe52
    Log:
    JENKINS-44608 Add `@​since` tag for new public API.

  4. jenkins-infra-bot commented on Jun 3, 2017

    @jenkins-infra-bot
    Author
    scm_issue_link:

    Code changed in jenkins
    User: Daniel Beck
    Path:
    core/src/main/java/jenkins/management/AdministrativeMonitorsDecorator.java
    core/src/main/java/jenkins/model/Jenkins.java
    core/src/main/resources/jenkins/model/Jenkins/manage.jelly
    http://jenkins-ci.org/commit/jenkins/59ae1f69fc6e27f4d6dcc0106f681c0d420a5dff
    Log:
    Merge pull request #2909 from andresrc/JENKINS-44608

    JENKINS-44608 Don't check for monitor activation if it is disabled

    Compare: aff0b92...59ae1f6

  5. jenkins-infra-bot commented on Oct 27, 2017

    @jenkins-infra-bot
    Author
    scm_issue_link:

    Code changed in jenkins
    User: Andres Rodriguez
    Path:
    core/src/main/java/jenkins/management/AdministrativeMonitorsDecorator.java
    core/src/main/java/jenkins/model/Jenkins.java
    core/src/main/resources/jenkins/model/Jenkins/manage.jelly
    http://jenkins-ci.org/commit/jenkins/65def10f5aa67524aeb1294415ca8e17f7d2f5a5
    Log:
    JENKINS-44608 Don't check for monitor activation if it is disabled

    (cherry picked from commit ce07ccb)

  6. removed
    bugFor changelog: Minor bug. Will be listed after features
    on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions