Unverified Commit 52ed8e4d authored by Daniel García's avatar Daniel García Committed by GitHub

Merge pull request #1026 from BlackDex/issue-1022

Fixes #1022 cloning with attachments
parents db535118 24c91479
Pipeline #1315 passed with stage
in 16 minutes and 59 seconds
......@@ -274,7 +274,10 @@ pub fn update_cipher_from_data(
};
if saved_att.cipher_uuid != cipher.uuid {
err!("Attachment is not owned by the cipher")
// Warn and break here since cloning ciphers provides attachment data but will not be cloned.
// If we error out here it will break the whole cloning and causes empty ciphers to appear.
warn!("Attachment is not owned by the cipher");
break;
}
saved_att.akey = Some(attachment.Key);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment