{ "id": "127749", "key": "TIMOB-16635", "fields": { "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true }, "parent": { "id": "123687", "key": "TIMOB-15980", "fields": { "summary": "iOS: Replace ASIHttp with NSURLConnection", "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 } } }, "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": "15935", "description": "2014 Sprint 06", "name": "2014 Sprint 06", "archived": true, "released": true, "releaseDate": "2014-03-28" }, { "id": "15936", "description": "2014 Sprint 06 SDK", "name": "2014 Sprint 06 SDK", "archived": true, "released": true, "releaseDate": "2014-03-28" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-03-18T17:57:15.000+0000", "created": "2014-03-17T17:58:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_network", "qe-closed-3.3.0", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-28T17:06:06.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If the \"file\" property is specified, the data of the request must be streamed to that file path. Otherwise, store it in memory. Return a Ti Blob with either the data of the file.", "attachment": [], "flagged": false, "summary": "NSURLConnection: Download data to file if specified", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "297599", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Sample app:\n{code}\nvar win = Ti.UI.createWindow({\n\tbackgroundColor: '#CCC'\n});\n\nvar btn = Ti.UI.createButton({\n\ttitle: 'here',\n\ttop: 10\n});\n\nwin.add(btn);\n\nvar img = Ti.UI.createImageView({\n\ttop: 75, bottom: 20,\n\tleft: 20, right: 20\n});\nwin.add(img);\t\n\nwin.open();\n\n\nbtn.addEventListener('click', function(){\n\n\tvar file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'my_file.jpg');\n\tvar xhr = Ti.Network.createHTTPClient();\n\txhr.file = file;\n\txhr.onload = function(){\n\t\timg.image = file.read();\n\t};\n\txhr.onerror = function(){\n\t\talert('error')\n\t};\n\txhr.open('GET', 'http://upload.wikimedia.org/wikipedia/commons/3/3f/Fronalpstock_big.jpg');\n\txhr.send();\n});\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-17T19:07:34.000+0000", "updated": "2014-03-17T19:07:34.000+0000" }, { "id": "297600", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR pending: https://github.com/appcelerator/titanium_mobile/pull/5487", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-17T19:09:55.000+0000", "updated": "2014-03-17T19:09:55.000+0000" }, { "id": "297731", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "CR + FR", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-18T17:57:15.000+0000", "updated": "2014-03-18T17:57:15.000+0000" }, { "id": "314598", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified the issue using the above app, Image is downloaded to file specified and displayed on the screen.\r\n\r\nVerified the fix on:\r\nDevice : iPhone 5s , iOS version : 7.1.2\r\nSDK: 3.3.0.v20140711123603\r\nCLI version : 3.3.0-rc4\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.4.0-rc5\r\nACS: 1.0.15\r\nnpm:1.3.2\r\nLiveView: 1.0.4\r\nAppcelerator Studio, build: 3.3.0.201407111535\r\ntitanium-code-processor: 1.1.1\r\nXCode : 5.1.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-07-17T07:27:14.000+0000", "updated": "2014-07-17T07:27:14.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }