Ticket #1485082 (closed Bugs: fixed)
Corrupted keep-alive requests to server after adding attachment
| Reported by: | Javer | Owned by: | |
|---|---|---|---|
| Priority: | 2 | Milestone: | 0.2-alpha |
| Component: | PHP backend | Version: | 0.1.1 |
| Severity: | major | Keywords: | |
| Cc: |
Description
When composing message, Roundcube periodically send keep-alive request to the server, which looks like below:
http://domain.tld/?_task=mail&_action=keep-alive&_t=1211398912731&_remote=1
But after uploading attachment new additional keep-alive thread are initialized, which use url like this:
http://domain.tld/&_action=keep-alive&_t=1211398974817&_remote=1
This generate HTTP 404 errors. After uploading another file, new one keep-alive thread with incorrect url are added and so on...
This occured because page downloaded by POST-request (during uploading file) contains initializing of new instance of rcube_webmail class, which create new keep-alive timeout, but use for this corrupted url, because there is no rcmail.set_env() call and script does not know which url to use.
var rcmail = new rcube_webmail();
I think, it is not necessary to create new instance of rcube_webmail in page-response to uploading file, because all changes are made through parent.rcmail.
