Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 987707

Summary: Regression: Reset Password feature broken (org.hibernate.HibernateException)
Product: [Retired] Zanata Reporter: Damian Jansen <djansen>
Component: Authentication-InternalAssignee: Carlos Munoz <camunoz>
Status: CLOSED CURRENTRELEASE QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: high Docs Contact:
Priority: high    
Version: developmentCC: camunoz, zanata-bugs
Target Milestone: ---   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-27 03:23:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 994362    
Attachments:
Description Flags
Reset Password Exception none

Description Damian Jansen 2013-07-23 23:45:15 UTC
Created attachment 777521 [details]
Reset Password Exception

Description of problem:
The Forgot Password form has broken. It now gives the user an "unexpected error" and prints an exception.

Version-Release number of selected component (if applicable):
Dev

How reproducible:
Easy always

Steps to Reproduce:
1. Click Sign in
2. Click Forgot Password?
3. Enter a valid Username + email combination
4. Press Submit

Actual results:

> Current Errors:
>      Unexpected error. Please try again. [ Request: ? ]

Expected results:
A message indicating an email has been sent to the user to confirm the request.

Additional info:
Attached exception from stdout

Comment 1 Carlos Munoz 2013-08-08 04:37:16 UTC
A query by natural Id was being done on an entity with no natural Id. Apparently previous versions of hibernate allowed that, but the most recent one doesn't.

Checked that uniqueness constraints are maintained by the database.

See:
https://github.com/zanata/zanata-server/commit/39fbd6d455cfc2d64f611f344feaad64701ddd79
https://github.com/zanata/zanata-server/commit/e9717d26d96269893f8fa25296402d30d590eea6

Comment 2 Damian Jansen 2013-08-09 03:26:35 UTC
Verified at be36d87e795bb0b5401f8bb233de339d7927aba8

Comment 3 Sean Flanigan 2013-11-27 03:14:00 UTC
Closing VERIFIED bugs for Zanata versions <= 3.1.

Comment 4 Sean Flanigan 2013-11-27 03:15:52 UTC
Closing VERIFIED bugs for Zanata versions <= 3.1.

Comment 5 Sean Flanigan 2013-11-27 03:19:27 UTC
Closing VERIFIED bugs for Zanata versions <= 3.1.

Comment 6 Sean Flanigan 2013-11-27 03:23:47 UTC
Closing VERIFIED bugs for Zanata versions <= 3.1.

Comment 7 Sean Flanigan 2013-11-27 03:34:13 UTC
Closing VERIFIED bugs for Zanata versions <= 3.1.

Comment 8 Sean Flanigan 2013-11-27 03:36:23 UTC
Closing VERIFIED bugs for Zanata versions <= 3.1.