Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-12941

Html escaped twice for the log entry

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.0
    • None
    • User Interface
    • None

    Description

      Html escaped twice for the log entry,
      We have lines like this:

      06-Mar-2013 12:45:15	[INFO] [INFO] [bamboo:unit-test]
      06-Mar-2013 12:45:15	[INFO] [INFO] surefire unit-test configuration:
      06-Mar-2013 12:45:15	[INFO] [INFO] <?xml version="1.0" encoding="UTF-8"?>
      06-Mar-2013 12:45:15	[INFO] <configuration>
      06-Mar-2013 12:45:15	[INFO]   <systemPropertyVariables/>
      06-Mar-2013 12:45:15	[INFO]   <excludes>
      06-Mar-2013 12:45:15	[INFO]     <exclude>it/**</exclude>
      06-Mar-2013 12:45:15	[INFO]     <exclude>**/*$*</exclude>
      06-Mar-2013 12:45:15	[INFO]   </excludes>
      06-Mar-2013 12:45:15	[INFO] </configuration>
      06-Mar-2013 12:45:15	[INFO] [INFO] [surefire:test]
      06-Mar-2013 12:45:15	[INFO] [INFO] Tests are skipped.
      06-Mar-2013 12:45:15	[INFO] [INFO] [bamboo:validate-manifest]
      

      I think it's related with this line

      SimpleLogEntry.java 52: return HtmlUtils.colorizeAnsiToHtml(HtmlUtils.getAsPreformattedText(log));
      

      Colorized also escapes Html:

      https://github.com/fusesource/jansi/blob/master/jansi/src/test/java/org/fusesource/jansi/HtmlAnsiOutputStreamTest.java
      https://github.com/fusesource/jansi/blob/master/jansi/src/main/java/org/fusesource/jansi/HtmlAnsiOutputStream.java

      Attachments

        Issue Links

          Activity

            People

              dhernandez DavidA (Inactive)
              dhernandez DavidA (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: