Not sure. It could be related to this one:
http://www.stripesframework.org/jira/browse/STS-521
Asleson, Ryan wrote:
Fantastic, thank you Ben. I'll try it tonight!! So was this a known bug?
------------------------------------------------------------------------
*From:* [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] *On Behalf Of
*Ben Gunter
*Sent:* Tuesday, May 27, 2008 8:15 AM
*To:* Stripes Users List
*Subject:* Re: [Stripes-users] Bugs/Problems with Encrypted?
I'm pretty sure this is already fixed. Give it a shot with the RC.
Should be a painless upgrade from the beta.
-Ben
Asleson, Ryan wrote:
Hello,
I'm using Stripes 1.5 Beta 1 (sorry, just saw that RC 1 is available)
but I'm running into a problem and I'm just wondering if it's a bug
in Stripes or in my code.
I have a form that is using the encrypted=true attribute on a
validation to encode a database ID hidden in a hidden form variable.
So, I have hidden form variable:
<stripes:hidden name="user.id" />
And validations defined on the ActionBean, something like this:
@ValidateNestedProperties({
@Validate(field="id", encrypted=true)
. . . .
. . . .
})
So far so good. The problem happens when validation errors occur.
If I post the form that contains <stripes:hidden name="user.id" />
and the form has any validation errors (even those from other fields)
an ArrayIndexOutOfBounds exception is thrown. From the stack trace
it looks like the error is coming from somewhere in the CryptoUtil
class, in a method that has something to do with checking hash codes.
If I remove the encrypted=true attribute from the @Validate
annotation, the problem appears to go away.
Any ideas what might be causing this? I'm a bit lost right now.
Thank you!!
-Ryan
This e-mail message is being sent solely for use by the intended
recipient(s) and may contain confidential information. Any
unauthorized review, use, disclosure or distribution is prohibited. If
you are not the intended recipient, please contact the sender by phone
or reply by e-mail, delete the original message and destroy all
copies. Thank you.
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users