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

Jenkins LTS 2.176.x logs about the new Stapler routing rules have erroneous information

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • core, gerrit-trigger-plugin
    • None
    • Jenkins LTS 2.176.x

      After upgrading to Jenkins LTS 2.176, the Server Status page in Gerrit Trigger section didn't display any information, showing a "Data error" message.

      Logs:

      2019-08-30 09:47:15.644+0000 [id=65732] WARNING j.s.s.StaplerFilteredActionListener#onGetterTrigger: New Stapler routing rules result in the URL "/gerrit-trigger/serverStatuses" no longer being allowed. If you consider it safe to use, add the following to the whitelist: "method com.sonyericsson.hudson.plugins.gerrit.trigger.GerritManagement getServerStatuses". Learn more: https://jenkins.io/redirect/stapler-routing

      The line 

      method com.sonyericsson.hudson.plugins.gerrit.trigger.GerritManagement getServerStatuses

      is wrong, because it doesn't work upon testing. Instead, the correct line to be added to the whitelist is 

      com.sonyericsson.hudson.plugins.gerrit.trigger.GerritManagement serverStatuses

      as per 

      https://jenkins.io/doc/upgrade-guide/2.176/#upgrading-to-jenkins-lts-2-176-x

       

      If one doesn't have enough Jenkins / debugging experience, an error like this can become very hard to track down and fix.

            rsandell rsandell
            gcimpoies George Cimpoies
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: