Skip to content

Commit

Permalink
fixes wrong asString call instead of formatAsString
Browse files Browse the repository at this point in the history
Signed-off-by: Stanchev Aleksandar <aleksandar.stanchev@bosch.io>
  • Loading branch information
Stanchev Aleksandar committed Dec 14, 2022
1 parent a2620c7 commit 1e5f40e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected Optional<JsonField> getRevisionJsonField(final Connection entity) {
@Override
protected Connection createJsonifiableFrom(final JsonObject jsonObject) {
if (encryptionConfig.getSymmetricalKey().isEmpty()) {
if(jsonObject.asString().contains(JsonFieldsEncryptor.ENCRYPTED_PREFIX)){
if(jsonObject.formatAsString().contains(JsonFieldsEncryptor.ENCRYPTED_PREFIX)){
LOGGER.warn("Encrypted fields will not be decrypted. Missing symmetrical key. " +
"Either configure the one used for encryption or edit connections and update encrypted fields");
}
Expand Down

0 comments on commit 1e5f40e

Please sign in to comment.