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

"View as plain text" link does not work correctly

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Platform: All, OS: All

      Hudson 1.323 - 1.325 and trunk
      GlassFish

      "View as plain text" link in "Console Outpout" page shows nothing.

      It works fine in 1.322. but not works in 1.323 or later.

          [JENKINS-4557] "View as plain text" link does not work correctly

          Jesse Glick added a comment -

          Working for me in 1.324 as far as I can tell.

          Jesse Glick added a comment - Working for me in 1.324 as far as I can tell.

          Jesse Glick added a comment -
              • Issue 4594 has been marked as a duplicate of this issue. ***

          Jesse Glick added a comment - Issue 4594 has been marked as a duplicate of this issue. ***

          anb0s added a comment -

          It is not working with 1.327 too!

          anb0s added a comment - It is not working with 1.327 too!

          jgoehringer added a comment -

          With 1.329 and viewing with browser (tried IE 7, Firefox 3.5, Chrome 3) yields an
          incomplete page or a blank page; curl and wget seem to get the entire stream.

          jgoehringer added a comment - With 1.329 and viewing with browser (tried IE 7, Firefox 3.5, Chrome 3) yields an incomplete page or a blank page; curl and wget seem to get the entire stream.

          Alan Harder added a comment -

          investigating.. likely culprit is this change in 1.323:

          r20927: Raw console output was doing XML escaping for '&' and '<' but it
          shouldn't.

          Alan Harder added a comment - investigating.. likely culprit is this change in 1.323: r20927: Raw console output was doing XML escaping for '&' and '<' but it shouldn't.

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/main/core/src/main/java/hudson/model/Run.java
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=23605
          Log:
          [FIXED JENKINS-4557] Moving consoleText handling from jelly to java in r20927
          caused Content-Length header to no longer be written. wget/curl seem ok with
          this, but browsers display nothing for "view as plain text".
          Stapler's DefaultScriptInvoker wraps the OutputStream in a filter to prevent
          jelly from flushing the output; copied this into Run.doConsoleText and now
          the Content-Length header gets written again, for both compressed/plain output.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/main/core/src/main/java/hudson/model/Run.java trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=23605 Log: [FIXED JENKINS-4557] Moving consoleText handling from jelly to java in r20927 caused Content-Length header to no longer be written. wget/curl seem ok with this, but browsers display nothing for "view as plain text". Stapler's DefaultScriptInvoker wraps the OutputStream in a filter to prevent jelly from flushing the output; copied this into Run.doConsoleText and now the Content-Length header gets written again, for both compressed/plain output.

            mindless Alan Harder
            sogabe sogabe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: