Bug 1222710

Summary: Editor option save fails due to ClassCastException
Product: [Retired] Zanata Reporter: David Mason <damason>
Component: Component-UIAssignee: Alex Eng <aeng>
Status: CLOSED CURRENTRELEASE QA Contact: Damian Jansen <djansen>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.6CC: dchen, djansen, zanata-bugs
Target Milestone: ---   
Target Release: 3.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.7.0-SNAPSHOT (git-jenkins-zanata-server-github-pull-requests-3600) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-22 02:19:56 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:
Attachments:
Description Flags
Stack trace on server when a user tries to save editor options. none

Description David Mason 2015-05-18 21:54:43 UTC
Created attachment 1026885 [details]
Stack trace on server when a user tries to save editor options.

Description of problem:
When save button is clicked in editor options panel, a warning message is shown with "Could not save user options". The stack trace on the server shows a ClassCastException trying to cast from

    org.hibernate.action.internal.EntityIdentityInsertAction
    org.hibernate.action.internal.EntityInsertAction


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


How reproducible:
Easy, always

Steps to Reproduce:
1. Sign in and open the editor for any document
2. Expand the user options panel
3. Click "Save" at the bottom of the user options panel

Actual results:
Message shows "Could not save user options"


Expected results:
User options save successfully and can be restored by clicking "Load"

Additional info:
Stack trace from the server is attached.

Comment 1 Alex Eng 2015-05-18 22:55:57 UTC
PR: https://github.com/zanata/zanata-server/pull/821

Comment 2 Damian Jansen 2015-05-20 04:59:17 UTC
Verified at cac387508126917ba1af248332369679fc462d45