[imp] Selected post Sep 12, 2013; 12:51pm message compose (upload) hangs after aborted connected
Michael M Slusarz
slusarz at horde.org
Tue Nov 5 17:21:59 UTC 2013
Quoting "Jens-U. Mozdzen" <jmozdzen at nde.ag>:
> Hello Michael,
>
> Zitat von Michael M Slusarz <[hidden email]>
>> Quoting "Jens-U. Mozdzen" <[hidden email]>:
>>
>>> Hi all,
>>>
>>> due to reasons currently beyond our control, an AJAX call used to
>>> upload an attachment is aborted by the web server.
>>>
>>> When using Firebug to watch the network requests, I see it report
>>> that the request was aborted.
>>>
>>> Unfortunately, the (dynamic view) message compose window still shows
>>> the "uploading attachment" message and I have no way to retry that
>>> (or any other) upload. Other UI elements do work, I can edit the
>>> message content etc. and even delete already attached uploads. But
>>> new uploads are "blocked" by that status message.
>>>
>>> Shouldn't the JS AJAX code catch that condition (abort of AJAX call)
>>> and reset the UI status so I can select to upload again?
>>
>> Fixed in IMP 6.1.5.
>>
>> michael
>
> after having updated to the PEAR 6.1.5 version of IMP, we still see
> the exact behavior as reported.
>
> When looking at the AJAX request via Firebug, it shows the status as
> "Aborted" and a return size of 0 bytes
> (https://ourserver/horde/services/ajax.php/imp/addAttachment) almost
> immediately after the request is issued (100ms - the call traverses
> a proxy chain plus an Internet connection).
>
> Seems like this result (AJAX aborted) is somehow not caught?
Works for me. Aborted AJAX responses trigger the
'HordeCore:ajaxFailure' event, which is handled in compose-dimp.js.
(HordeCore:ajaxFailure is itself triggered by prototypejs' internal
xmlhttprequest code, which is in turn triggered by the features a
specific browser contains, so maybe your issue lies in one of those).
michael
___________________________________
Michael Slusarz [slusarz at horde.org]
More information about the imp
mailing list