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

"No permission to view config history" when pressing "Config changed since last build" badge on job page

      Problem started this week after we upgraded Jenkins (1.511 -> 1.514) and JobConfigHistory (2.3 -> 2.4).

      On a job page, e.g. https://jenkins.mydomain.se/myProject/job/myJob/ when I Press the badge for "Config changed since last build" I get the error message:

      "Job Configuration Difference
      No permission to view config history"

      In addition to that I get logged out from Jenkins.

      In the logs I can see:

      --------

      Sep 23, 2013 2:24:40 PM hudson.ExpressionFactory2$JexlExpression evaluate
      WARNING: Caught exception evaluating: it.getLines() in /3gsim/view/CSI%20Wall1/job/LSV%20status/jobConfigHistory/showDiffFiles. Reason: java.lang.IllegalArgumentException: Unable to get history from: null
      java.lang.IllegalArgumentException: Unable to get history from: null
      at hudson.plugins.jobConfigHistory.JobConfigHistoryProjectAction.getOldConfigXml(JobConfigHistoryProjectAction.java:198)
      at hudson.plugins.jobConfigHistory.JobConfigHistoryProjectAction.getLines(JobConfigHistoryProjectAction.java:162)
      at sun.reflect.GeneratedMethodAccessor975.invoke(Unknown Source)

      --------

      If I instead go to the Job Configuration History page, e.g. https://jenkins.mydomain.se/myProject/job/myJob/jobConfigHistory

      and select the two latest versions there I have no problems getting the diff.

      The links used on these two pages are almost identical. On the Job config History page it uses https, from the job page it uses http.

          [JENKINS-19767] "No permission to view config history" when pressing "Config changed since last build" badge on job page

          Stefan Kalmelid created issue -

          Removed unrelated log snippet.

          Stefan Kalmelid added a comment - Removed unrelated log snippet.
          Stefan Kalmelid made changes -
          Description Original: Problem started this week after we upgraded Jenkins (1.511 -> 1.514) and JobConfigHistory (2.3 -> 2.4).

          On a job page, e.g. https://jenkins.mydomain.se/myProject/job/myJob/ when I Press the badge for "Config changed since last build" I get the error message:

          "Job Configuration Difference
          No permission to view config history"

          In addition to that I get logged out from Jenkins.

          In the logs I can see:

          --------
          Sep 23, 2013 2:25:17 PM hudson.slaves.SlaveComputer tryReconnect
          INFO: Attempting to reconnect STP3

          Sep 23, 2013 2:24:47 PM hudson.model.Run execute
          INFO: BookingBot #28577 main build action completed: SUCCESS

          Sep 23, 2013 2:24:40 PM hudson.ExpressionFactory2$JexlExpression evaluate
          WARNING: Caught exception evaluating: it.getLines() in /3gsim/view/CSI%20Wall1/job/LSV%20status/jobConfigHistory/showDiffFiles. Reason: java.lang.IllegalArgumentException: Unable to get history from: null
          java.lang.IllegalArgumentException: Unable to get history from: null
            at hudson.plugins.jobConfigHistory.JobConfigHistoryProjectAction.getOldConfigXml(JobConfigHistoryProjectAction.java:198)
            at hudson.plugins.jobConfigHistory.JobConfigHistoryProjectAction.getLines(JobConfigHistoryProjectAction.java:162)
            at sun.reflect.GeneratedMethodAccessor975.invoke(Unknown Source)
          --------
          If I instead go to the Job Configuration History page, e.g. https://jenkins.mydomain.se/myProject/job/myJob/jobConfigHistory

          and select the two latest versions there I have no problems getting the diff.

          The links used on these two pages are *almost* identical. On the Job config History page it uses https, from the job page it uses http.

          New: Problem started this week after we upgraded Jenkins (1.511 -> 1.514) and JobConfigHistory (2.3 -> 2.4).

          On a job page, e.g. https://jenkins.mydomain.se/myProject/job/myJob/ when I Press the badge for "Config changed since last build" I get the error message:

          "Job Configuration Difference
          No permission to view config history"

          In addition to that I get logged out from Jenkins.

          In the logs I can see:

          --------

          Sep 23, 2013 2:24:40 PM hudson.ExpressionFactory2$JexlExpression evaluate
          WARNING: Caught exception evaluating: it.getLines() in /3gsim/view/CSI%20Wall1/job/LSV%20status/jobConfigHistory/showDiffFiles. Reason: java.lang.IllegalArgumentException: Unable to get history from: null
          java.lang.IllegalArgumentException: Unable to get history from: null
            at hudson.plugins.jobConfigHistory.JobConfigHistoryProjectAction.getOldConfigXml(JobConfigHistoryProjectAction.java:198)
            at hudson.plugins.jobConfigHistory.JobConfigHistoryProjectAction.getLines(JobConfigHistoryProjectAction.java:162)
            at sun.reflect.GeneratedMethodAccessor975.invoke(Unknown Source)

          --------

          If I instead go to the Job Configuration History page, e.g. https://jenkins.mydomain.se/myProject/job/myJob/jobConfigHistory

          and select the two latest versions there I have no problems getting the diff.

          The links used on these two pages are *almost* identical. On the Job config History page it uses https, from the job page it uses http.

          Stefan,

          do you know how Jenkins is setup? Something like Tomcat behind Apache? Is "Jenkins' URL" in "Jenkins Location" configured to use https? That information would help.

          Thx.

          Mirko Friedenhagen added a comment - Stefan, do you know how Jenkins is setup? Something like Tomcat behind Apache? Is "Jenkins' URL" in "Jenkins Location" configured to use https? That information would help. Thx.

          Hi Mirko!

          I do not know how the Jenkins server is setup, it is managed by our IT-department.

          But I can conform that after changing the "Jenkins' URL" in "Jenkins Location" to use https instead of http, the problem disappeared!

          Thank you very much for your speedy help!

          Stefan Kalmelid added a comment - Hi Mirko! I do not know how the Jenkins server is setup, it is managed by our IT-department. But I can conform that after changing the "Jenkins' URL" in "Jenkins Location" to use https instead of http, the problem disappeared! Thank you very much for your speedy help!

          Happy to help

          Mirko Friedenhagen added a comment - Happy to help
          Mirko Friedenhagen made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 151286 ] New: JNJira + In-Review [ 206991 ]
          Rick Oosterholt made changes -
          Assignee Original: Mirko Friedenhagen [ mfriedenhagen ]
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]

          I'm facing the same issue. We do not use https, so that didn't solve the issue.
          What information do you need?

          Rick Oosterholt added a comment - I'm facing the same issue. We do not use https, so that didn't solve the issue. What information do you need?

            jochenafuerbacher Jochen A. Fürbacher
            skalmelid Stefan Kalmelid
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: