> Components: Web - WebWork
> Versions: 1.9.2
> Reporter: Scott Hong
> Assignee: Matt Raible
> Fix For: 1.9.3
> There is one strange behavior when the user profile is updated.
> module: AppFuse+Webwork
> How to re-create this bug:
> 1. Login as tomcat and go to edit my profile
> http://localhost:8080/appfuse/editProfile.html > 2. Change the email field from
> [hidden email] to [hidden email] > Since [hidden email] already exists, an error message will be shown as:
> This username (tomcat) or e-mail address ([hidden email]) already exists. Please try a different username.
> 3. Change the email field again to any other valid email address and the
> "Data Access Failure" occurs which gives the following error message.
> Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.appfuse.model.User#tomcat]; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.appfuse.model.User#tomcat]
> It seems that this behavior is not desired and should be fixed.
> In general, if the email field is first changed to something that already exists in the
> database, after the error occurs, anything modification to the email field, updating
> the user again will always cause "Data Access Failure".
> More details in the following thread.