{ "id": "64998", "key": "TIMOB-3873", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11253", "name": "Sprint 2011-18", "archived": true, "released": true, "releaseDate": "2011-05-09" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-11T18:36:42.000+0000", "created": "2011-05-02T17:02:59.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "jacobrelkin", "key": "jacobrelkin", "displayName": "Jacob Relkin", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-05-11T18:36:42.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 a file doesn't yet exist, it should still be able to be open()'d writable. This fails:\n\n{code:title=example.js}\nvar f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'not_exist.xx');\nvar stream = f.open(Ti.Filesystem.MODE_WRITE); // crash\n{code}\n\nProblem is \"handle = \\[NSFileHandle fileHandleForUpdatingAtPath:filePath\\];\" which requires the file to exist.", "attachment": [], "flagged": false, "summary": "iOS: file.open(Ti.Filesystem.MODE_WRITE) crashes simulator if file doesn't exist", "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": "Titanium Mobile 1.7.0, c52c2fd7f7f57, iOS Simulator 4.1", "comment": { "comments": [ { "id": "133478", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.7.0.879871b...(05/10/11 19:34)\noptionalArgAPIs\ttrue\t10\tSuccess\nreadWriteText\ttrue\t31\tSuccess\nblobNativeFile\ttrue\t49\tSuccess\ndotSlash\ttrue\t59\tSuccess\nfileStreamBasicTest\ttrue\t108\tSuccess\nfileStreamWriteTest\ttrue\t132\tSuccess\nfileStreamAppendTest\ttrue\t171\tSuccess\nfileStreamPumpTest\ttrue\t200\tSuccess\nfileStreamWriteStreamTest\ttrue\t220\tSuccess\nfileStreamResourceFileTest\ttrue\t220\tSuccess\nfileStreamTruncateTest\ttrue\t262\tSuccess", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-11T18:36:42.000+0000", "updated": "2011-05-11T18:36:42.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }