You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2017/06/13 15:47:02 UTC

[jira] [Resolved] (CXF-7393) add message to Jwe exception.

     [ https://issues.apache.org/jira/browse/CXF-7393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Beryozkin resolved CXF-7393.
-----------------------------------
    Resolution: Fixed
      Assignee: Sergey Beryozkin

> add message to Jwe exception.
> -----------------------------
>
>                 Key: CXF-7393
>                 URL: https://issues.apache.org/jira/browse/CXF-7393
>             Project: CXF
>          Issue Type: Improvement
>    Affects Versions: 3.1.11
>            Reporter: Amir Behnam
>            Assignee: Sergey Beryozkin
>             Fix For: 3.2.0, 3.1.12
>
>
> currently when a JWE exception is thrown this is what the log message looks like.
> {code:title=sample error|theme=FadeToGrey|linenumbers=true|language=java|firstline=0001|collapse=true}
> org.apache.cxf.rs.security.jose.jwe.JweException: null
> 	at org.apache.cxf.rs.security.jose.jwe.AesCbcHmacJweDecryption.validateAuthenticationTag(AesCbcHmacJweDecryption.java:61)
> 	at org.apache.cxf.rs.security.jose.jwe.AesCbcHmacJweDecryption.doDecrypt(AesCbcHmacJweDecryption.java:40)
> 	at org.apache.cxf.rs.security.jose.jwe.AbstractJweDecryption.decrypt(AbstractJweDecryption.java:52)
> 	at com.groupbyinc.security.JsonWebEncryption.decrypt(JsonWebEncryption.java:64)
> 	at com.groupbyinc.security.JsonWebEncryptionTest.testDecryptInvalidJwe(JsonWebEncryptionTest.java:86)
> {code}
> it would be nice if the error passed into the exception was printed out as the message.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)