Bug 891485

Summary: Removing a locale member causes a RecordNotFound error
Product: [Retired] Zanata Reporter: Carlos Munoz <camunoz>
Component: Component-LogicAssignee: Carlos Munoz <camunoz>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.0CC: zanata-bugs
Target Milestone: ---   
Target Release: 2.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 2.1-SNAPSHOT (20130107-1432) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-26 04:06:21 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:

Description Carlos Munoz 2013-01-03 06:07:00 UTC
Description of problem:
When removing a locale member, a RecordNotFoundException is generated. The record itself is removed and the error disappears after a while, but it seems to affect other areas of the application. 

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

How reproducible:
Always

Steps to Reproduce:
1. Go to the Languages page and select a language. (User must be either the language coordinator or an admin)
2. Try to remove a Language member.
  
Actual results:
A "Record not Found" error appears, and will continue to appear whenever the languages page is accessed. It can also been seen in other area of the application like when selecting a project from the projects' page.

Expected results:
User is removed from the language and a message appears informing of the change.

Comment 2 Carlos Munoz 2013-01-07 00:55:17 UTC
Changed the way HLocaleMember entities are removed. This might be a problem in our current version of Hibernate and composite primary keys, and it's worth a look after upgrading to the latest version of Hibernate.

See:
https://github.com/zanata/zanata/commit/c3b577abdd41379fd559fabd4cb3f39845a3ebe7

Comment 3 Ding-Yi Chen 2013-01-07 04:44:37 UTC
VERIFIED with Zanata version 2.1-SNAPSHOT (20130107-1432)