{ "id": "168931", "key": "MOD-2348", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2017-08-10T17:54:59.000+0000", "created": "2017-07-12T19:51:37.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [ { "id": "55420", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "163442", "key": "MOD-2299", "fields": { "summary": "Encrypted Database: Crashed on iOS 9 Devices after using SDK 5.5.0.GA", "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": "55412", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "154462", "key": "MOD-2259", "fields": { "summary": "iOS: Encrypted Database Adapter error on module upgrade", "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": "55429", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "166614", "key": "TIMOB-24488", "fields": { "summary": "iOS: appcelerator.encrypteddatabase and pspdfkit modules conflict and throw database error", "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 } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2017-08-10T17:55:08.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": "13609", "name": "Encrypted SQLite DB" } ], "description": "h5. Description\r\nCustomer upgraded to SDK 6.x from SDK 5.x and updated the SQLite Database Encryption modules from 1.3.1 to 2.0.2. \r\nSince the upgrade they are running into the following errors: \r\nerror database is encrypted \r\nfile doesn't exist error\r\nSince upgrading SDK's they had to open import the app in appcelerator which gave it a new GUID\r\n\r\nh5. Addition customer notes\r\nApp works perfectly fine on brand new install\r\nonly on upgrade this issue is happening. \r\n\r\nApp logs are provided previously. I am strongly suspecting that something has changed about DB password or database key that is causing this issue.\r\n\r\nThings changed in the app is - App GUID got changed.\r\nDB password in assets -> alloy -> sync -> enc.db.js is set to 'An excellent password can be used here, such as this string.';\r\nand this has not changed in release.\r\n\r\n\r\nh5. steps to reproduce\r\n* create an app and encrypt the database using version 1.3.1 SDK 5.x\r\n* Upgrade to SDK 6.x and module version 2.0.2 ( at this step Appcelerator had them import the app which generated a new GUID for the application)\r\n* Run database and get errors", "attachment": [ { "id": "62869", "filename": "LogOutputABC.rtf", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-12T19:51:20.000+0000", "size": 3303, "mimeType": "text/rtf" }, { "id": "62870", "filename": "LogsABC.rtf", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-12T19:51:20.000+0000", "size": 10906, "mimeType": "text/rtf" } ], "flagged": false, "summary": "iOS: Encrypted Database upgrade-error when using Ti.Database", "creator": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 933, "state": "closed", "name": "2017 Sprint 16 SDK", "startDate": "2017-07-30T16:17:10.306Z", "endDate": "2017-08-13T16:17:00.000Z", "completeDate": "2017-08-13T23:06:34.398Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "424025", "author": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Old version of the application - 5.1\r\nAppcelerator SDK 5.x\r\nDatabase version - 1.3.1\r\n\r\nNew version of the application 6.0\r\nAppcelerator SDK 6.x\r\nDatabase version - 2.0.1", "updateAuthor": { "name": "rramirez", "key": "rramirez", "displayName": " Ricardo Ramirez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-12T20:11:31.000+0000", "updated": "2017-07-12T20:11:31.000+0000" }, { "id": "424186", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This has to be related to TIMOB-24488. The solution for the linked ticket was to update the library that caused the issue (PSPSFKit) to latest. They basically linked {{-lsqlite3}} in there library as well, which caused the trouble. When we use the Alloy-Sync API, Alloy will internally use Ti.Database, which may cause the same issue then. In addition to the proposal by [~cwilliams], I would like to see the {{.pbxproj}} file generated with that patch. We should also test Ti.Database calls in general using the patch and the Encrypted-Database module.\r\n\r\n*EDIT 1*: Download [2.0.3 Beta 1|https://github.com/appcelerator-modules/appcelerator.encrypteddatabase/releases/tag/2.0.2-beta.1]\r\n\r\n*EDIT 2*: Why exactly did the GUID change? An SDK 5.x project should already have been registered with our platform, especially when using the encrypted database module. The GUID is used as the fallback password if the password is not set or set to {{DEFAULT}}, so if the customer does either of those scenarios (not set or set to default), the changed GUID will cause the problems. But as I think that should not be the case, QE should validate the latest 2.0.3 draft (above) to validate the provided fix again. Thx!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-07-15T05:40:01.000+0000", "updated": "2017-07-16T00:51:43.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }