After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 692003 - Print of text/html with no html/body end tag cuts content
Print of text/html with no html/body end tag cuts content
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.6.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[formatter]
Depends on:
Blocks:
 
 
Reported: 2013-01-18 11:39 UTC by Tomas Bzatek
Modified: 2013-01-18 13:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mbox file (3.31 KB, text/plain)
2013-01-18 11:39 UTC, Tomas Bzatek
  Details
Print preview result (24.03 KB, application/pdf)
2013-01-18 11:39 UTC, Tomas Bzatek
  Details
evo patch (468 bytes, patch)
2013-01-18 13:38 UTC, Milan Crha
committed Details | Review

Description Tomas Bzatek 2013-01-18 11:39:14 UTC
Created attachment 233744 [details]
mbox file

A local electrostore is notorious for sending malformed messages, see attachment. Starting with <html><body><pre>, no closing tags are present in the mail. This is rendered properly in the WebKitGtk widget but trying to print gives me just "<" and nothing else.

evolution-3.6.2
Comment 1 Tomas Bzatek 2013-01-18 11:39:31 UTC
Created attachment 233745 [details]
Print preview result
Comment 2 Milan Crha 2013-01-18 13:17:07 UTC
Confirming, I see the same with the attached message. My other HTML-only message works fine, somehow.
Comment 3 Milan Crha 2013-01-18 13:38:42 UTC
Created attachment 233750 [details] [review]
evo patch

for evolution;

OK, the issue is with the tag-cutter on text/html parts, which is used only for printing (to workaround a webkit bug with iframe print, if I recall correctly). The test message has start tags <html><body>, but no end tags, and the tag-cutter cut just at the name of the first tag, which was part of "<pre>", from which left only the first "<". This makes no cutting if there is no end tag.
Comment 4 Milan Crha 2013-01-18 13:43:46 UTC
Created commit 590b471 in evo master (3.7.5+)
Created commit f03fab6 in evo gnome-3-6 (3.6.3+)