{ "id": "162886", "key": "MOD-2291", "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": [ { "id": "18303", "name": "appcelerator.encrypteddatabase 1.3.2", "archived": false, "released": true }, { "id": "18304", "name": "appcelerator.encrypteddatabase 2.0.1", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-09-01T07:49:20.000+0000", "created": "2016-08-30T17:28:31.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "17723", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [ { "id": "52613", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "162883", "key": "TIMOB-23861", "fields": { "summary": "SQLite Database Encryption Module not working on Andriod", "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": "52566", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "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 } } } } ], "assignee": null, "updated": "2018-08-06T17:49:32.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": "Hi,\r\nSQLite Database Encryption Module version 1.3.1 throwing error with example ToDo Alloy Apps on Android 6.0.1 with TiSDK 5.4.0 GA.\r\n\r\nSteps to reproduce :\r\n1. Create a simple Alloy Apps.\r\n2. Add example ToDo Alloy Apps code\r\n3. Add Database Encryption Module in tiapp.xml\r\n4. Build apps in android 6.0 with TiSDK 5.4.0.GA\r\n\r\nYou will get following error when you add items in list :\r\n\r\nError Log :\r\n\r\n{code}\r\n[ERROR] : TiExceptionHandler: (main) [12488,52776] ----- Titanium Javascript Runtime Error -----\r\n[ERROR] : TiExceptionHandler: (main) [0,52776] - In alloy/sync/enc.db.js:113,36\r\n[ERROR] : TiExceptionHandler: (main) [0,52776] - Message: Uncaught TypeError: Object # has no method 'cipherUpgrade'\r\n[ERROR] : TiExceptionHandler: (main) [0,52776] - Source: var cipherUpgraded = _database.cipherUpgrade(dbName);\r\n[ERROR] : V8Exception: Exception occurred at alloy/sync/enc.db.js:113: Uncaught TypeError: Object # has no method 'cipherUpgrade'\r\n[ERROR] : E/MP-Decision( 4024): Update arg 1\r\n[ERROR] : D/NetworkController.WifiSignalController( 2868): Change in state from: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=false,activityOut=false,rssi=-62,lastModified=08-30 09:14:31,ssid=\"aminul\"\r\n[ERROR] : D/NetworkController.WifiSignalController( 2868): \tto: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=false,activityOut=true,rssi=-62,lastModified=08-30 09:14:31,ssid=\"aminul\"\r\n[ERROR] : D/StatusBar.NetworkController( 2868): dumpIcon[(gone) stat_sys_5signal_5|null stat_sys_wifi_signal_out_4 (gone) F]\r\n[ERROR] : D/NetworkController.WifiSignalController( 2868): Change in state from: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=false,activityOut=true,rssi=-62,lastModified=08-30 09:14:34,ssid=\"aminul\"\r\n[ERROR] : D/NetworkController.WifiSignalController( 2868): \tto: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=false,activityOut=false,rssi=-62,lastModified=08-30 09:14:34,ssid=\"aminul\"\r\n[ERROR] : D/StatusBar.NetworkController( 2868): dumpIcon[(gone) stat_sys_5signal_5|null stat_sys_wifi_signal_connected_4 (gone) F]\r\n[ERROR] : D/NetworkController.WifiSignalController( 2868): Change in state from: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=false,activityOut=false,rssi=-62,lastModified=08-30 09:14:35,ssid=\"aminul\"\r\n[ERROR] : D/NetworkController.WifiSignalController( 2868): \tto: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=false,activityOut=true,rssi=-62,lastModified=08-30 09:14:35,ssid=\"aminul\"\r\n[ERROR] : D/StatusBar.NetworkController( 2868): dumpIcon[(gone) stat_sys_5signal_5|null stat_sys_wifi_signal_out_4 (gone) F]\r\n[ERROR] : D/NetworkController.WifiSignalController( 2868): Change in state from: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=false,activityOut=true,rssi=-62,lastModified=08-30 09:14:36,ssid=\"aminul\"\r\n[ERROR] : D/NetworkController.WifiSignalController( 2868): \tto: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=false,activityOut=false,rssi=-62,lastModified=08-30 09:14:36,ssid=\"aminul\"\r\n[ERROR] : D/StatusBar.NetworkController( 2868): dumpIcon[(gone) stat_sys_5signal_5|null stat_sys_wifi_signal_connected_4 (gone) F]\r\n[ERROR] : D/StatusBar.NetworkController( 2868): dumpIcon[(gone) stat_sys_5signal_5|null stat_sys_wifi_signal_connected_4 (gone) F]\r\n[ERROR] : D/NetworkController.WifiSignalController( 2868): Change in state from: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=false,activityOut=false,rssi=-62,lastModified=08-30 09:14:38,ssid=\"aminul\"\r\n[ERROR] : D/NetworkController.WifiSignalController( 2868): \tto: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=true,activityOut=true,rssi=-62,lastModified=08-30 09:14:38,ssid=\"aminul\"\r\n[ERROR] : D/StatusBar.NetworkController( 2868): dumpIcon[(gone) stat_sys_5signal_5|null stat_sys_wifi_signal_inandout_4 (gone) F]\r\n[ERROR] : D/NetworkController.WifiSignalController( 2868): Change in state from: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=true,activityOut=true,rssi=-62,lastModified=08-30 09:14:49,ssid=\"aminul\"\r\n[ERROR] : D/NetworkController.WifiSignalController( 2868): \tto: connected=true,enabled=true,level=4,inetCondition=1,iconGroup=IconGroup(Wi-Fi Icons),activityIn=false,activityOut=false,rssi=-62,lastModified=08-30 09:14:49,ssid=\"aminul\"\r\n{code}\r\n\r\nEnvironment \r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.5\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.4.4\r\n npm Version = 2.15.1\r\nTitanium CLI\r\n CLI Version = 5.0.9\r\nTitanium SDK\r\n SDK Version = 5.4.0.GA\r\n{code}\r\n\r\nThanks", "attachment": [ { "id": "60163", "filename": "Studio log.txt", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2016-08-30T17:34:21.000+0000", "size": 9409564, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android : SQLite Database Encryption Module version 1.3.1 throwing error with example ToDo Alloy Apps ", "creator": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "subtasks": [], "reporter": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "environment": null, "closedSprints": [ { "id": 704, "state": "closed", "name": "2016 Sprint 18 SDK", "startDate": "2016-08-27T00:18:36.960Z", "endDate": "2016-09-10T00:18:00.000Z", "completeDate": "2016-09-09T20:26:13.865Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "394876", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "The error looks like it's trying to use {{cipherUpgrade}} method in Android. Related: MOD-2259\r\n\r\n{{cipherUpgrade}} is an iOS only method. https://github.com/appcelerator-modules/appcelerator.encrypteddatabase/blob/cfe5d8b06fc51c913ff7b61cb6e82c324effe19e/apidoc/EncryptedDatabase.yml#L48-L59\r\n\r\nThere is no errors here. In this case, the example is not updated correctly (incorrect).", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-08-31T04:09:25.000+0000", "updated": "2016-08-31T04:09:25.000+0000" }, { "id": "394877", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~aislam] I would say that this is not a real issue in the Module except for that the example needs updating.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-08-31T04:10:55.000+0000", "updated": "2016-08-31T04:10:55.000+0000" }, { "id": "394879", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~aislam] in the example app, in the file\r\n{{app/assets/alloy/sync/enc.db.js}} at line 164 to 170, you need to check if it is iOS or Android. If it is iOS, you do the code in that block, otherwise, if it is Android, you don't.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-08-31T04:13:57.000+0000", "updated": "2016-08-31T04:13:57.000+0000" }, { "id": "395010", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR merged for 1.3.2. release can be obtained here, https://github.com/appcelerator-modules/appcelerator.encrypteddatabase/releases/tag/1.3.2\r\nThis PR is just an update to the example code. No changes to module.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-01T05:12:12.000+0000", "updated": "2016-09-01T05:12:12.000+0000" }, { "id": "395021", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR https://github.com/appcelerator-modules/appcelerator.encrypteddatabase/pull/14 was merged for this. (Version 1.3.1)", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-09-01T07:49:43.000+0000", "updated": "2016-09-01T08:17:32.000+0000" }, { "id": "395027", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Master PR: https://github.com/appcelerator-modules/appcelerator.encrypteddatabase/pull/15 (Version 2.0.1)", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-09-01T08:17:45.000+0000", "updated": "2016-09-01T08:17:45.000+0000" }, { "id": "440212", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:32.000+0000", "updated": "2018-08-06T17:49:32.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }