Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7393

add message to Jwe exception.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.11
    • Fix Version/s: 3.1.12, 3.2.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      currently when a JWE exception is thrown this is what the log message looks like.

      sample error
      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)
      

      it would be nice if the error passed into the exception was printed out as the message.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sergey_beryozkin Sergey Beryozkin
                Reporter:
                amir20001 Amir Behnam
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: