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

Unreadable HTML response

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • monitoring-plugin
    • None
    • Jenkins v1.467
      CentOS 5.3 master, 16GB RAM, 8 cores
      2 CentOS 5.3 slaves
      2 Mac Mini slaves

    Description

      After installing the Monitoring plugin (choosing the "Install without Restart" button), then navigating to http://jenkins/monitoring/, the response I get is binary gibberish. The page is served with "Content-type: text/html", but what it is outputting is clearly not HTML. The same also happens at http://jenkins/monitoring/nodes/

      Here is a sample request to /monitoring:

      GET /monitoring HTTP/1.1
      Host: jenkins.company.com
      Connection: keep-alive
      Cache-Control: max-age=0
      User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.54 Safari/536.5
      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      Accept-Encoding: gzip,deflate,sdch
      Accept-Language: en-US,en;q=0.8
      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
      Cookie: JSESSIONID.xx=xx; screenResolution=2560x1440
      
      HTTP/1.1 200 OK
      Transfer-Encoding: chunked
      Server: Winstone Servlet Engine v0.9.10
      Cache-Control: no-cache
      Pragma: no-cache
      Expires: -1
      Content-Type: text/html;charset=UTF-8
      Content-Encoding: gzip
      Vary: Accept-Encoding
      Date: Thu, 07 Jun 2012 17:13:45 GMT
      X-Powered-By: Servlet/2.5 (Winstone/0.9.10)
      
      ...
      

      Based on the response headers, I see "Content-encoding: gzip", which leads me to believe that it is compressing the output, but my browser is not decoding the response. The same problem occurs in both Chrome 19.0, and Firefox 13.0.

      Attachments

        Issue Links

          Activity

            vkumar Vijay Kumar added a comment -

            Tested the monitoring plugin 1.39.0 with Jenkins 1.470, HTML rendering is perfect on Firefox 13.0.1 and IE8.
            Got plugin from: http://updates.jenkins-ci.org/download/plugins/monitoring/1.39.0/monitoring.hpi

            vkumar Vijay Kumar added a comment - Tested the monitoring plugin 1.39.0 with Jenkins 1.470, HTML rendering is perfect on Firefox 13.0.1 and IE8. Got plugin from: http://updates.jenkins-ci.org/download/plugins/monitoring/1.39.0/monitoring.hpi

            Code changed in jenkins
            User: evernat
            Path:
            pom.xml
            src/main/java/org/jvnet/hudson/plugins/monitoring/PluginImpl.java
            http://jenkins-ci.org/commit/monitoring-plugin/60b1cab1f303cfb62b68c2add6feedd16a8d2ef2
            Log:
            fix for JENKINS-14050: Unreadable HTML response for the monitoring reports (gzip, take 2 when security is enabled)

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: evernat Path: pom.xml src/main/java/org/jvnet/hudson/plugins/monitoring/PluginImpl.java http://jenkins-ci.org/commit/monitoring-plugin/60b1cab1f303cfb62b68c2add6feedd16a8d2ef2 Log: fix for JENKINS-14050 : Unreadable HTML response for the monitoring reports (gzip, take 2 when security is enabled)
            jhansche Joe Hansche added a comment -

            This is fixed on most pages for the master node, but I still see the double-compression on the following /nodes URLs:

            • /monitoring/nodes?part=processes
            • /monitoring/nodes?part=sessions
            • /monitoring/nodes?part=mbeans
            • /monitoring/nodes?part=graph&graph=usedMemory

            Basically seems to be most of the links under /monitoring/nodes. Also (not the same error, but also problematic):

            • monitoring/nodes?part=heaphisto only shows an alert with NullPointerException, and then redirects.
            jhansche Joe Hansche added a comment - This is fixed on most pages for the master node, but I still see the double-compression on the following /nodes URLs: /monitoring/nodes?part=processes /monitoring/nodes?part=sessions /monitoring/nodes?part=mbeans /monitoring/nodes?part=graph&graph=usedMemory Basically seems to be most of the links under /monitoring/nodes. Also (not the same error, but also problematic): monitoring/nodes?part=heaphisto only shows an alert with NullPointerException, and then redirects.
            evernat evernat added a comment -

            @Joe Hansche
            Yes, I have also seen this on the /nodes reports.
            It was fixed for the next release (1.40) in svn, revision 40676:
            https://svn.jenkins-ci.org/trunk/hudson/plugins/monitoring/src/main/java/net/bull/javamelody/NodesController.java

            If you do not want to wait for the next release, you can download a snapshot build from the current trunk at:
            http://javamelody.ci.cloudbees.com/job/jenkins%20plugin/ws/target/monitoring.hpi
            and then submit monitoring.hpi in the Plugin manager / Advanced tab of Jenkins.

            evernat evernat added a comment - @Joe Hansche Yes, I have also seen this on the /nodes reports. It was fixed for the next release (1.40) in svn, revision 40676: https://svn.jenkins-ci.org/trunk/hudson/plugins/monitoring/src/main/java/net/bull/javamelody/NodesController.java If you do not want to wait for the next release, you can download a snapshot build from the current trunk at: http://javamelody.ci.cloudbees.com/job/jenkins%20plugin/ws/target/monitoring.hpi and then submit monitoring.hpi in the Plugin manager / Advanced tab of Jenkins.

            Code changed in jenkins
            User: evernat
            Path:
            pom.xml
            src/main/java/org/jvnet/hudson/plugins/monitoring/PluginImpl.java
            http://jenkins-ci.org/commit/monitoring-plugin/b7f06fcda87369944e51d11ccd8f28f37c7d8194
            Log:
            fix for JENKINS-14050: Unreadable HTML response for the monitoring reports (gzip, take 2 when security is enabled)

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: evernat Path: pom.xml src/main/java/org/jvnet/hudson/plugins/monitoring/PluginImpl.java http://jenkins-ci.org/commit/monitoring-plugin/b7f06fcda87369944e51d11ccd8f28f37c7d8194 Log: fix for JENKINS-14050 : Unreadable HTML response for the monitoring reports (gzip, take 2 when security is enabled)

            People

              evernat evernat
              jhansche Joe Hansche
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: