Bugs item #1423243, was opened at 2006-02-03 11:07
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1423243&group_id=119783
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Martijn Dashorst (dashorst)
Assigned to: Nobody/Anonymous (nobody)
Summary: NPE in AbstractCrypt
Initial Comment:
When the encryption fails, the String constructor in
wicket.util.crypt.AbstractCrypt.decrypt(AbstractCrypt.java:70)
gives a NPE.
I haven't solved the NPE with a hack, because either we
should propagate the exception in
decryptStringToByteArray, or return null. I don't know
which is better.
Cause:
wicket.util.crypt.AbstractCrypt.decryptStringToByteArray(AbstractCrypt.java:154)
: Unable to decrypt text 'bla'
javax.crypto.IllegalBlockSizeException: Input length
must be multiple of 8 when decrypting with padded cipher
at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
at com.sun.crypto.provider.SunJCE_ae.b(DashoA12275)
at
com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(DashoA12275)
at javax.crypto.Cipher.doFinal(DashoA12275)
at
wicket.util.crypt.SunJceCrypt.crypt(SunJceCrypt.java:101)
at
wicket.util.crypt.AbstractCrypt.decryptStringToByteArray(AbstractCrypt.java:146)
at
wicket.util.crypt.AbstractCrypt.decrypt(AbstractCrypt.java:70)
The actual NPE:
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:176)
:
java.lang.NullPointerException
at java.lang.String.<init>(Unknown Source)
at
wicket.util.crypt.AbstractCrypt.decrypt(AbstractCrypt.java:70)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1423243&group_id=119783
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop