{ "id": "63127", "key": "TIMOB-2495", "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": "11358", "description": "Mobile 1.8.0 M05", "name": "Sprint 2011-26", "archived": true, "released": true, "releaseDate": "2011-07-04" }, { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-05T13:39:16.000+0000", "created": "2011-04-15T03:21:15.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-11-05T13:39:16.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

We should ...

\n
{html}", "attachment": [], "flagged": false, "summary": "Android: Temp files created by TiHTTPClient", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "128634", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

assigned to don for mileston

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:21:16.000+0000", "updated": "2011-04-15T03:21:16.000+0000" }, { "id": "128635", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

HD Ticket Reference: http://developer.appcelerator.com/helpdesk/view/76351

{html}", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:21:16.000+0000", "updated": "2011-04-15T03:21:16.000+0000" }, { "id": "134536", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The temp files are also not being deleted. \n\nTo see the filesystem of the emulator: In terminal run 'adb -e shell' to get into the emulator filesystem. As mentioned above, the temp files are in the root of the sdcard.\n\nCan replicate in Kitchen Sink \"Platform>XHR>File Download>Large File Download\"\n\nStep 1: launch Kitchen Sink\nStep 2: In terminal run 'adb -e shell' to get into the emulator filesystem\nStep 3: 'cd sdcard' to get to the root of the sdcard\nStep 4: 'ls -l' in the root of the sdcard to see the contents\nStep 5: in Kitchen Sink \"Platform>XHR>File Download>Large File Download\"\nStep 6: 'ls -l' in the root of the sdcard to see the *tmp file created\n\nh3. Tested With\nTiSDK 1.6.2, Android Emulator 2.2\n\nh3. Associated Helpdesk Ticket\nhttp://appc.me/a/APP-646476\n\nh3. Workaround\n{code:javascript}\nxhr.onload = function () {\n\tvar response = xhr.responseText;\n\tvar nativePath = xhr.responseData.nativePath;\n\tvar tmpFile = Ti.Filesystem.getFile(nativePath);\n\ttmpFile.deleteFile();\n};\n{code}", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-31T13:14:29.000+0000", "updated": "2011-05-31T13:14:29.000+0000" }, { "id": "156334", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "h3. Another HD Ticket\r\nWe have another customer asking for this to be fixed:\r\nhttp://support.appcelerator.com/tickets/APP-697425/homepage\r\n", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-06-09T09:05:16.000+0000", "updated": "2011-06-09T09:05:16.000+0000" }, { "id": "157894", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "That test is really sensitive to timing issues since drillbit kills the app when the test is finished, and that could be before 5 seconds have elapsed, particularly when running on device, which is so quick. I wasn't ever able to get it to delete a file in the cache using drillbit on device. Trying emulator to see if the slower environment gets me a test run that lasts longer than 5 seconds.\r\n\r\n... yeah that worked.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-06-27T17:33:28.000+0000", "updated": "2011-06-27T17:48:19.000+0000" }, { "id": "158256", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "New repro sequence to account for new changes:\r\n\r\nCreate an app with this code in app.js:\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: \"white\",\r\n\ttop: 0, left: 0, right: 0, bottom: 0\r\n});\r\nvar doDownload = Ti.UI.createButton({\r\n\ttitle: \"download\"\r\n});\r\nwin.add(doDownload);\r\ndoDownload.addEventListener(\"click\", function(e) {\r\n\tvar xhr = Ti.Network.createHTTPClient();\r\n\txhr.onload = function() {\r\n\t\tTi.API.info(\"finished downloading file\");\r\n\t};\r\n\t\r\n\txhr.open('GET','http://www.appcelerator.com/download-win32');\r\n\txhr.send();\r\n});\r\nwin.open();\r\n{code}\r\n\r\nRun the app, click \"download\", and wait for the \"finished downloading file\" message in logcat, then close it. Make sure a temporary file exists:\r\n\r\n{code}\r\n$ adb shell ls /mnt/sdcard/Android/data//cache/_tmp\r\n{code}\r\n\r\nNow, re-open the app and wait 5 or so seconds. You should see a message like this:\r\n\r\n{code}\r\n06-29 13:29:28.674: INFO/TiTempFileHelper(8938): (pool-3-thread-1) [4579,4579] Deleting temporary file /mnt/sdcard/Android/data/com.arcaner.sandbox2/cache/_tmp/tihttp1913818548tmp\r\n{code}\r\n\r\nDouble check that it was deleted by running the same adb command as above", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-29T11:31:33.000+0000", "updated": "2011-06-29T11:31:33.000+0000" }, { "id": "158341", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "merge on 1.8.0. cherry-pick into 1.7.2", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-30T12:34:51.000+0000", "updated": "2011-06-30T12:34:51.000+0000" }, { "id": "158760", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with Nexus S 2.3.4 and Nexus One 2.2.2 with 1.7.2.v20110630161836", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-06T10:12:14.000+0000", "updated": "2011-07-06T10:12:14.000+0000" }, { "id": "171603", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixing labels.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-05T13:39:00.000+0000", "updated": "2011-11-05T13:39:00.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }