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

add message to Jwe exception.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.11
    • 3.1.12, 3.2.0
    • None
    • None
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment