6.0.0-alpha14
7/2/25

[#9586] Error adding attachment - Internet Explorer 7 - script error in compose.php and incomplete source sent to client
Summary Error adding attachment - Internet Explorer 7 - script error in compose.php and incomplete source sent to client
Queue IMP
Queue Version 4.3.9
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester wagler (at) mediaserve (dot) de
Created 02/18/2011 (5248 days ago)
Due
Updated 03/18/2011 (5220 days ago)
Assigned 02/21/2011 (5245 days ago)
Resolved 03/18/2011 (5220 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/18/2011 12:56:59 PM wagler (at) mediaserve (dot) de Comment #12 Reply to this comment
Probably a broken mime_magic extension in your PHP then.
Actually, we do not have any "mime_magic" extension compiled for this 
server, but the "fileinfo" extension, we just activated/enabled. And 
it was possible to upload ".doc" files on some other computers with 
Microsoft Windows.

For now, I think the problem is solved.
Thanx a lot :-)
03/18/2011 12:30:43 PM Jan Schneider Comment #11
State ⇒ Not A Bug
Reply to this comment
Probably a broken mime_magic extension in your PHP then.
03/18/2011 11:15:26 AM wagler (at) mediaserve (dot) de Comment #10 Reply to this comment
This is indeed some kind of a horribly broken page. I have never 
seen this before. I can only assume that some is awfully wrong with 
output buffering in your PHP version. Though that still won't 
explain the question marks.
Try disabling any output buffering or processing settings in both 
Horde's and PHP's configuration. Try disable bytecode caches, if you 
use any. Try pruning the Horde cache storage, if you configured 
caching in Horde. If everything fails, build a new PHP.
Hello,

I think we could solve the problem:

After activating the "fileinfo" extension the corruption within the 
website's source code is no longer present. The Javascript errors are 
also gone.

Both in the Microsoft Internet Explorer an Mozilla Firefox we are now 
able to successfully attach ".doc" files to a new email. I hope this 
is a permanent "fix" an might help others.

Bye the way: We are not using any accelerator extensions and have no 
output compression handler enabled for this website. Disabling the 
"compress_pages" directive within the horde configuration has not 
solved the problem.

03/18/2011 09:47:05 AM Jan Schneider Comment #9 Reply to this comment
This is indeed some kind of a horribly broken page. I have never seen 
this before. I can only assume that some is awfully wrong with output 
buffering in your PHP version. Though that still won't explain the 
question marks.
Try disabling any output buffering or processing settings in both 
Horde's and PHP's configuration. Try disable bytecode caches, if you 
use any. Try pruning the Horde cache storage, if you configured 
caching in Horde. If everything fails, build a new PHP.
03/18/2011 09:40:08 AM Jan Schneider Comment #8 Reply to this comment
Oh, sorry, I mis-read my own comment. :)
03/18/2011 09:34:58 AM wagler (at) mediaserve (dot) de Comment #7 Reply to this comment
We need the *message* source.
You've asked for "source of such a broken compose page".

What do you mean by "message source"? The email could not be sent due 
to this problem. Therefore we do not have a message from which we 
could send you the source.
03/18/2011 09:16:56 AM Jan Schneider Comment #6 Reply to this comment
We need the *message* source.
03/18/2011 09:04:11 AM wagler (at) mediaserve (dot) de Comment #5
New Attachment: webmail_source_new_mail.zip Download
Reply to this comment
Please upload the complete source of such a broken compose page.
However, this rather sounds like some very broken PHP behavior.
here is the source code of the composing window after trying to attach 
a ".doc" file.
02/21/2011 12:33:18 PM Jan Schneider Comment #4 Reply to this comment
Please upload the complete source of such a broken compose page.
However, this rather sounds like some very broken PHP behavior.
02/21/2011 12:28:30 PM wagler (at) mediaserve (dot) de Comment #3 Reply to this comment
Can you please explain again, which steps in which order exactly you 
do, and what happens when? What you write is very confusing.
1. We click the button to create a new email.

2. The popup windows opens and we enter the recipients email address.

3. Then we select a file from our hard disk. This is a Microsoft Word 
document with a ".doc" extension. After clicking the refresh button 
(in german: "Aktualisierung") the page is beeing reloaded.

4. At the top of the page there are a huge number of question marks in 
one line, which is not normal. Below the message for the successfully 
added attachment is displayed (in german: ""Test.doc" als Anhang 
hinzugefügt.
"). The Microsoft Internet Explorer is also showing a script error on 
the page (in german: "Fehler auf der Seite").
Despite of that the source sent to the client is incomplete, because 
it begins with the question marks, followed by a number of HTML 
"script" tags and the rest of the source.
It is not possible to send the email by clicking the appropriate button.

There are no errors in the horde log or the PHP error log.
The real problem seems to be the incomplete (or cut) source generated 
and sent to the client, because the file was successfully attached.
We are using the latest version of PHP 5.2
02/21/2011 11:21:00 AM Jan Schneider Comment #2
Summary ⇒ Error adding attachment - Internet Explorer 7 - script error in compose.php and incomplete source sent to client
State ⇒ Feedback
Reply to this comment
Can you please explain again, which steps in which order exactly you 
do, and what happens when? What you write is very confusing.
02/18/2011 10:28:45 AM wagler (at) mediaserve (dot) de Comment #1
Patch ⇒ No
State ⇒ Unconfirmed
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ Error adding attachment - Inetnet Explorer 7 - script error in compose.php and incomplete source sent to client
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
Using the Microsoft Internet Explorer version 7.0.5730.13 we are 
experiencing the following problem when trying to add a Microsoft Word 
file (.doc extension) as an attachment to a newly created mail:

The data sent to the client contains 1248 "?" characters in the first 
place followed by "<!--a75c305b1c0a6022--><script 
type="text/javascript" src="/horde/js/prototype.js"></script>" and the 
other, normal content of the page.

The browser is also displaying an error on line 104 within the source, 
sent to the client containing the following data:

    <input type="hidden" name="identity" value="tag:identity_default />" />
    xxxxxx@xxxxxxx.de (Standardidentität)

(Maybe the content "tag:identity_default />" of the value attribute is 
invalid, because not escaped properly?)

Because of these errors it is not possible to send the mail.
Using version 8 of the Microsoft Internet Explorer or the latest 
version of Mozilla Firefox as a browser the problem is not occurring.

Saved Queries