[JIRA] (JENKINS-61452) Illegal base64 character in FileLogStorage$1.writeHtmlTo(FileLogStorage.java:203)

3 views
Skip to first unread message

xiao.xj@outlook.com (JIRA)

unread,
Mar 12, 2020, 6:58:05 AM3/12/20
to jenkinsc...@googlegroups.com
Ted Xiao created an issue
 
Jenkins / Bug JENKINS-61452
Illegal base64 character in FileLogStorage$1.writeHtmlTo(FileLogStorage.java:203)
Issue Type: Bug Bug
Assignee: Unassigned
Components: workflow-api-plugin
Created: 2020-03-12 10:57
Environment: workflow-api-plugin 2.36
Priority: Critical Critical
Reporter: Ted Xiao

sporadic console error

java.lang.IllegalArgumentException: Illegal base64 character 5b
	at java.util.Base64$Decoder.decode0(Base64.java:714)
	at java.util.Base64$Decoder.decode(Base64.java:526)
	at hudson.util.UnbufferedBase64InputStream.read(UnbufferedBase64InputStream.java:41)
	at hudson.util.UnbufferedBase64InputStream.read(UnbufferedBase64InputStream.java:53)
	at java.io.DataInputStream.readFully(DataInputStream.java:195)
	at java.io.DataInputStream.readFully(DataInputStream.java:169)
	at hudson.console.ConsoleNote.readFrom(ConsoleNote.java:248)
	at hudson.console.ConsoleAnnotationOutputStream.eol(ConsoleAnnotationOutputStream.java:111)
	at hudson.console.LineTransformationOutputStream.eol(LineTransformationOutputStream.java:60)
	at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:56)
	at java.io.FilterOutputStream.write(FilterOutputStream.java:77)
	at org.jenkinsci.plugins.workflow.log.FileLogStorage$1$1.write(FileLogStorage.java:238)
	at java.io.FilterOutputStream.write(FilterOutputStream.java:125)
	at org.apache.commons.io.output.ProxyOutputStream.write(ProxyOutputStream.java:89)
	at org.kohsuke.stapler.framework.io.LargeText$HeadMark.moveTo(LargeText.java:314)
	at org.kohsuke.stapler.framework.io.LargeText.writeLogTo(LargeText.java:229)
	at hudson.console.AnnotatedLargeText.writeRawLogTo(AnnotatedLargeText.java:168)
	at org.jenkinsci.plugins.workflow.log.FileLogStorage$1.writeHtmlTo(FileLogStorage.java:203)
	at hudson.console.AnnotatedLargeText.writeLogTo(AnnotatedLargeText.java:147)
	at org.kohsuke.stapler.framework.io.LargeText.doProgressText(LargeText.java:264)
	at hudson.console.AnnotatedLargeText.doProgressiveHtml(AnnotatedLargeText.java:95)

it is fine to view console text via /consoleText URL which is using

 public void doConsoleText(StaplerRequest req, StaplerResponse rsp) throws IOException {
        rsp.setContentType("text/plain;charset=UTF-8");
        try (OutputStream os = rsp.getCompressedOutputStream(req)) {
            writeLogTo(getLogText()::writeLogTo, os);
        }
    }

suspect a bug in FileLogStorage writeHtmlTo method

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

xiao.xj@outlook.com (JIRA)

unread,
Mar 12, 2020, 12:01:02 PM3/12/20
to jenkinsc...@googlegroups.com
Ted Xiao commented on Bug JENKINS-61452
 
Re: Illegal base64 character in FileLogStorage$1.writeHtmlTo(FileLogStorage.java:203)

The console page will go back to normal if the job completes, either normally or aborted. probably a caching bug in the FileLogStorage

Reply all
Reply to author
Forward
0 new messages