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

Does not set contentType to html, renders as text

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: statusmonitor-plugin
    • Labels:
      None
    • Environment:
      Solaris 10, Hudson 1.339, Tomcat with apache frontend configured with mod_jk.

      Description

      The page is not rendered as html but is shown as text. Hudson is running in a servlet context (not in the root context of the server), ie http://server/hudson.

      The Status Monitoring link is http://server/hudson/monitor

        Activity

        Hide
        estenja estenja added a comment -

        I think that the problem is related to running hudson with mod_proxy_ajp. We have had the problem that tomcat returns a response with bad headers. We have corrected this by adding parameter "disablereuse=on" to the apache config:

        ProxyPass /hudson ajp://localhost:8209/hudson disablereuse=on
        #ProxyPassReverse /hudson ajp://localhost:8209/hudson

        <Location /hudson>
        RequestHeader unset Accept-Encoding
        AuthType Basic
        AuthName "Hudson"
        AuthUserFile /etc/opt/webstack/apache2/2.2/auth-file
        Require valid-user
        </Location>

        Show
        estenja estenja added a comment - I think that the problem is related to running hudson with mod_proxy_ajp. We have had the problem that tomcat returns a response with bad headers. We have corrected this by adding parameter "disablereuse=on" to the apache config: ProxyPass /hudson ajp://localhost:8209/hudson disablereuse=on #ProxyPassReverse /hudson ajp://localhost:8209/hudson <Location /hudson> RequestHeader unset Accept-Encoding AuthType Basic AuthName "Hudson" AuthUserFile /etc/opt/webstack/apache2/2.2/auth-file Require valid-user </Location>
        Hide
        teekay78 Thomas Kuther added a comment -

        We have the same issue. But only with Firefox & KHTML/WebKit-based browsers. IE works.

        Hudson is running in a Tomcat container behind a reverse proxy using mod_proxy, no AJP here.

        Show
        teekay78 Thomas Kuther added a comment - We have the same issue. But only with Firefox & KHTML/WebKit-based browsers. IE works. Hudson is running in a Tomcat container behind a reverse proxy using mod_proxy, no AJP here.
        Hide
        heiglandreas Andreas Heigl added a comment -

        We had the same problem using Firefox or Safari.

        Jenkins is running behind a ReverseProxy

        Solved it using the following in the ReverseProxy (apache) config:

        <Location /jenkins/monitor/>
            ForceType text/html
        </Location>
        
        Show
        heiglandreas Andreas Heigl added a comment - We had the same problem using Firefox or Safari. Jenkins is running behind a ReverseProxy Solved it using the following in the ReverseProxy (apache) config: <Location /jenkins/monitor/> ForceType text/html </Location>

          People

          • Assignee:
            danielgalan danielgalan
            Reporter:
            estenja estenja
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: