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) How reproducible: Always 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. Actual results: An error is shown on screen. Expected results: 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. See: https://github.com/zanata/zanata-server/pull/278
VERIFIED with Zanata version 3.2-SNAPSHOT (20131120-0038)