Bug 869623

Summary: GUI out of sync with database after creating topic then editing it
Product: [Community] PressGang CCMS Reporter: Joshua Wulf <jwulf>
Component: Web-UIAssignee: pressgang-ccms-dev
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0CC: lcarlon, lnewson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-01 23:36:08 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 Joshua Wulf 2012-10-24 12:39:50 UTC
/Topic.xhtml

I created a topic.

I then went to the topic using the quick search box at the top of the screen.

I then edited the topic.

I got the angry Terminator.

I punched in the topic number to the quick search box.

I then arrived at the topic. My changes had been saved, but my original topic text was gone, and the drop-down box showed me one revision only.

So my original topic text was lost. Didn't have a revision created for it by the look of it.

Comment 1 Joshua Wulf 2012-10-24 12:43:46 UTC
I clicked on "Edit Latest Version"

The topic opened with my original text in it.

I made the change again, then saved it.

This time a revision was created.

It appears that it was not persisted on the first edit, and although the new text was displayed in the interface, the old text was the text in the database.

It's topic 12095.

Comment 2 Lee Newson 2012-10-24 22:08:53 UTC
This is an issue with how seam works when a transaction fails (from my knowledge). Essentially it keeps the Java Bean as it was before the failure and disconnects from the Persistence Context (as normally happens when a transaction is rolled back). I'm fairly sure that the error message indicates that you should relog, I'll double check that though.

Comment 3 Lee Newson 2012-11-29 12:16:38 UTC
Fixed in build 20121123-1253.

I've updated all error messages I could find. I also found an issue where the seam conversation wouldn't end when some Exceptions occurred. This was more then likely what was causing the main issue as if the conversation remains active it'll try to use the database connection that has been rolled back and disconnected.