{ "id": "169795", "key": "TIMOB-25291", "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": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-08T17:28:13.000+0000", "created": "2017-09-15T14:16:12.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity" ], "versions": [ { "id": "19870", "description": "", "name": "Release 6.1.2", "archived": false, "released": true, "releaseDate": "2017-08-03" }, { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2017-11-17T01:31:25.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": "h5.Description\r\n\r\nWhen performing a GET request and providing the optional data param the SDK will upgrade the request from GET to POST, this isn't in line with other platforms and causes problems for modules like ti.cloud which always send an empty data object\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n title: 'stuff',\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n text: 'click me',\r\n color: \"#333\",\r\n font: {\r\n fontSize: 20\r\n }\r\n});\r\n\r\nlabel.addEventListener('click', function() {\r\n var url = 'https://httpbin.org/anything';\r\n var client = Ti.Network.createHTTPClient({\r\n onload : function(e) {\r\n alert(\"method was: \" + JSON.parse(this.responseText).method);\r\n Ti.API.info(this.responseText);\r\n },\r\n onerror : function(e) {\r\n Ti.API.debug(e.error);\r\n alert('error');\r\n },\r\n timeout : 5000\r\n });\r\n client.open(\"GET\", url);\r\n client.send({foo:'bar'});\r\n})\r\n\r\nwin.add(label);\r\nwin.open()\r\n\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the above code to an existing app.js and build for Windows\r\n# Tap the label\r\n\r\nh5.Actual\r\n\r\nRequest is changed to a POST\r\n\r\nh5.Expected\r\n\r\nRequest should stay as get", "attachment": [], "flagged": false, "summary": "Windows: Calling send with data will upgrade from a GET to a POST", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Ti SDK: 6.1.2.GA, 6.2.0.GA", "closedSprints": [ { "id": 963, "state": "closed", "name": "2017 Sprint 22 SDK", "startDate": "2017-10-22T21:43:59.523Z", "endDate": "2017-11-05T22:43:00.000Z", "completeDate": "2017-11-06T16:33:42.425Z", "originBoardId": 114 }, { "id": 968, "state": "closed", "name": "2017 Sprint 23 SDK", "startDate": "2017-11-05T16:37:25.071Z", "endDate": "2017-11-19T16:37:00.000Z", "completeDate": "2017-11-20T18:57:56.565Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "428014", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Master: https://github.com/appcelerator/titanium_mobile_windows/pull/1112", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-09-18T13:08:23.000+0000", "updated": "2017-09-18T13:09:18.000+0000" }, { "id": "430890", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on SDK 7.0.0.v20171116132144 installed from CLI. Fix is verified.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-17T01:31:25.000+0000", "updated": "2017-11-17T01:31:25.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }