{ "id": "172602", "key": "TIMOB-26550", "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": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-03-04T11:34:08.000+0000", "created": "2018-11-13T13:02:30.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" }, { "id": "20275", "name": "Release 7.4.1", "archived": false, "released": true, "releaseDate": "2018-10-18" } ], "issuelinks": [ { "id": "56989", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "133172", "key": "TIMOB-17328", "fields": { "summary": "Android: Add support for file property to HTTPClient", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-03-04T11:34:08.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": "*Test case:*\r\n{code:java}\r\nfunction createButton(title, filename, url) {\r\n\tvar b = Ti.UI.createButton({\r\n\t\ttitle : title\r\n\t});\r\n \r\n\tb.addEventListener(\"click\", function() {\r\n\t\tvar xhr = Titanium.Network.createHTTPClient();\r\n\t\tif (filename != null) {\r\n\t\t\txhr.file = filename;\r\n\t\t}\r\n\t\txhr.onload = function() {\r\n\t\t\tvar responseFilePath = this.responseData.nativePath;\r\n\t\t\talert(\"responseData.nativePath = \" + responseFilePath);\r\n\t\t\tif (responseFilePath != null) {\r\n\t\t\t\timageView.image = responseFilePath;\r\n\t\t\t} else {\r\n\t\t\t\timageView.image = this.responseData;\r\n\t\t\t}\r\n\t\t};\r\n\t\txhr.open('GET', url);\r\n\t\txhr.send();\r\n\t});\r\n\t\r\n\treturn b;\r\n}\r\n \r\n \r\nvar win = Titanium.UI.createWindow({\r\n\ttitle: \"The 'file' property for HTTPClient\",\r\n\tlayout: \"vertical\"\r\n});\r\n \r\nvar imageView = Titanium.UI.createImageView({\r\n\ttop : 5,\r\n\theight : 200,\r\n\twidth : 300\r\n});\r\n \r\nwin.add(createButton(\"Not setting 'file' (download a small image)\", null, \"http://developer.appcelerator.com/blog/wp-content/themes/newapp/images/appcelerator_avatar.png?s=48\"));\r\nwin.add(createButton(\"Not setting 'file' (download a large image)\", null, \"http://2.bp.blogspot.com/-z-cZ7JirojQ/Tc8OMAAqbLI/AAAAAAAAAfc/slhGE764cyY/s1600/Cars+2.jpg\"));\r\nwin.add(createButton(\"'file' is in tempDirectory\", Ti.Filesystem.tempDirectory + \"/sky.jpg\", \"http://www.forestwander.com/wp-content/original/2009_01/Sky-View.JPG\"));\r\nwin.add(createButton(\"'file' is in applicationDataDirectory\", Ti.Filesystem.applicationDataDirectory + \"/flower.jpg\", \"http://flowerdeliverygo.com/wp-content/uploads/2014/05/flower-delivery.jpg\"));\r\nwin.add(createButton(\"'file' is in externalStorageDirectory\", Ti.Filesystem.externalStorageDirectory + \"/fruit.jpg\", \"http://southernbite.com/wp-content/uploads/2012/05/SouthernBiteFruitSalad-2.jpg\"));\r\n \r\nwin.add(imageView);\r\n \r\nwin.open();\r\n{code}\r\n\r\nNull should only be shown for the first two buttons but it shown for all buttons unlike on Android. ", "attachment": [], "flagged": false, "summary": "Windows: Add support for file property to HTTPClient", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK version 7.4.1.GA\r\nSDK Version: 7.5.0.v20181108182512\r\nOperating System\r\nName = Microsoft Windows 10 Pro\r\nVersion = 10.0.17134\r\nArchitecture = 64bit\r\n\r\nCPUs = 4\r\nMemory = 16.0GB\r\nNode.js\r\nNode.js Version = 8.9.1\r\nnpm Version = 5.5.1\r\n\r\nAppcelerator CLI\r\nInstaller = 4.2.13\r\nCore Package = 7.0.7\r\n\r\nTitanium CLI\r\nCLI Version = 5.1.1\r\nnode-appc Version = 0.2.44", "closedSprints": [ { "id": 1106, "state": "closed", "name": "2019 Sprint 1", "startDate": "2018-12-31T19:39:58.070Z", "endDate": "2019-01-11T19:39:00.000Z", "completeDate": "2019-01-14T17:17:47.552Z", "originBoardId": 114 }, { "id": 1109, "state": "closed", "name": "2019 Sprint 3", "startDate": "2019-01-28T17:38:43.075Z", "endDate": "2019-02-09T17:38:00.000Z", "completeDate": "2019-02-08T21:37:29.498Z", "originBoardId": 114 }, { "id": 1118, "state": "closed", "name": "2019 Sprint 5", "startDate": "2019-02-24T18:36:06.435Z", "endDate": "2019-03-08T18:36:00.000Z", "completeDate": "2019-03-07T22:19:47.057Z", "originBoardId": 114 }, { "id": 1103, "state": "closed", "name": "2018 Sprint 25", "startDate": "2018-12-02T16:29:21.531Z", "endDate": "2018-12-16T16:29:00.000Z", "completeDate": "2018-12-15T02:33:24.870Z", "originBoardId": 114 }, { "id": 1104, "state": "closed", "name": "2018 Sprint 26", "startDate": "2018-12-17T15:56:00.172Z", "endDate": "2018-12-21T15:56:00.000Z", "completeDate": "2018-12-26T17:42:17.145Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "443623", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1321", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-11-15T04:51:01.000+0000", "updated": "2018-11-15T04:51:01.000+0000" }, { "id": "446424", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR passed.", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-02-28T22:07:32.000+0000", "updated": "2019-02-28T22:07:32.000+0000" }, { "id": "446427", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR Merged", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-02-28T22:28:56.000+0000", "updated": "2019-02-28T22:28:56.000+0000" }, { "id": "446480", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, fix verified in SDK version {{8.1.0.v20190301155716}}\r\n\r\nTest and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/1321", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-04T11:34:02.000+0000", "updated": "2019-03-04T11:34:02.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }