You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2018/08/02 14:45:00 UTC

[jira] [Commented] (CAY-2447) crypto support for LocalDateTime

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

Andrus Adamchik commented on CAY-2447:
--------------------------------------

We support encryption of various non-text types already. So I guess let's add all the otherwise supported java.time class to the list of "encryptable" values.

> crypto support for LocalDateTime
> --------------------------------
>
>                 Key: CAY-2447
>                 URL: https://issues.apache.org/jira/browse/CAY-2447
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 4.0.B2
>            Reporter: Vital Zanko
>            Priority: Major
>
> java.time.LocalDateTime is not being encrypted. 
> org.apache.cayenne.crypto.transformer.value.DefaultValueTransformerFactory.objectToBytes does not contain java.time.LocalDateTime:
> {code:java}
> java.lang.IllegalArgumentException: The type java.time.LocalDateTime for attribute DbAttr: VARBINARY CRYPTO_birth_date[512] has no object-to-bytes conversion
> at org.apache.cayenne.crypto.transformer.value.DefaultValueTransformerFactory.createEncryptor(DefaultValueTransformerFactory.java:118)
> at org.apache.cayenne.crypto.transformer.value.DefaultValueTransformerFactory.encryptor(DefaultValueTransformerFactory.java:103)
> at org.apache.cayenne.crypto.transformer.value.LazyValueTransformerFactory.encryptor(LazyValueTransformerFactory.java:43)
> {code}



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