[#8981] "View HTML in new window" gives blank page for text/html message
Summary "View HTML in new window" gives blank page for text/html message
Queue IMP
Queue Version 4.3.4
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester robin (dot) west (at) dal (dot) ca
Created 04/21/2010 (141 days ago)
Due
Updated 07/02/2010 (69 days ago)
Assigned 04/22/2010 (140 days ago)
Resolved 04/22/2010 (140 days ago)
Attachments html_message.eml Download
GlobeEdgeAlerts.eml Download
Milestone
Patch No

History
07/02/2010 Michael Slusarz Comment #5 Reply to this comment

[Hide Quoted Text]
Hi - just to follow up on this ... I did a clean install of the 
latest versions on a windows PC (apache 2.2.15, php 5.3.2, horde 
3.3.8, imp 4.3.7). IMP is still giving me a blank window when select 
"view html in new window" on the attached message. I have tried it 
with tidy set to 'true' and 'false' in imp/mime_drivers.php, but no 
difference. The only messages in my PHP error log are warnings and 
deprecation notices, which appear for every page access so I don't 
think they're specific to this.

I guess the changes in IMP 5 have fixed this, but it seems to be a 
problem for previous versions.
FWIW, I can view this message just fine in IMP 4.3.8/Horde 3.3.9.
04/30/2010 robin (dot) west (at) dal (dot) ca Comment #4
New Attachment: GlobeEdgeAlerts.eml Download
Reply to this comment
Hi - just to follow up on this ... I did a clean install of the latest 
versions on a windows PC (apache 2.2.15, php 5.3.2, horde 3.3.8, imp 
4.3.7). IMP is still giving me a blank window when select "view html 
in new window" on the attached message. I have tried it with tidy set 
to 'true' and 'false' in imp/mime_drivers.php, but no difference. The 
only messages in my PHP error log are warnings and deprecation 
notices, which appear for every page access so I don't think they're 
specific to this.

I guess the changes in IMP 5 have fixed this, but it seems to be a 
problem for previous versions.
04/22/2010 Michael Slusarz Comment #3
State ⇒ Not A Bug
Reply to this comment
My guess is either that you are/are not using tidy (whichever one Jan 
isn't using), which is altering that message to a point that our 
HTML/XSS filter is stripping out the entire body of the message, or 
that something has been fixed since IMP 4.3.4.

I can verify this displays correctly in IMP 5.  The entire HTML 
sanitizing process has already been rewritten in Horde 4/IMP 5 from 
regex based to XML parsing - this should prevent issues like this from 
ever happening in IMP 5.
04/22/2010 Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
The message works perfectly fine for me.

Please follow the hints at 
http://wiki.horde.org/FAQ/Admin/Troubleshoot#wsod to generate and find 
a useful error message.
04/21/2010 robin (dot) west (at) dal (dot) ca Comment #1
State ⇒ Unconfirmed
New Attachment: html_message.eml Download
Patch ⇒
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ "View HTML in new window" gives blank page for text/html message
Type ⇒ Bug
Priority ⇒ 2. Medium
Reply to this comment
Hi - Horde 3.3.4, IMP 4.3.4: attached is a text/html-encoded message 
which looks ok to me, and displays properly in Thunderbird. In IMP I 
see the text reasonably well in the message view page (although most 
of the formatting is understandably missing), but if I click "Show 
this HTML in a new window" it produces a completely blank page.

Can you take a quick look at the attached message and let me know if 
this is a problem with this specific message or whether IMP is not 
handling it correctly? Thanks.

-Robin