Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1073404

Summary: Local History in Designer is cleared when any exception is thrown during creation of new snapshot.
Product: [Retired] JBoss BPMS Platform 6 Reporter: Sona Mala <smala>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED EOL QA Contact: Kirill Gaevskii <kgaevski>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.1CC: kverlaen
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: 2020-03-27 19:04:26 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:
Attachments:
Description Flags
Screenshot - Alerts which informs about situation none

Description Sona Mala 2014-03-06 11:33:42 UTC
Created attachment 871359 [details]
Screenshot - Alerts which informs about situation

Description of problem:

Please see this code:
jbpm-designer-client/src/main/resources/org/jbpm/designer/public/js/Plugins/localhistory.js line #410 - 419 (function: addToHistory, block try-catch)

How you can see every time when some exception is thrown then local history is cleared. No matter which expection was thrown.

Sometimes I found an alert which message was "Local History quota exceeded. Clearing local history." Even if I get just 2 or 4 records and I work only 6 minutes.


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


Steps to Reproduce:
I am not able to find exactly step to reproduce it. I think that it happens when creation of snapshot fails.


Expected results:
Clear Local history even if it is necessary (not sure if there is any reason for clearing all history).

If an creation of snapshot fails, please leave history without changes and make another snapshot few seconds/minutes later.