{ "id": "83986", "key": "TIMOB-6784", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-12-20T09:59:41.000+0000", "created": "2011-12-16T15:01:54.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "14314", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "84048", "key": "TIMOB-6756", "fields": { "summary": "iOS: Database migration from 1.7.x -> 1.8.x is not copying migrating the data", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "14312", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "82999", "key": "TIMOB-6273", "fields": { "summary": "Database installation folder issue related to iCloud", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T21:22:06.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": "As per TIMOB-6273 the decision was made to store all databases in \"Private Documents\" instead of \"Application Support/Database\". This change requires any existing database on devices to be moved from the \"old\" folder to the new location. The code and comments in this change indicate that it was intended to migrate the database, but multiple tests on both simulator and device show that the \"old\" database is not being copied, but the database is being installed in the new location\r\n\r\nSteps to reproduce:\r\n{code:lang=javascript|title=app.js}\r\n//Resources/data.mydb.sqlite is a \"model\" database.\r\nvar db = Ti.Database.install('/data/mydb.sqlite','mydb');\r\n{code}\r\n\r\n# Run once using an \"old\" (pre December 6th) and verify that \"Application Support/database/mydb.sql\" has been created.\r\n# Run once more using a new SDK and verify that the previously created database still exists, but a new database has been created in \"Private Documents\".\r\n# The Ti.Database.DB now points to the new database in Private Documents and the user can't access his/her data.", "attachment": [], "flagged": false, "summary": "iOS: Database - data not transferred when populated database migrated from Titanium's old database folder to Private Documents", "creator": { "name": "martijnkooij", "key": "martijnkooij", "displayName": "Martijn Kooij", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "martijnkooij", "key": "martijnkooij", "displayName": "Martijn Kooij", "active": true, "timeZone": "Europe/Berlin" }, "environment": "* Mac OS X 10.6\r\n* XCode 4.2\r\n* Titanium SDK 1.9.0.v20111216103134\r\n* iOS SDK 5.0.1", "comment": { "comments": [ { "id": "176705", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Martijn - thanks for raising this ticket. Would you explain whether you found a workaround that was successful?\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-20T08:33:24.000+0000", "updated": "2011-12-20T08:33:24.000+0000" }, { "id": "176718", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a duplicate of an issue we've already resolved for 1.8.0.1 (and is being merged into 1.7.6 and master).", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-20T09:58:40.000+0000", "updated": "2011-12-20T09:58:40.000+0000" }, { "id": "176719", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a duplicate of ticket TIMOB-6756.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-20T09:59:41.000+0000", "updated": "2011-12-20T09:59:41.000+0000" }, { "id": "414991", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as duplicate with regards to the information provided elsewhere in this ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:22:06.000+0000", "updated": "2017-03-22T21:22:06.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }