Bug 1184487 - Missing conflict dialog for jBPM Designer
Summary: Missing conflict dialog for jBPM Designer
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Designer
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: CR1
: 6.1.0
Assignee: Pere Fernàndez
QA Contact: Sona Mala
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-21 14:19 UTC by Sona Mala
Modified: 2020-03-27 19:38 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:38:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1159238 0 high CLOSED Overview tab missing in Designer 2021-02-22 00:41:40 UTC

Internal Links: 1159238

Description Sona Mala 2015-01-21 14:19:02 UTC
Description of problem:
In 6.1.0 ER3, the functionality of the conflict dialog was fixed. Unfortunately, 6.1.0 ER4 does not show the conflict dialog any more. There is no issue which require its removing.

My opinion is that the commit [1] which fixed bz 1159238 brokes this functionality. Can you investigate it?

[1] https://github.com/droolsjbpm/jbpm-designer/commit/be97a9034



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

Steps to Reproduce:
1. Open two browsers window
2. Login as 'user1' in the first window
3. Login as 'user2' in the second window
4. user1: create BP 'test'
5. user1: create process 'Start -> Task -> End'
6. user1: save process
7. user1: transfor Task to Manual Task and save a process
8. user2: Open BP 'test'
9. user2: delete End event and create this process 'Start -> Manual Task -> Task2 -> End'
10. user2: save
11: user1: transform End event to Termination End event
12: user1: save

Actual results:
No Conflict Dialog is displayed. user1 rewritten user2's work. The version history allows to restore it.


Expected results:
The conflict dialog is displayed which says that 'user2' modified 'process location'. Options are "Force Save", "Reopen".


Additional info:
Issues which was fixed in 6.1.0 ER3:
  - bz 1111406
  - bz 1140695

Comment 1 Toni Rikkola 2015-01-28 13:08:53 UTC
Looks like we had two concurrentUpdateSessionInfo fields. One in DesignerPresenter and other in BaseEditor. If there was concurrent edits we did set the other, but when comparing if there has been any concurrent edits, we used the one that was not set.

master:
https://github.com/droolsjbpm/jbpm-designer/commit/915407d1b

6.2.x:
https://github.com/droolsjbpm/jbpm-designer/commit/4b70b1b98

Comment 2 Sona Mala 2015-02-18 09:58:28 UTC
I confirm that the conflict editor is present in 6.1.0 ER5. Unfortunately, it causes regressions. See bz 1111406 and bz 1140695 which were fixed in 6.1.0 ER3 and its functionality was broken by commit:

https://github.com/droolsjbpm/jbpm-designer/commit/be97a9034

I assigned this issue because the state of ER5 is not same as the state of ER3. The both regression were mentioned in Description.

Comment 3 Pere Fernàndez 2015-02-27 15:49:35 UTC
The problem is that the Commit wasn't holding the sessionId and that made impossible for the platform to determine who edited the process. So the concurrent update event was fired for all the users that where editing the process (included the one that did the commit).

To fix that, the sessionId is sent to the designer so a correct commit message with a valid sessionId can be created.

Commit (master): https://github.com/droolsjbpm/jbpm-designer/commit/bc1341422df74e6d4efe7335737a2740b4697edd

Comment 4 Pere Fernàndez 2015-03-04 13:48:47 UTC
Cherry-piked to 6.2.x branch.

Commit (6.2.x): https://github.com/droolsjbpm/jbpm-designer/commit/4e44ed3aa53bdda37fac8ffcbeed3eb98f88d5a1

Comment 5 Sona Mala 2015-03-30 07:36:46 UTC
This issue was verified on 6.1.0 CR1.

The conflict dialog has the expected behaviour.


Note You need to log in before you can comment on or make changes to this bug.