Custom Query (18300 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (130 - 132 of 18300)

Ticket Resolution Summary Owner Reporter
#18810 fixed Inconsistent dojo/request handling of { data: undefined } on IE11/Chrome/FF Dylan Schiemann <[email protected]…> koivunej
Description

We've stumbled upon some inconsistencies with the dojo/request or dojo/request/xhr with IE11 at least on POST in the following case:

xhr.post(url, { data: undefined });

We do not have this kind of code but we tend to render something as JSON string, more like: { data: JSON.stringify(something) }, but end up with undefined value in the options as data property.

IE 11.0.9600.18204CO (update versions: 11.0.28) will send a POST with body of string "undefined" to the server whereas Chrome 48.0.2564.116 will not nor will FF ESR 38.6.1. Chrome and FF send no body (see below).

Expected outcome would be not to send any body content with IE11, or treat in other words, treat the data: undefined as the default value data: null.

I'll attach a tar package with:

  • server.js -- a nodejs http server, serves echo and index.html
  • index.html -- doc for comparing different bodies sent to server

You can run the server as: node server.js and point your browser to the outputted url, kill the server with CTRL-C.

Outputs across browsers:

IE11:

data: "foobar" == string, value: [foobar]
data: null == string, value: []
data: undefined == string, value: [undefined]
data: not set == string, value: []

Chrome:

data: "foobar" == string, value: [foobar]
data: null == string, value: []
data: undefined == string, value: []
data: not set == string, value: []

FF:

data: "foobar" == string, value: [foobar]
data: null == string, value: []
data: undefined == string, value: []
data: not set == string, value: []
#18809 fixed [Regression] In 1.10 branch test of dojo/_base/lang fails in all browsers. Clement Mathieu
Description

I ran dojo core doh tests against the 1.10 branch. The test tests._base.lang::getObject is failing on Firefox 38 ESR, Chrome 48 and IE 11.

Here is the log I got:

_AssertFailure: http://localhost/dev/dojo/dojo.js line 345 > Function line 1 > eval:47 assertEqual() failed:
	expected
		[object Window]
	but got
		undefined

ERROR IN:
	(function getObject(t){
		var test = {
			foo : {}
		};
		t.assertEqual(test.foo, lang.getObject("foo", false, test), 'lang.getObject("foo", false, test)');
		t.assertEqual("undefined", typeof lang.getObject("foo.bar", false, test), // don't create
			'typeof lang.getObject("foo.bar", false, test)');
		t.assertEqual({}, lang.getObject("foo.bar", true, test),  // do create
			'lang.getObject("foo.bar", true, test)');
		test.foo.bar.baz = "test";
		t.assertEqual(test.foo.bar, lang.getObject("foo.bar", false, test),
			'lang.getObject("foo.bar", false, test)');

		// global tests
		t.assertEqual("undefined", typeof lang.getObject("_getObjectTest.bar", false),	// don't create
			'typeof lang.getObject("_getObjectTest.bar", false)');
		kernel.global._getObjectTest = {};
		t.assertEqual(kernel.global._getObjectTest, lang.getObject("_getObjectTest", false), // don't create
			'lang.getObject("_getObjectTest", false)');
		t.assertEqual({}, lang.getObject("_getObjectTest.bar", true), 'lang.getObject("_getObjectTest.bar", true)'); // do create

		// strangely, parser does this
		t.assertEqual("undefined", typeof lang.getObject("./TestWidget"), 'typeof lang.getObject("./TestWidget")');

		// empty path should return the same object
		t.assertEqual(test, lang.getObject("", false, test));
		t.assertEqual(kernel.global, lang.getObject(""));
	})
#18808 fixed [Regression] In 1.10 branch test of JSONRest store fails in all browser. dylan Clement Mathieu
Description

I ran dojo core doh tests against the 1.10 branch. The test tests.store.JsonRest::testQueryIterative is failing on Firefox 38 ESR, Chrome 48 and IE 11.

Here is the log I got:

_AssertFailure: http://localhost/dev/dojo/dojo.js line 345 > 
				Function line 1 > eval:47 assertEqual() failed:
	expected
		../../dojo/tests/store=foo
	but got
		../../dojo/tests/store/foo

ERROR IN:
		 (function _getTarget(t){
			// make sure it works without the trailing slash
			store.target = store.target.slice(0, -1);
			t.is(store.target + "/foo", store._getTarget("foo"));
			// and with the slash
			store.target = store.target + '/';
			t.is(store.target + "foo", store._getTarget("foo"));
			// and with an equals sign
			store.target = store.target.slice(0, -1);
			t.is(store.target + "=foo", store._getTarget("foo"));
		})
FAILED test: _getTarget 
	Error: test timeout in testQueryIterative
	ERROR IN:
 		(function testQueryIterative(t){
			var d = new doh.Deferred();
			var i = 0;
			store.query("treeTestRoot").forEach(function(object){
				i++;
				console.log(i);
				t.is(object.name, "node" + i);
			}).then(function(){
				d.callback(true);
			});
			return d;
		})
Note: See TracQuery for help on using queries.