{ "id": "84588", "key": "TIMOB-7029", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-07-10T22:24:38.000+0000", "created": "2012-01-09T07:00:54.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-10T22:24:38.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": "h2. Problem\r\n\r\nDatabase not created by [Titanium.Database.install()|http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Database.install-method.html] if file does not exist.\r\n\r\nIt's expected to create an empty sqlite file if no file exists.\r\n\r\nNote: works as expected on Android\r\n\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript}\r\nvar db = Ti.Database.install('mydb1', 'mydb1Installed');\r\n{code}\r\n\r\nh2. Logs\r\n\r\n{code}\r\n[ERROR] invalid database install path. /Users/dowsep/Library/Application Support/iPhone Simulator/5.0/Applications/0E4DDB3E-2043-48D3-BE7A-938E74F24BD9/testing11.app/mydb1 in -TiDatabaseProxy install:name:\r\n[ERROR] Script Error = invalid database install path. /Users/dowsep/Library/Application Support/iPhone Simulator/5.0/Applications/0E4DDB3E-2043-48D3-BE7A-938E74F24BD9/testing11.app/mydb1 in -TiDatabaseProxy install:name: at app.js (line 491).\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Database - database not created by install method if file does not exist", "creator": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": "* Titanium Mobile 1.7.5, 1.8.0.1\r\n* iOS5\r\n* OS X\r\n* Studio 1.0.8", "comment": { "comments": [ { "id": "248330", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \niOS iPhone Simulator: iOS SDK version: 6.0\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-19T09:21:00.000+0000", "updated": "2013-04-19T09:21:00.000+0000" }, { "id": "423834", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-10T22:24:38.000+0000", "updated": "2017-07-10T22:24:38.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }