Ticket #861 (closed defect: fixed)

Opened 10 months ago

Last modified 6 months ago

AJAX is too async in qcubed

Reported by: olegabr Owned by: somebody
Priority: shipstopper Milestone: 2.1.1
Component: Other Version: 2.1.0 Stable
Keywords: ajax Cc:

Description

AJAX is too async in qcubed

The problem is described in this thread:
 http://qcu.be/content/wrong-ajax-calls-order-qcubed-202

The main problem with async ajax in qcubed is originated from the statefullness of qcubed. I believe that qcubed needs to disable async for ajax. AJAX requests should be queued. Next request performs only if previous one completes with a success or an error.

Otherwise we have an undefined behaviour for any qcubed application thft uses AJAX.

Attachments

qcubed.ticket861.patch Download (4.4 KB) - added by olegabr 8 months ago.
solution suggested by  http://qcu.be/users/mikederfler here:  http://qcu.be/content/wrong-ajax-calls-order-qcubed-202#comment-7468
qcubed.ticket861-2.patch Download (0.5 KB) - added by olegabr 8 months ago.
small fix

Change History

Changed 8 months ago by olegabr

small fix

Changed 8 months ago by mikederfler

Ha, I was about to ask you about that line, but you where faster with your fix :)

Changed 6 months ago by vakopian

  • status changed from new to closed
  • resolution set to fixed

(In [1502]) fixes #861

Note: See TracTickets for help on using tickets.