cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAY-2019) Optimistic locking always fails on CRYPTO columns
Date Tue, 09 Jul 2019 15:11:00 GMT

    [ https://issues.apache.org/jira/browse/CAY-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16881297#comment-16881297
] 

Andrus Adamchik edited comment on CAY-2019 at 7/9/19 3:10 PM:
--------------------------------------------------------------

> So is there a better place to turn off locking then?
We can decorate DataMapLoader and inspect loaded DataMap for attributes that are both using
optimistic locking and are encrypted (using the actual implementation of ColumnMapper) . 

I'd still prefer printing a warning in the logs to just turning it off (or we can do both
actually), but either way it will happen in the same place.


was (Author: andrus):
> So is there a better place to turn off locking then?
We can decorate DataMapLoader and inspect loaded DataMap for attributes that are both using
optimistic locking and are encrypted (using the actual implementation of ColumnMapper) . 

I'd still prefer printing a warning in the logs to just turning it off, but either way it
will happen in the same place.

> Optimistic locking always fails on CRYPTO columns
> -------------------------------------------------
>
>                 Key: CAY-2019
>                 URL: https://issues.apache.org/jira/browse/CAY-2019
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 4.0.M2
>            Reporter: John Huss
>            Assignee: John Huss
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> If you have optimistic locking turned on for columns that are configured to be encrypted
(named CRYPTO_*) then updates to those rows will always fail because it uses the unencrypted
value to check the optimistic locking, ie. WHERE encryptedColumn = <unencryptedValue>



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message