1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 14:59:41 +02:00

fix(db): handle decryption error EE-2466 (#6499)

This commit is contained in:
andres-portainer 2022-02-01 11:48:26 -03:00 committed by GitHub
parent cf459a2d28
commit 1bb02eea59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ func (connection *DbConnection) UnmarshalObject(data []byte, object interface{})
if connection.getEncryptionKey() != nil { if connection.getEncryptionKey() != nil {
data, err = decrypt(data, connection.getEncryptionKey()) data, err = decrypt(data, connection.getEncryptionKey())
if err != nil { if err != nil {
errors.Wrapf(err, "Failed decrypting object") return errors.Wrap(err, "Failed decrypting object")
} }
} }
e := json.Unmarshal(data, object) e := json.Unmarshal(data, object)