You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by bu...@apache.org on 2003/11/11 22:14:47 UTC

DO NOT REPLY [Bug 24626] New: - JCEMapper doesn't provide enough feedback on mis-config

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24626>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24626

JCEMapper doesn't provide enough feedback on mis-config

           Summary: JCEMapper doesn't provide enough feedback on mis-config
           Product: Security
           Version: cvs
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Encryption
        AssignedTo: security-dev@xml.apache.org
        ReportedBy: kdowney@amberarcher.com


The JCEMapper code just returns null when it can't find an algorithm; this
should probably be an exceptional condition instead so it doesn't just bomb with
an NPE. Assertion checks to see if JCEMapper has been initialized before use
would be helpful for debugging as well. That would cover the two cases where
this happens: alogrithms not present or Init.init() not called before a decrypt
or encrypt.

It might be better to sprinkle the critical entry point classes (like XMLCipher)
with static blocks calling Init.init() to ensure it's called.