View Issue Details

IDProjectCategoryView StatusLast Update
0026466mantisbtfeaturepublic2022-10-31 11:23
Reportergreentoothbrush Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformWindowsOSWindowsOS Version10
Product Version2.22.1 
Summary0026466: Updates are lost in race condition
Description

This is a known issue and appears to be accepted as part of the fix for https://www.mantisbt.org/bugs/view.php?id=5466
"mid air collision" - Whoever submits last loses.

Would it be possible to display the text entered as part of the error message?

This would only be required for (non-custom) fields that could contain significant updates:
Description
Steps To Reproduce
Additional Information
Add Note

This could be concatenated into one block and then the user can cut it hit back and paste it as required.

Steps To Reproduce
  1. Foo opens an issue and edits.
  2. Bar opens the same issue and edits.
  3. Foo submits the changes.*
  4. Bar also submits the changes.
  5. Bar's gets APPLICATION ERROR #1105 and has lost all their changes
  6. Bar gets annoyed and starts bad mouthing the product.

*If Bar submits first then Foo loses

Additional Information

This was happening quite regularly.
We have processes in place to avoid this locally
We want to roll out Mantis across multiple sites; this is blocking.

TagsNo tags attached.

Relationships

has duplicate 0026605 closedatrol Note lost on conflict if attaching at the same time 

Activities

greentoothbrush

greentoothbrush

2019-12-12 09:51

reporter   ~0063262

Something like "dont_lose_my_work_pls.png"

dont_lose_my_work_pls.png (60,200 bytes)   
dont_lose_my_work_pls.png (60,200 bytes)   
greentoothbrush

greentoothbrush

2019-12-17 11:03

reporter   ~0063290

This would only be required for (non-custom) fields that could contain significant updates:
Description
Steps To Reproduce
Additional Information
Add Note

This could be concatenated into one block and then the user can cut it hit back and paste it as required.
As shown in https://www.mantisbt.org/bugs/file_download.php?file_id=8904&type=bug

GunSmoker

GunSmoker

2019-12-25 07:34

reporter   ~0063336

Offtopic: If you are using Chrome and press Back button - all texts will still be there.

greentoothbrush

greentoothbrush

2020-01-07 05:26

reporter   ~0063375

@GunSmoker - Back does not appear to work as suggested, Version 79.0.3945.88 (Official Build) (64-bit)

data_lost_on _back.PNG (13,436 bytes)   
data_lost_on _back.PNG (13,436 bytes)   
pramsent

pramsent

2022-10-31 11:23

reporter   ~0067116

What about this solution? The second saver would get a message, that he will be overwritting something and should check in history. but nothing is lost. back no longer works in the browser.

<code>
if( $t_existing_bug->last_updated != $t_updated_bug->last_updated ) {
// trigger_error( ERROR_BUG_CONFLICTING_EDIT, ERROR );
helper_ensure_confirmed( lang_get( 'warning_issue_changed_msg'), lang_get( 'warning_issue_changed_button' ));
</code>