• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None

      After the fix of JENKINS-5941, /console looks fine but /consoleText and /progressiveLog often contain junk characters. For example,

      http://bertram.netbeans.org/hudson/job/cnd-main/3077/console

      looks fine as far as I could see but

      http://bertram.netbeans.org/hudson/job/cnd-main/3077/consoleText

      contains a bunch of junk characters, as did the console displayed in NetBeans, e.g. (some long lines broken up to display better):

      [8mha:AAAAYB+LCAAAAAAAAABb85aBtbiIQT6jNKU4P0+vJLE4u1gvPjGvRM8xry
      QksSg9tcQvvyTVvqNr/s+Vl9uYGBgqihikoKqT8
      /OK83NS9ZwhNEghAwQwghQWAADROOumXQAAAA==[0mmodule-auto-deps:
           [copy] Copying 1 file to /space/hudson/workspace/cnd-main/nbbuild/netbeans/java/config/ModuleAutoDeps
      
      [8mha:AAAAYB+LCAAAAAAAAABb85aBtbiIQT6jNKU4P0+vJLE4u1gvPjGvRM8xry
      QksSg9tcQvvyTVvqNr/s+Vl9uYGBgqihikoKqT8/OK83NS9ZwhNEghAwQwghQWAADROOumXQAAAA==[0mprojectized-common.release:
      

          [JENKINS-6034] Console log contains junk in Hudson 1.352

          Jesse Glick added a comment -

          ConsoleNote is responsible, I guess.

          Jesse Glick added a comment - ConsoleNote is responsible, I guess.

          Jesse Glick added a comment - - edited

          Junk also appears before first Ant target name in /console, e.g.:

          Skipping 11,901 KB.. Full Log
          
          tcQvv...DROOumXQAAAA==[0mbasic-init:
          
          -release.dir: 
          

          Jesse Glick added a comment - - edited Junk also appears before first Ant target name in /console, e.g.: Skipping 11,901 KB.. Full Log tcQvv...DROOumXQAAAA==[0mbasic-init: -release.dir:

          starfury added a comment -

          yesterday I opened a similiar - maybe duplicate - issue: JENKINS-6120

          starfury added a comment - yesterday I opened a similiar - maybe duplicate - issue: JENKINS-6120

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/main/core/src/main/java/hudson/model/Run.java
          trunk/hudson/main/test/src/test/java/hudson/console/ConsoleAnnotatorTest.java
          trunk/www/changelog.html
          http://jenkins-ci.org/commit/29653
          Log:
          [FIXED JENKINS-6034] in 1.354.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/model/Run.java trunk/hudson/main/test/src/test/java/hudson/console/ConsoleAnnotatorTest.java trunk/www/changelog.html http://jenkins-ci.org/commit/29653 Log: [FIXED JENKINS-6034] in 1.354.

          voorth added a comment -

          1.354 gives his issue as fixed, but I'm still getting the same garbage string in the ant target lines:

          [8mha:AAAAYB+LCAAAAAAAAABb85aBtbiIQT6jNKU4P0+vJLE4u1gvPjGvRM8xryQksSg9tcQvvyTVvqNr/s+Vl9uYGBgqihikoKqT8/OK83NS9ZwhNEghAwQwghQWAADROOumXQAAAA==[0mbootstrap-libs.init:
          

          voorth added a comment - 1.354 gives his issue as fixed, but I'm still getting the same garbage string in the ant target lines: [8mha:AAAAYB+LCAAAAAAAAABb85aBtbiIQT6jNKU4P0+vJLE4u1gvPjGvRM8xryQksSg9tcQvvyTVvqNr/s+Vl9uYGBgqihikoKqT8/OK83NS9ZwhNEghAwQwghQWAADROOumXQAAAA==[0mbootstrap-libs.init:

          Jesse Glick added a comment -

          Indeed this is not fixed in 1.354, e.g.

          http://deadlock.netbeans.org/hudson/job/ruby/3483/consoleText
          
          ...
          all-api.visual:
          Building api.visual...
          
          [8mha:AAAAYB+LCAA.....mXQAAAA==[0mapi.visual.default.init:
          Updating property file: /hudson/workdir/jobs/ruby/workspace/nbbuild/netbeans/moduleCluster.properties
          ...
          

          Jesse Glick added a comment - Indeed this is not fixed in 1.354, e.g. http://deadlock.netbeans.org/hudson/job/ruby/3483/consoleText ... all-api.visual: Building api.visual... [8mha:AAAAYB+LCAA.....mXQAAAA==[0mapi.visual.default.init: Updating property file: /hudson/workdir/jobs/ruby/workspace/nbbuild/netbeans/moduleCluster.properties ...

          starfury added a comment -

          yes, I can confirm that also. garbage still existing.

          starfury added a comment - yes, I can confirm that also. garbage still existing.

          voorth added a comment -

          Still present in 1.355...

          voorth added a comment - Still present in 1.355...

          kalpanab added a comment -

          Hi All,

          I too had same issue with 1.362 version. I am not sure weather it is right fix or not but I could able to fix it by changing the code listed below in Run.java file. See the code change below if it helps to you.

          In Run.java class method changed is doConsoleText(StaplerRequest req, StaplerResponse rsp)

          Comment below lines:

          // Prevent jelly from flushing stream so Content-Length header can be added afterwards
          FlushProofOutputStream out = new FlushProofOutputStream(rsp.getCompressedOutputStream(req));
          getLogText().writeLogTo(0,out);
          out.close();

          ***********************************************
          Then add below lines:

          Writer w = rsp.getCompressedWriter(req);
          getLogText().writeHtmlTo(0,w);
          w.close();

          ************************************************

          kalpanab added a comment - Hi All, I too had same issue with 1.362 version. I am not sure weather it is right fix or not but I could able to fix it by changing the code listed below in Run.java file. See the code change below if it helps to you. In Run.java class method changed is doConsoleText(StaplerRequest req, StaplerResponse rsp) Comment below lines: // Prevent jelly from flushing stream so Content-Length header can be added afterwards FlushProofOutputStream out = new FlushProofOutputStream(rsp.getCompressedOutputStream(req)); getLogText().writeLogTo(0,out); out.close(); *********************************************** Then add below lines: Writer w = rsp.getCompressedWriter(req); getLogText().writeHtmlTo(0,w); w.close(); ************************************************

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/main/core/src/main/java/hudson/console/AnnotatedLargeText.java
          trunk/hudson/main/core/src/main/java/hudson/console/ConsoleNote.java
          trunk/hudson/main/core/src/main/java/hudson/console/PlainTextConsoleOutputStream.java
          trunk/hudson/main/core/src/main/java/hudson/util/UnbufferedBase64InputStream.java
          trunk/hudson/main/test/src/test/java/hudson/console/ConsoleAnnotatorTest.java
          trunk/www/changelog.html
          http://jenkins-ci.org/commit/32514
          Log:
          [FIXED JENKINS-6034] plain text console output needs to filter out inline console annotations

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/console/AnnotatedLargeText.java trunk/hudson/main/core/src/main/java/hudson/console/ConsoleNote.java trunk/hudson/main/core/src/main/java/hudson/console/PlainTextConsoleOutputStream.java trunk/hudson/main/core/src/main/java/hudson/util/UnbufferedBase64InputStream.java trunk/hudson/main/test/src/test/java/hudson/console/ConsoleAnnotatorTest.java trunk/www/changelog.html http://jenkins-ci.org/commit/32514 Log: [FIXED JENKINS-6034] plain text console output needs to filter out inline console annotations

            kohsuke Kohsuke Kawaguchi
            jglick Jesse Glick
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: