Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2291] Android : SQLite Database Encryption Module version 1.3.1 throwing error with example ToDo Alloy Apps

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2016-09-01T07:49:20.000+0000
Affected Version/sRelease 5.4.0
Fix Version/sappcelerator.encrypteddatabase 1.3.2, appcelerator.encrypteddatabase 2.0.1
ComponentsEncrypted SQLite DB
Labelsn/a
ReporterAminul Islam
AssigneeUnknown
Created2016-08-30T17:28:31.000+0000
Updated2018-08-06T17:49:32.000+0000

Description

Hi, SQLite 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. Steps to reproduce : 1. Create a simple Alloy Apps. 2. Add example ToDo Alloy Apps code 3. Add Database Encryption Module in tiapp.xml 4. Build apps in android 6.0 with TiSDK 5.4.0.GA You will get following error when you add items in list : Error Log :
[ERROR] :  TiExceptionHandler: (main) [12488,52776] ----- Titanium Javascript Runtime Error -----
[ERROR] :  TiExceptionHandler: (main) [0,52776] - In alloy/sync/enc.db.js:113,36
[ERROR] :  TiExceptionHandler: (main) [0,52776] - Message: Uncaught TypeError: Object #<Encrypteddatabase> has no method 'cipherUpgrade'
[ERROR] :  TiExceptionHandler: (main) [0,52776] - Source:     var cipherUpgraded = _database.cipherUpgrade(dbName);
[ERROR] :  V8Exception: Exception occurred at alloy/sync/enc.db.js:113: Uncaught TypeError: Object #<Encrypteddatabase> has no method 'cipherUpgrade'
[ERROR] :  E/MP-Decision( 4024): Update arg 1
[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"
[ERROR] :  D/NetworkController.WifiSignalController( 2868): 	to: 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"
[ERROR] :  D/StatusBar.NetworkController( 2868): dumpIcon[(gone) stat_sys_5signal_5|null stat_sys_wifi_signal_out_4 (gone) F]
[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"
[ERROR] :  D/NetworkController.WifiSignalController( 2868): 	to: 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"
[ERROR] :  D/StatusBar.NetworkController( 2868): dumpIcon[(gone) stat_sys_5signal_5|null stat_sys_wifi_signal_connected_4 (gone) F]
[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"
[ERROR] :  D/NetworkController.WifiSignalController( 2868): 	to: 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"
[ERROR] :  D/StatusBar.NetworkController( 2868): dumpIcon[(gone) stat_sys_5signal_5|null stat_sys_wifi_signal_out_4 (gone) F]
[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"
[ERROR] :  D/NetworkController.WifiSignalController( 2868): 	to: 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"
[ERROR] :  D/StatusBar.NetworkController( 2868): dumpIcon[(gone) stat_sys_5signal_5|null stat_sys_wifi_signal_connected_4 (gone) F]
[ERROR] :  D/StatusBar.NetworkController( 2868): dumpIcon[(gone) stat_sys_5signal_5|null stat_sys_wifi_signal_connected_4 (gone) F]
[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"
[ERROR] :  D/NetworkController.WifiSignalController( 2868): 	to: 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"
[ERROR] :  D/StatusBar.NetworkController( 2868): dumpIcon[(gone) stat_sys_5signal_5|null stat_sys_wifi_signal_inandout_4 (gone) F]
[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"
[ERROR] :  D/NetworkController.WifiSignalController( 2868): 	to: 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"
Environment
Operating System
  Name                        = Mac OS X
  Version                     = 10.11.5
  Architecture                = 64bit
  # CPUs                      = 4
  Memory                      = 8589934592
Node.js
  Node.js Version             = 4.4.4
  npm Version                 = 2.15.1
Titanium CLI
  CLI Version                 = 5.0.9
Titanium SDK
  SDK Version                 = 5.4.0.GA
Thanks

Attachments

FileDateSize
Studio log.txt2016-08-30T17:34:21.000+00009409564

Comments

  1. Ashraf Abu 2016-08-31

    The error looks like it's trying to use cipherUpgrade method in Android. Related: MOD-2259 cipherUpgrade is an iOS only method. https://github.com/appcelerator-modules/appcelerator.encrypteddatabase/blob/cfe5d8b06fc51c913ff7b61cb6e82c324effe19e/apidoc/EncryptedDatabase.yml#L48-L59 There is no errors here. In this case, the example is not updated correctly (incorrect).
  2. Ashraf Abu 2016-08-31

    [~aislam] I would say that this is not a real issue in the Module except for that the example needs updating.
  3. Ashraf Abu 2016-08-31

    [~aislam] in the example app, in the file 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.
  4. Chee Kiat Ng 2016-09-01

    PR merged for 1.3.2. release can be obtained here, https://github.com/appcelerator-modules/appcelerator.encrypteddatabase/releases/tag/1.3.2 This PR is just an update to the example code. No changes to module.
  5. Ashraf Abu 2016-09-01

    PR https://github.com/appcelerator-modules/appcelerator.encrypteddatabase/pull/14 was merged for this. (Version 1.3.1)
  6. Ashraf Abu 2016-09-01

    Master PR: https://github.com/appcelerator-modules/appcelerator.encrypteddatabase/pull/15 (Version 2.0.1)
  7. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source