{ "id": "116853", "key": "TIMOB-14478", "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": "15576", "description": "2013 Sprint 16", "name": "2013 Sprint 16", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15578", "description": "2013 Sprint 16 API", "name": "2013 Sprint 16 API", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-12T21:08:24.000+0000", "created": "2013-07-03T16:32:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios7", "qe-3.0.1", "qe-3.1.1", "qe-closed-3.1.2", "qe-testadded" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-02-02T20:47: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "To reproduce:\r\n1. Install and run KS> Platform> Filesystem\r\n\r\nActual result:\r\n{code}\r\nJul 3 09:27:53 Europa KitchenSink[198] : [INFO] Resources Directory :file:///var/mobile/Applications/0FF1FB00-5F80-46A6-9589-89441AE4F43A/KitchenSink.app/\r\nJul 3 09:27:53 Europa KitchenSink[198] : [INFO] Temp Directory :file:///private/var/mobile/Applications/0FF1FB00-5F80-46A6-9589-89441AE4F43A/tmp/\r\nJul 3 09:27:53 Europa KitchenSink[198] : [INFO] Application Directory :file:///var/mobile/Applications/0FF1FB00-5F80-46A6-9589-89441AE4F43A/Applications/\r\nJul 3 09:27:53 Europa KitchenSink[198] : [INFO] Application Data Directory :file:///var/mobile/Applications/0FF1FB00-5F80-46A6-9589-89441AE4F43A/Documents/\r\nJul 3 09:27:53 Europa KitchenSink[198] : [INFO] Application Support Directory :file:///var/mobile/Applications/0FF1FB00-5F80-46A6-9589-89441AE4F43A/Library/Application%20Support/\r\nJul 3 09:27:53 Europa KitchenSink[198] : [INFO] External Storage Available :false\r\nJul 3 09:27:53 Europa KitchenSink[198] : [INFO] Separator :/\r\nJul 3 09:27:53 Europa KitchenSink[198] : [INFO] Line Ending :\r\nJul 3 09:27:53 Europa KitchenSink[198] : [INFO] file = [object TiFilesystemFile]\r\nJul 3 09:27:53 Europa KitchenSink[198] : [INFO] contents blob object = undefined\r\nJul 3 09:27:53 Europa KitchenSink[198] : [ERROR] Script Error {\r\n\t backtrace = \"#0 () at file:///var/mobile/Applications/0FF1FB00-5F80-46A6-9589-89441AE4F43A/KitchenSink.app/ui/common/PlatformWindow.js:61\";\r\n\t line = 22;\r\n\t message = \"'undefined' is not an object (evaluating 'contents.text')\";\r\n\t name = TypeError;\r\n\t sourceId = 50690080;\r\n\t sourceURL = \"file:///var/mobile/Applications/0FF1FB00-5F80-46A6-9589-89441AE4F43A/KitchenSink.app/ui/common/platform/filesystem.js\";\r\n\t}\r\nJul 3 09:27:53 Europa KitchenSink[198] : JWJ handled JavaScript error!!!\r\nJul 3 09:27:53 Europa KitchenSink[198] : [DEBUG] Message: 'undefined' is not an object (evaluating 'contents.text')\r\nJul 3 09:27:53 Europa KitchenSink[198] : [DEBUG] Line number: 22\r\nJul 3 09:27:53 Europa KitchenSink[198] : [DEBUG] Source: file:///var/mobile/Applications/0FF1FB00-5F80-46A6-9589-89441AE4F43A/KitchenSink.app/ui/common/platform/filesystem.js\r\nJul 3 09:27:53 Europa KitchenSink[198] : [DEBUG] Backtrace: #0 () at file:///var/mobile/Applications/0FF1FB00-5F80-46A6-9589-89441AE4F43A/KitchenSink.app/ui/common/PlatformWindow.js:61\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS7: Filesystem - is not working, returning Script Error", "creator": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 3.1.1.201306131423\r\nTitanium SDK, build: 3.1.1GA\r\niPhone 5 iOS 7.0\r\nXcode5\r\nCLI 3.1.1\r\nKitchenSink Version 3.1.1.GA", "comment": { "comments": [ { "id": "264289", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed filesystem fix from dawson ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-31T22:01:10.000+0000", "updated": "2013-07-31T22:01:10.000+0000" }, { "id": "265834", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on iOS7 simulator.\r\n\r\nConsole output:\r\n{code}\r\n[INFO] : AssertMacros: queueEntry, file: /SourceCache/IOKitUser_Sim/IOKitUser-920.1.11/hid.subproj/IOHIDEventQueue.c, line: 512\r\n[INFO] : AssertMacros: queueEntry, file: /SourceCache/IOKitUser_Sim/IOKitUser-920.1.11/hid.subproj/IOHIDEventQueue.c, line: 512\r\n[INFO] : AssertMacros: queueEntry, file: /SourceCache/IOKitUser_Sim/IOKitUser-920.1.11/hid.subproj/IOHIDEventQueue.c, line: 512\r\n[INFO] : AssertMacros: queueEntry, file: /SourceCache/IOKitUser_Sim/IOKitUser-920.1.11/hid.subproj/IOHIDEventQueue.c, line: 512\r\n[INFO] : AssertMacros: queueEntry, file: /SourceCache/IOKitUser_Sim/IOKitUser-920.1.11/hid.subproj/IOHIDEventQueue.c, line: 512\r\n[INFO] : AssertMacros: queueEntry, file: /SourceCache/IOKitUser_Sim/IOKitUser-920.1.11/hid.subproj/IOHIDEventQueue.c, line: 512\r\n[INFO] : Resources Directory :file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/895408AF-84B6-44AF-AD73-298C6AD839DD/KitchenSink.app/\r\n[INFO] : Temp Directory :file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/895408AF-84B6-44AF-AD73-298C6AD839DD/tmp/\r\n[INFO] : Application Directory :file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/895408AF-84B6-44AF-AD73-298C6AD839DD/Applications/\r\n[INFO] : Application Data Directory :file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/895408AF-84B6-44AF-AD73-298C6AD839DD/Documents/\r\n[INFO] : Application Support Directory :file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/895408AF-84B6-44AF-AD73-298C6AD839DD/Library/Application%20Support/\r\n[INFO] : External Storage Available :false\r\n[INFO] : Separator :/\r\n[INFO] : Line Ending :\r\n[INFO] : file = [object TiFilesystemFile]\r\n[INFO] : contents blob object = Hello World. this is a filesystem read test.\r\n[INFO] : contents = Hello World. this is a filesystem read test.\r\n[INFO] : mime type = text/plain\r\n[INFO] : Blob's file = [object TiFilesystemFile]\r\n[INFO] : nativePath = file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/895408AF-84B6-44AF-AD73-298C6AD839DD/KitchenSink.app/etc/text.txt\r\n[INFO] : Blob's file nativePath= file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/895408AF-84B6-44AF-AD73-298C6AD839DD/KitchenSink.app/etc/text.txt\r\n[INFO] : exists = true\r\n[INFO] : size = 44\r\n[INFO] : readonly = false\r\n[INFO] : symbolicLink = true\r\n[INFO] : executable = false\r\n[INFO] : hidden = false\r\n[INFO] : writable = true\r\n[INFO] : name = text.txt\r\n[INFO] : extension = txt\r\n[INFO] : resolve = /Users/fcasali/Library/Application Support/iPhone Simulator/7.0/Applications/895408AF-84B6-44AF-AD73-298C6AD839DD/KitchenSink.app/etc/text.txt\r\n[INFO] : created = Fri Aug 09 2013 16:11:18 GMT-0700 (PDT)\r\n[INFO] : directoryListing = app.js,app.jss,appicon.png,common.jss,debugger.plist,Default-568h@2x.png,Default.png,Default@2x.png,en.lproj,es.lproj,etc,images,Info.plist,KitchenSink,modules,PkgInfo,profiler.plist,Settings.bundle,stylesheet.plist,ui,welcome.js\r\n[INFO] : getParent = /Users/fcasali/Library/Application Support/iPhone Simulator/7.0/Applications/895408AF-84B6-44AF-AD73-298C6AD839DD\r\n[INFO] : spaceAvailable = 19771637760\r\n[INFO] : Created mydir: true\r\n[INFO] : newdir [object TiFilesystemFile]\r\n[INFO] : directoryListing for newDir = newfile.txt\r\n[INFO] : newfile.txt created: Fri Aug 09 2013 16:11:18 GMT-0700 (PDT)\r\n[INFO] : newfile.txt modified: Fri Aug 09 2013 16:11:18 GMT-0700 (PDT)\r\n[INFO] : newfile.txt renamed as b.txt: true\r\n[INFO] : newfile.txt deleted (expected to fail): false\r\n[INFO] : b.txt deleted: true\r\n[INFO] : mydir deleted: true\r\n[INFO] : directoryListing for newDir after deleteDirectory = undefined\r\n[INFO] : app.js exists? true\r\n[INFO] : app.js size? 4408\r\n[INFO] : text.txt exists? true\r\n[INFO] : text.txt size: 73 bytes\r\n[INFO] : ------------\r\n[INFO] : Test file contents:\r\n[INFO] : text written via write()\r\n[INFO] : Text from text_two.txt\r\n[INFO] : Text appended via write()\r\n[INFO] : Expected failure: (first parameter is \"number\")\r\n[INFO] : Expected failure: (first parameter is \"boolean\")\r\n[INFO] : Expected failure: (first parameter is \"object\")\r\n\r\n{code}\r\n\r\nTitanium SDK 3.1.2.v20130808180613 \r\nAlloy 1.2.0-alpha6\r\nAppcelerator Studio 3.1.2.201308082014\r\nCLI 3.1.2-alpha\r\nNode 0.10.13\r\n\r\nXcode 5-DP5\r\n\r\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-09T23:15:10.000+0000", "updated": "2013-08-09T23:57:14.000+0000" }, { "id": "266804", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified the fix with:\nAppcelerator Studio, build: 3.1.2.201308091728\nTitanium SDK, build 3.1.1.GA\nAlloy 1.2.0\nCLI 3.1.2\nDevice:\niPhone5 iOS7", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-15T23:44:39.000+0000", "updated": "2013-08-15T23:44:39.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }