Details
-
Improvement
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
Mobile 3.0
Description
This is originated from https://issues.couchbase.com/browse/CBL-2319.
We should provide an info to explain that the Database.copy(fromPath, toName, config) method will copy the database without changing the encryption key. The encryption key specified in the config is the encryption key used for both the original database and copied database. If the encryption key needs to be changed or set to the copied database, the Database's changeEncryptionKey(key) will need to be call after.
Attachments
Issue Links
- relates to
-
CBL-2319 Confusing copyDatabase API when used with encryptionKey
-
- Closed
-
IB –
if you want to copy an unencrypted db but then encrypt the target db you need to use the change encryption key (pt 2) – link to db section
2. Also encryption section – encryption key add note rekey the database
https://docs.couchbase.com/couchbase-lite/3.0/android/database.html#database-encryption
https://docs.couchbase.com/mobile/3.0.0-beta02/couchbase-lite-android/com/couchbase/lite/Database.html#changeEncryptionKey(com.couchbase.lite.EncryptionKey)
all platforms