Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2447

crypto support for LocalDateTime

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.B2
    • Fix Version/s: 4.1.B1
    • Component/s: None

      Description

      java.time.LocalDateTime is not being encrypted. 

      org.apache.cayenne.crypto.transformer.value.DefaultValueTransformerFactory.objectToBytes does not contain java.time.LocalDateTime:

      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)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ntimofeev Nikita Timofeev
                Reporter:
                vitalz Vital Zanko
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: