{ "id": "150371", "key": "TIMOB-19347", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-08-18T23:09:01.000+0000", "created": "2015-08-13T14:51:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [ { "id": "48705", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "146336", "key": "TIMOB-18756", "fields": { "summary": "Windows: Implement Titanium.Buffer proxy", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-08-19T23:29:10.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Our current code assumes that the JSObject has string property names (which is valid) and either String or Ti.Blob values. It needs to handle other value types and convert them into strings.\r\n\r\nThe following works on iOS/Android, but fails on Windows:\r\n{code:javascript}\r\nvar datas = {\r\n 'authenticatestring': Alloy.Globals.authenticateString,\r\n 'functionName': 'registerNewReceiver',\r\n 'apiVersion' : Alloy.Globals.serverApiVersion,\r\n 'languageId' : Alloy.Globals.serverLanguage,\r\n 'deviceId' : Alloy.Globals.deviceId,\r\n 'purchaseId' : 9846598\r\n };\r\n httpClient.send();\r\n{code}\r\n\r\nThis is because our code take the numeric value for 'purchaseId' and since it's not a string assumes it's a Blob and attempts to pull a native Ti.Blob object out of it.", "attachment": [], "flagged": false, "summary": "Windows: Ti.Network.HTTPClient.send fails when arg object has non-string/Blob values", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "buder", "key": "buder", "displayName": "Jörgen Buder", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 482, "state": "closed", "name": "2015 Sprint 17 Windows", "startDate": "2015-08-15T04:01:00.000Z", "endDate": "2015-08-29T03:59:00.000Z", "completeDate": "2015-08-28T13:51:24.221Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "360157", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/407", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-18T05:08:08.000+0000", "updated": "2015-08-18T05:08:08.000+0000" }, { "id": "360416", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. \r\n\r\nTi.Network.HTTPClient.send does not fail when arg object has non-string/Blob values.\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio: 5.0.0.v20150819140421\r\nTi SDK: 5.0.0.v20150819140421\r\nTi CLI: 4.1.4\r\nAlloy: 1.6.2\r\nWindows: 8.1 Enterprise 64-bit\r\nAPPC NPM: 4.2.0-1\r\nAPPC CLI: 5.0.0-3\r\nNode : v0.10.37\r\nDevice: Nokia Lumia 928 - Windows Phone 8.1\r\nWindows emulator : 8.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-19T23:29:03.000+0000", "updated": "2015-08-19T23:29:03.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }