Skip to content

Adds caveat to allow_empty_value option usage#347

Open
wetoolaguer wants to merge 1 commit intoattr-encrypted:masterfrom
wetoolaguer:master
Open

Adds caveat to allow_empty_value option usage#347
wetoolaguer wants to merge 1 commit intoattr-encrypted:masterfrom
wetoolaguer:master

Conversation

@wetoolaguer
Copy link

Using allow_empty_value option with the default Encryptor does not work. It throws:

ArgumentError: data must not be empty

Please see:
https://github.com/ruby/openssl/blob/18ec883d6daaedbf32c66ca4ae6e41b66d0eeca4/ext/openssl/ossl_cipher.c#L389

@parterburn
Copy link

@wetoolaguer did you find a workaround for this? This exact error triggered for us on a 3.0.3 -> 3.1.0 upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants