{ "id": "148978", "key": "TIMOB-19206", "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": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-05T02:15:06.000+0000", "created": "2015-06-19T23:52:36.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "database", "module_database", "qe-manualtest", "qe-testadded", "sqlite" ], "versions": [], "issuelinks": [ { "id": "49530", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "152320", "key": "MOD-2149", "fields": { "summary": "EncryptedDatabase: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol \"EVP_CipherFinal\"", "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": "49626", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "149926", "key": "TIMOB-19262", "fields": { "summary": "iOS: Encrypted Database Module: SQLite #26: file is encrypted or is not a database", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "49976", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "153465", "key": "TIMOB-20071", "fields": { "summary": "Android: Rebuild supported closed and open source modules for Android 6.0", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "6", "description": "gh.issue.epic.desc", "name": "Epic", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-01-19T22:42:48.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h3. Issue\r\n\r\nWhen working on Android and trying to install a pre-populated database Encrypted database module and open is throwing the following error:\r\n\r\n{code}\r\n[INFO] Database: sqlite returned: error code = 26, msg = file is encrypted or is not a database\r\n[ERROR] Database: CREATE TABLE android_metadata failed\r\n[ERROR] Database: Failed to setLocale() when constructing, closing the database\r\n[ERROR] Database: net.sqlcipher.database.SQLiteException: file is encrypted or is not a database\r\n[ERROR] Database: \tat net.sqlcipher.database.SQLiteDatabase.native_setLocale(Native Method)\r\n[ERROR] Database: \tat net.sqlcipher.database.SQLiteDatabase.setLocale(SQLiteDatabase.java:2102)\r\n[ERROR] Database: \tat net.sqlcipher.database.SQLiteDatabase.(SQLiteDatabase.java:1968)\r\n[ERROR] Database: \tat net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:901)\r\n[ERROR] Database: \tat net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:929)\r\n[ERROR] Database: \tat net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:936)\r\n[ERROR] Database: \tat appcelerator.encrypteddatabase.EncrypteddatabaseModule.open(EncrypteddatabaseModule.java:83)\r\n[ERROR] Database: \tat appcelerator.encrypteddatabase.EncrypteddatabaseModule.install(EncrypteddatabaseModule.java:145)\r\n[ERROR] Database: \tat org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)\r\n[ERROR] Database: \tat org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:62)\r\n[ERROR] Database: \tat org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:908)\r\n[ERROR] Database: \tat org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1131)\r\n[ERROR] Database: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:347)\r\n[ERROR] Database: \tat org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:101)\r\n[ERROR] Database: \tat ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:424)\r\n[ERROR] Database: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[ERROR] Database: \tat android.os.Looper.loop(Looper.java:137)\r\n[ERROR] Database: \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)\r\n[WARN] W/System.err: java.lang.NullPointerException\r\n[WARN] W/System.err: \tat appcelerator.encrypteddatabase.EncrypteddatabaseModule.open(EncrypteddatabaseModule.java:90)\r\n[WARN] W/System.err: \tat appcelerator.encrypteddatabase.EncrypteddatabaseModule.install(EncrypteddatabaseModule.java:145)\r\n[WARN] W/System.err: \tat org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)\r\n[WARN] W/System.err: \tat org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:62)\r\n[WARN] W/System.err: \tat org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:908)\r\n[WARN] W/System.err: \tat org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1131)\r\n[WARN] W/System.err: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:347)\r\n[WARN] W/System.err: \tat org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:101)\r\n[WARN] W/System.err: \tat ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:424)\r\n[WARN] W/System.err: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[WARN] W/System.err: \tat android.os.Looper.loop(Looper.java:137)\r\n[WARN] W/System.err: \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)\r\n[ERROR] TiExceptionHandler: (main) [947,947] ----- Titanium Javascript Runtime Error -----\r\n[ERROR] TiExceptionHandler: (main) [0,947] - In ti:/invoker.js:101,19\r\n[ERROR] TiExceptionHandler: (main) [0,947] - Message: Uncaught Error: Java Exception occurred\r\n[ERROR] TiExceptionHandler: (main) [1,948] - Source: \t\treturn delegate.apply(invoker.__thisObj__, args);\r\n[ERROR] V8Exception: Exception occurred at ti:/invoker.js:101: Uncaught Error: Java Exception occurred\r\n{code}\r\n\r\nDuring research i found some similar issues in native development:\r\n\r\nhttp://stackoverflow.com/questions/13537073/android-sqlcipher-pragma-problems\r\nhttp://stackoverflow.com/questions/20373066/sqlcipher-create-table-android-metadata-failed\r\n\r\nh3. Steps to reproduce\r\n\r\n1. Run alloySample (attached alloySample.zip)\r\n\r\nExpected Result\r\nThe database will install and run correctly\r\n\r\nActual Result\r\nWe receive the following error \"sqlite returned: error code = 26, msg = file is encrypted or is not a database\"", "attachment": [ { "id": "55907", "filename": "alloySample.zip", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-19T23:52:32.000+0000", "size": 8550623, "mimeType": "application/zip" }, { "id": "57176", "filename": "testdbencrypt.sqlite", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-10-29T07:28:19.000+0000", "size": 2048, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "Android: Encrypted Database: Not being able to read installed database", "creator": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 517, "state": "closed", "name": "2015 Sprint 22 SDK", "startDate": "2015-10-24T00:30:42.059Z", "endDate": "2015-11-07T01:30:00.000Z", "completeDate": "2015-11-09T02:37:29.441Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "357294", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cng] Can you please schedule this for an upcoming sprint?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-08T16:35:22.000+0000", "updated": "2015-07-08T16:35:22.000+0000" }, { "id": "357430", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~hpham], can you please take a look at this? Thanks.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-10T05:21:38.000+0000", "updated": "2015-07-10T05:21:38.000+0000" }, { "id": "359034", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-05T03:14:47.000+0000", "updated": "2015-08-05T03:14:47.000+0000" }, { "id": "374872", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-19T22:28:02.000+0000", "updated": "2016-01-19T22:28:34.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }