coloured command output not escaped in report

Bug #375902 reported by Javier Collado
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Low
Marc Tardif

Bug Description

When a shell command contains coloured output, it's not escaped properly in the comment tag in the checkbox report. Hence, the report cannot be viewed locally because of a parsing error in the submission.xml file.

As a workaround I tried to remove the escape character from the command (^[) and it worked fine. I also tried to mark the comment tag contents with a CDATA section, but it didn't work for some reason (maybe changing the encoding in the report file could help).

If you need further information to reproduce the problem, please let me know.

Revision history for this message
David Murphy (schwuk) wrote :

Please could attach your submission.xml (or the relevant snippet) so I can reproduce/debug?

Changed in checkbox:
assignee: nobody → Dave Murphy (schwuk)
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Javier Collado (javier.collado) wrote :

Sure, please find the submission.xml file attached.

Changed in checkbox:
status: Incomplete → New
David Murphy (schwuk)
Changed in checkbox:
assignee: Dave Murphy (schwuk) → Marc Tardif (cr3)
importance: Medium → Low
milestone: none → 0.8-alpha4
status: New → In Progress
Revision history for this message
Marc Tardif (cr3) wrote :

This problem has been fixed and released as detailed in bug #485445, but I thought I would take this opportunity to mention here that the solution consisted of piping the output of commands with potential ansi characters through the ansi_parser script available in the base checkbox package.

Changed in checkbox:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.