Stripes

NPE decrypting null value with @Validate(encrypted=true)

Details

Description

From the users mailing list...

Hi Christian,

I guess the value of the field was null when it's rendered, wasn't it?
It seems that encrypted field must have a non-null value when it is
rendered.

In my last project, I removed the field when the value is null to
workaround the issue.

<c:if test="${!empty actionBean.user.id}">
<stripes:hidden name="user.id" />
</c:if>


IMHO, it would be nice if null value is encrypted in the same way as
normal value because I often use the same form for both editing an
existing instance and creating a new instance (as most of you, I suppose).
Any thoughts?

Regards,
Iwao

Activity

Ben Gunter made changes - 03/Mar/08 10:32 AM
Field Original Value New Value
Assignee Ben Gunter [ bengunter ]
Ryan Stuart made changes - 06/Mar/08 12:51 AM
Attachment stripes-STS-521.patch [ 10232 ]
Ben Gunter made changes - 26/Mar/08 10:11 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Frederic Daoud made changes - 15/Feb/09 8:44 AM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Frederic Daoud made changes - 15/Feb/09 12:40 PM
Status Reopened [ 4 ] Resolved [ 5 ]
Fix Version/s Release 1.5.1 [ 10100 ]
Fix Version/s Release 1.6 [ 10090 ]
Fix Version/s Release 1.5 [ 10043 ]
Resolution Fixed [ 1 ]
Ben Gunter made changes - 04/Jan/11 3:15 PM
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    03/Mar/08 10:30 AM
    Updated:
    04/Jan/11 3:15 PM
    Resolved:
    15/Feb/09 12:40 PM