Re: Squirrelmail attaching previously sent emails to new emails (and session_register(), require_once(), fread(), and fclose() errors)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/21/07, Shawn Hargan <shawnh@xxxxxxxx> wrote:
> I apologize for the confusion. Let me outline the exact problem again,
> we'll see if I can make it clear:
>
>  - User reads an email in SM, clicks the Reply link
>  - Reply page comes up with quoted text of the original message like any
> other Reply page - but below the message text box, there's the following
> error:
> ---
> Warning: filesize() [function.filesize]: stat failed for
> /u/webmail/squirrelmail_attachments/bkxNmcFmJdisbAuWLywzEOU8MpLi9lNF in
> /u/webmail/squirrelmail-1.4.9a_1/src/compose.php on line 1258

This does seem to indicate that there is some kind of session
corruption.  Please note that as of 1.4.11SVN a week or two ago, there
were some related changes - "compose session" data is no longer kept
around in session and the compose form itself no longer carries all
that data, which could have had some relationship to the corruption
you were seeing, especially if users were logging in after a session
timeout on the compose screen, where SM tries to restore all the
"compose session" data.  It might be worth upgrading to 1.4.11svn or
upgrading when 1.4.11 is released (any day now).

> ---
>  - Below that error message is the attach textbox and browse/add buttons.
>  - Below those buttons is a line that indicates an attached file - this
> file is one that was in no way connected with the original message, but
> was previously sent to another email address

So you do physically see the offending attached message, before
clicking the send button.  This is very suspicious, and all I can
think of is to try 1.4.11 and examine your PHP session mechanism very
closely.  You say your attachments dir is on NFS - are you putting PHP
sessions in one place for all your web servers?  Is this creating
conflicts when session IDs overlap or some such problem?

> Around the time of this event, there are multiple entries for this
> client in our Apache error logs (sorry for the spam):
>
> [Wed Jul 18 08:22:56 2007] [error] [client *munged*] mod_security:
> Access allowed. Pattern match "/webmail/src/compose\\\\.php" at
> THE_REQUEST [hostname "*munged*"] [uri "/webmail/src/compose.php"]
>
> [Wed Jul 18 08:22:56 2007] [error] [client *munged*] PHP Warning:
> fopen(/u/webmail/squirrelmail_attachments/FC2bsodN9yYCP0L3FwH5Oh7xLej9DgYn)
> [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No
> such file or directory in
> /u/webmail/squirrelmail-1.4.9a_1/class/deliver/Deliver.class.php on line
> 176, referer:
> https://*munged*/webmail/src/compose.php?passed_id=7465&mailbox=INBOX&startMessage=1&passed_ent_id=0&smaction=reply
>
> [Wed Jul 18 08:22:56 2007] [error] [client *munged*] PHP Warning:
> fread(): supplied argument is not a valid stream resource in
> /u/webmail/squirrelmail-1.4.9a_1/class/deliver/Deliver.class.php on line
> 178, referer:
> https://*munged*/webmail/src/compose.php?passed_id=7465&mailbox=INBOX&startMessage=1&passed_ent_id=0&smaction=reply
>
> [Wed Jul 18 08:22:56 2007] [error] [client *munged*] PHP Warning:
> fclose(): supplied argument is not a valid stream resource in
> /u/webmail/squirrelmail-1.4.9a_1/class/deliver/Deliver.class.php on line
> 190, referer:
> https://*munged*/webmail/src/compose.php?passed_id=7465&mailbox=INBOX&startMessage=1&passed_ent_id=0&smaction=reply
>
> [Wed Jul 18 08:22:56 2007] [error] [client *munged*] PHP Warning:
> fopen(/u/webmail/squirrelmail_attachments/FC2bsodN9yYCP0L3FwH5Oh7xLej9DgYn)
> [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No
> such file or directory in
> /u/webmail/squirrelmail-1.4.9a_1/class/deliver/Deliver.class.php on line
> 176, referer:
> https://*munged*/webmail/src/compose.php?passed_id=7465&mailbox=INBOX&startMessage=1&passed_ent_id=0&smaction=reply
>
> [Wed Jul 18 08:22:56 2007] [error] [client *munged*] PHP Warning:
> fread(): supplied argument is not a valid stream resource in
> /u/webmail/squirrelmail-1.4.9a_1/class/deliver/Deliver.class.php on line
> 178, referer:
> https://*munged*/webmail/src/compose.php?passed_id=7465&mailbox=INBOX&startMessage=1&passed_ent_id=0&smaction=reply
>
> [Wed Jul 18 08:22:56 2007] [error] [client *munged*] PHP Warning:
> fclose(): supplied argument is not a valid stream resource in
> /u/webmail/squirrelmail-1.4.9a_1/class/deliver/Deliver.class.php on line
> 190, referer:
> https://*munged*/webmail/src/compose.php?passed_id=7465&mailbox=INBOX&startMessage=1&passed_ent_id=0&smaction=reply
>
> [Wed Jul 18 08:23:05 2007] [error] [client *munged*] mod_security:
> Access allowed. Pattern match "/webmail/src/compose\\\\.php" at
> THE_REQUEST [hostname "*munged*"] [uri
> "/webmail/src/compose.php?passed_id=7465&mailbox=INBOX&startMessage=1&passed_ent_id=0&smaction=reply"]
>
> [Wed Jul 18 08:23:05 2007] [error] [client *munged*] PHP Warning:
> filesize() [<a href='function.filesize'>function.filesize</a>]: stat
> failed for
> /u/webmail/squirrelmail_attachments/bkxNmcFmJdisbAuWLywzEOU8MpLi9lNF in
> /u/webmail/squirrelmail-1.4.9a_1/src/compose.php on line 1258, referer:
> https://*munged*/webmail/src/read_body.php?mailbox=INBOX&passed_id=7465&startMessage=1
>
>
> ---
>
> Please let me know if any of this is still unclear.
> -Shawn H
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux