View Full Version : [FIXED] [4.2] Ext.dataJsoP request fails with no params defned and disableCaching=false

29 Apr 2013, 4:30 PM
Debugging this problem shows:

if (disableCaching && !params[cacheParam]) {
params[cacheParam] = new Date().getTime();
} else {
params = options.params;

params[callbackKey] = name + '.data.JsonP.' + callbackName;

When disableCaching is false, params is undefined which causes the next line of code to fail.

29 Apr 2013, 10:00 PM
I tried modifying the jsonP-writer example from the SDK download to reproduce the issue and in 4.2.0 and 4.2.1 beta I wasn't seeing an issue. If you set disableCaching to false on the proxy config is when you're seeing an issue? Are you getting an error logged?

2 May 2013, 5:44 AM
Sorry, I thought the problem was obvious by looking at the code. Let me try again:


Look at the highlighted code. If options.params is not defined, then params is set to an empty object. This is ok unless disableCaching= false in which params is set back to undefined which causes the next highlighted code to fail.

This is 4.2.

2 May 2013, 6:29 AM
Not sure why it's not showing up, but this was logged as EXTJSIV-9640.