{ "id": "174011", "key": "TIMOB-27371", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": null, "resolutiondate": null, "created": "2019-08-13T05:36:32.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-08-30T23:19:41.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "I've use the appcelerator.encrypteddatabase to encrypt a database into an existing application. The application is already in production and have one encrpyt database. For an update, we want crypt the actual database but it's not wokring if the databas ealready exist.\r\n\r\nI've attach a sample app code for your test : https://drive.google.com/file/d/1O-vz9xwwZMUT5FWjXS8vU9mgAMNn79dC/view?usp=sharing\r\n\r\nThis is the message we received : \r\n\r\n\r\n{code:java}\r\n[ERROR] file is not a database\r\n[ERROR] A SQLite database error occurred on database '/Users/didier/Library/Developer/CoreSimulator/Devices/ECB074E6-601F-4598-94D6-64F6865BACF7/data/Containers/Data/Application/E2C38BDE-D58D-4886-A3D7-B5661CAF458D/Library/Private Documents/myDb.sql': Error Domain=com.plausiblelabs.EncPLDatabase Code=4 \"Cipher migrate: failed to attach new database.\" UserInfo={com.plausiblelabs.EncPLDatabase.error.vendor.string=file is not a database, NSLocalizedDescription=Cipher migrate: failed to attach new database., com.plausiblelabs.EncPLDatabase.error.vendor.code=26} (SQLite #26: file is not a database) (query: '')\r\n\r\n[ERROR] Error: Couldn't open database and migrate\r\n[ERROR] File: /alloy/models/Books.js\r\n[ERROR] Line: 386\r\n[ERROR] SourceId: \r\n[ERROR] Backtrace:\r\n[ERROR] undefined\r\n{code}\r\n", "attachment": [ { "id": "66826", "filename": "Screenshot 2019-08-13 at 12.48.03 PM.png", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-08-13T06:48:22.000+0000", "size": 29834, "mimeType": "image/png" } ], "flagged": false, "summary": "Can't crypt an existing SQLITE database", "creator": { "name": "thomas.webgo@gmail.com", "key": "thomas.webgo@gmail.com", "displayName": "Thomas Lemaitre", "active": true, "timeZone": "Indian/Reunion" }, "subtasks": [], "reporter": { "name": "thomas.webgo@gmail.com", "key": "thomas.webgo@gmail.com", "displayName": "Thomas Lemaitre", "active": true, "timeZone": "Indian/Reunion" }, "environment": null, "comment": { "comments": [ { "id": "450423", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~gmathews], [~vsingh], you guys have more experience with the encrypted db module. Is this even something we support? I couldn't find any info regarding migrating an unencrypted db to an encrypted one.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-08-13T10:02:26.000+0000", "updated": "2019-08-13T10:02:26.000+0000" }, { "id": "450450", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The encrypted database module does not support copying an app embedded pre-made database file. This is not currently supported on Android or iOS. The module's {{install()}} method really does an {{open()}} instead.\r\n\r\nPlease see: [MOD-2508]\r\n\r\nYour only option is to set up the database's tables/indexes/rows/etc. dynamically via code.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-13T17:33:01.000+0000", "updated": "2019-08-13T17:33:01.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }