[ 
http://www.stripesframework.org/jira/browse/STS-550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter resolved STS-550.
----------------------------

       Resolution: Fixed
    Fix Version/s: Release 1.5
         Assignee: Ben Gunter

Changed so that it does not pass inbytes to Cipher.doFinal(..) if the length of 
the array is zero. I believe this is a bug in IBM's JDK, but it's easy enough 
to work around.

> IBM Java6 - Could not encrypt value
> -----------------------------------
>
>                 Key: STS-550
>                 URL: http://www.stripesframework.org/jira/browse/STS-550
>             Project: Stripes
>          Issue Type: Bug
>    Affects Versions: Release 1.5
>         Environment: Ubuntu Hardy, IBM Java6 final release SDK, trunk/stripes 
> from SVN (April 18th IIRC)
>            Reporter: Scott Van Wart
>            Assignee: Ben Gunter
>            Priority: Trivial
>             Fix For: Release 1.5
>
>         Attachments: cryptoutil-emptyarray-trunk-apr20.patch
>
>
> I posted this to the Stripes-dev mailing list but thought I'd open a JIRA for 
> it.  I don't think it's related to STS-320, though I suppose it could be.
> IBM's implementation of javax.crypto.Cipher in Java6 seems to throw an 
> IllegalArgumentException when you pass an empty array into it for 
> encryption:
> net.sourceforge.stripes.exception.StripesRuntimeException: Could not encrypt 
> value.
>       net.sourceforge.stripes.util.CryptoUtil.encrypt(CryptoUtil.java:146)
>       
> net.sourceforge.stripes.tag.FormTag.writeFieldsPresentHiddenField(FormTag.java:314)
>       net.sourceforge.stripes.tag.FormTag.doEndTag(FormTag.java:238)
>       org.apache.jsp.index_jsp._jspService(index_jsp.java:282)
>       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> ...
> java.lang.IllegalArgumentException: Bad arguments
>       javax.crypto.Cipher.doFinal(Unknown Source)
>       net.sourceforge.stripes.util.CryptoUtil.encrypt(CryptoUtil.java:140)
>       
> net.sourceforge.stripes.tag.FormTag.writeFieldsPresentHiddenField(FormTag.java:314)
>       net.sourceforge.stripes.tag.FormTag.doEndTag(FormTag.java:238)
>       org.apache.jsp.index_jsp._jspService(index_jsp.java:282)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to