Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0035389
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Z. Othersmajoralways2017-02-28 19:152024-08-09 14:33
Reportergnudebian1991View Statuspublic 
Assigned ToAtulOpenbravo 
PriorityhighResolutionopenFixed in Version
StatusscheduledFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionProfessional ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionmainSCM revision 
Review Assigned To
Web browserGoogle Chrome
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0035389: Concurrent modification of the same Sales Order by two different users can lead to inconsistent data

DescriptionIf two different users access the same Sales Order record and do the following:

 -First user enters a new product line and saves the record.This action modifies the Total Gross Amount and Total Net Amount of the header but doesnt update the updated column of the header.
 -Second user edits any field of the header and saves the record. Since this user didnt refresh before editing he has the old values for Total Gross Amount and Total Net Amount, this action will overwrite these values.

This will produce inconsistent data since the sum of the order lines doesnt equal the amounts shown in the header.

This happens because the updated column of all the tables doesnt get updated if the change comes from database triggers. The StaleDate validation in JsonToDataConverted.java doesnt support this case.
Steps To Reproduce1.-Create a new sales order and save.
2.-Enter the sales order header in form mode with a web browser.
3.-Enter the sales order header in form mode with another web browser.
4.-In the first web browser enter a new line and save.
5.-In the second web browser change the Order Reference in the header and save.

If we refresh the sales order we can see Total Gross Amount=0 and Total Net Amount=0 but we have one line with amounts.
TagsNo tags attached.
Attached Filesdiff file icon FixesIssue35389.diff [^] (5,024 bytes) 2024-08-09 14:33 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0099922)
AtulOpenbravo (developer)
2017-10-17 04:49

- Login as F&B International Group Admin
- Create a new sales order header and save.
- Open the sales order header in form view in a web browser.
- Open previous sales order header in form view in another web browser.
- In the first web browser, add a new line to previous order and save.
- In the second web browser change the Order Reference field in the header and try to save it.
- Error message is shown as
  Error
  Saving failed. The record you are saving has already been changed by another user or process. Cancel your changes and refresh the data by clicking the refresh button.

- Login as F&B International Group Admin
- Create a new sales invoice header and save.
- Open the sales invoice header in form view in a web browser.
- Open previous sales invoice header in form view in another web browser.
- In the first web browser, add a new line to previous invoice and save.
- In the second web browser change the Description field in the header and try to save it.
- Error message is shown as
  Error
  Saving failed. The record you are saving has already been changed by another user or process. Cancel your changes and refresh the data by clicking the refresh button.

- Login as F&B International Group Admin
- Create a new sales invoice header and save.
- Open the sales invoice header in form view in a web browser.
- Open previous sales invoice header in form view in another web browser.
- In the first web browser, add a new line to previous invoice and save.
- Navigate to Tax Tab, add a tax line, set Taxable Amount and Tax Amount.
- In the second web browser change the Description field in the header and try to save it.
- Error message is shown as
  Error
  Saving failed. The record you are saving has already been changed by another user or process. Cancel your changes and refresh the data by clicking the refresh button.
(0167926)
aferraz (manager)
2024-08-09 14:33

Changing severity to major following https://wiki.openbravo.com/wiki/Bug_Reporting_Guidelines#How_to_Choose_the_Right_Severity [^]
(0167927)
aferraz (manager)
2024-08-09 14:33

Attached a possible fix.

- Issue History
Date Modified Username Field Change
2017-02-28 19:15 gnudebian1991 New Issue
2017-02-28 19:15 gnudebian1991 Assigned To => Triage Finance
2017-02-28 19:15 gnudebian1991 Web browser => Google Chrome
2017-02-28 19:15 gnudebian1991 Modules => Core
2017-02-28 19:15 gnudebian1991 Triggers an Emergency Pack => No
2017-03-06 12:58 maite Web browser Google Chrome => Google Chrome
2017-10-13 10:34 dmiguelez Assigned To Triage Finance => AtulOpenbravo
2017-10-17 04:08 AtulOpenbravo Status new => scheduled
2017-10-17 04:49 AtulOpenbravo Note Added: 0099922
2024-08-09 14:33 aferraz Web browser Google Chrome => Google Chrome
2024-08-09 14:33 aferraz Note Added: 0167926
2024-08-09 14:33 aferraz Severity critical => major
2024-08-09 14:33 aferraz Note Added: 0167927
2024-08-09 14:33 aferraz File Added: FixesIssue35389.diff


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker