Red Hat Bugzilla – Bug 1031468
Project default Copy Trans options cannot be changed
Last modified: 2014-02-18 01:48:25 EST
Description of problem:
A user is not able to modify the default project copy trans options because of a NonUniqueOjectException.
Version-Release number of selected component (if applicable):
3.1 (maybe earlier)
Steps to Reproduce:
1. Log in and head to a project where the user has maintainer privileges.
2. Click on Copy Trans Options.
3. Modify the options
4. Click save.
An error is shown on screen.
The options are saved and a nice info message is shown.
This was caused by caching some hibernate entities in the view-scope. Solved it by removing that caching, and letting second level cache deal with that.
We should consider making the merge method from session/entity manager visible in the DAOs as this would have been another possible solution.
VERIFIED with Zanata version 3.2-SNAPSHOT (20131120-0038)