-
26 Sep 2012 12:36 AM #1
Possible bug in Ext.direct.RemotingProvider error callback
Possible bug in Ext.direct.RemotingProvider error callback
Hi, I'm using RemoteProvider, and when the request is cancelled by timeout (success =false), in the onData function I think there is a bug when it will get each transaction. It will pass as args to the getTransaction function the transaction instead the Ajax call info for a transaction.
Thus, he tries to get each transaction, which will return null. So the callbacks are never executed.
It is a BUG?
-
26 Sep 2012 12:41 AM #2Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
26 Sep 2012 1:52 AM #3
Possible bug in Ext.direct.RemotingProvider error callback
Possible bug in Ext.direct.RemotingProvider error callback
REQUIRED INFORMATIONExt version tested:
- Ext 4.07
- Chrome
- IE7,8,9
- ____
- I'm using RemoteProvider, and when the request is cancelled by timeout (success =false), in the onData function I think there is a bug when it will get each transaction. It will pass as args to the getTransaction function the transaction instead the Ajax call info for a transaction.
Thus, he tries to get each transaction, which will return null. So the callbacks are never executed.
- Make a request that takes longer than the timeout (Ext.Ajax.timeout), and checks if the callback function is called
- callback function should be called
- callback function is not called
HELPFUL INFORMATIONScreenshot or Video:Code:<<insert working code to reproduce the report >>
- attached
- none
Additional CSS used:Code:OriginalCode onData : function (...){ transactions = [].concat(options.transaction); for (len = transactions.length; i < len; ++i) { transaction = me.getTransaction(transactions[i]); … if (transaction) { // Always returns false because getTransaction always returns null (should not receive a transaction but transaction options instead) me.runCallback(transaction, event, false); Ext.direct.Manager.removeTransaction(transaction); }} PossibleFix else { transactions = [].concat(options.transaction); for (len = transactions.length; i < len; ++i) { var opt = me.getCallData(transactions[i]); transaction = me.getTransaction(opt); … if (transaction) { me.runCallback(transaction, event, false); Ext.direct.Manager.removeTransaction(transaction); }- only default ext-all.css
- Windows 7
- Mac OS X
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote