[
https://issues.apache.org/jira/browse/CAMEL-6817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Milan Baran updated CAMEL-6817:
-------------------------------
Attachment:
CAMEL-6817__Multiple_NPE_during_unmarshalling_with_PGPDateFormat.patch.asc
CAMEL-6817__Multiple_NPE_during_unmarshalling_with_PGPDateFormat.patch
Well, I prepared fix for my purposes. All tests passes. So, if there is no
other problem you can include the patch to next release.
> Multiple NPE during unmarshalling with PGPDateFormat
> ----------------------------------------------------
>
> Key: CAMEL-6817
> URL: https://issues.apache.org/jira/browse/CAMEL-6817
> Project: Camel
> Issue Type: Bug
> Components: camel-crypto
> Affects Versions: 2.12.1
> Environment: Win 7, 64bit, Oracle JDK 1.6, bouncycastle.
> Reporter: Milan Baran
> Priority: Minor
> Attachments:
> CAMEL-6817__Multiple_NPE_during_unmarshalling_with_PGPDateFormat.patch,
> CAMEL-6817__Multiple_NPE_during_unmarshalling_with_PGPDateFormat.patch.asc
>
>
> Current behavior:
> 1. Try to unmarshal (PGPDateFormat) not encrypted file, just plain text.
> 2. You will get NPE exception.
> 1. Try to unmarshal (PGPDateFormat) encrypted file with different keys
> 2. You will get NPE exception.
> Expected behavior:
> 1. Try to unmarshal (PGPDateFormat) not encrypted file, just plain text.
> 2. You will get PGPException says "input is not encrypted"
> 1. Try to unmarshal (PGPDateFormat) encrypted file with different keys
> 2. You will get PGPException says "wrong keys used"
--
This message was sent by Atlassian JIRA
(v6.1#6144)