Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0056377 | POS2 | Core | public | 2024-09-05 11:56 | 2025-02-23 18:44 |
|
Reporter | AugustoMauch | |
Assigned To | AugustoMauch | |
Priority | normal | Severity | critical | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | approved |
Review Assigned To | |
OBNetwork customer | No |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0056377: Management of inconsistent application state should be properly addressed in core2 applications |
Description | From time to time, the application state gets inconsistent, apparently not reflecting the current state of the application but a previous one.
We looking for those inconsistencies on a case-to-case basis, and introducing mitigation measures on a case-to-case basis as well.
This mechanism should be improved, so that if any inconsistency is found, all the application state modules should be re-initialized properly. |
Steps To Reproduce | - |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0057963 | 25Q1 | closed | AugustoMauch | POS2 | Management of inconsistent application state should be properly addressed in core2 applications | depends on | backport | 0057964 | 24Q4.1 | closed | AugustoMauch | POS2 | Management of inconsistent application state should be properly addressed in core2 applications | related to | feature request | 0056730 | | closed | ranjith_qualiantech_com | POS2 | Management of inconsistent application state should be properly addressed in EnyoPOS | related to | feature request | 0054707 | | new | AugustoMauch | Retail Modules | Add support to select the state persistence method (localstorage vs indexed db) | related to | defect | 0054743 | | closed | sreehari | Retail Modules | When the state persistence fails, the information of the cashup becomes outdated, and this can lead to data corruption | related to | defect | 0056263 | | closed | ranjith_qualiantech_com | Retail Modules | Mitigation https://issues.openbravo.com/view.php?id=52070 [^] should not create a new cashup in POS | related to | backport | 0052070 | 23Q2 | closed | meriem_azaf | POS2 | Cashup mitigation: do not check if current cashup is the last one processed, just check if it is processed | related to | defect | 0056246 | | closed | sreehari | POS2 | Implement second Mitigation for duplicating document sequence number | related to | backport | 0057438 | | closed | AugustoMauch | POS2 | Management of inconsistent application state should be properly addressed in core2 applications | causes | defect | 0058004 | | closed | cberner | POS2 | Login blocked because of an error related to an inconsistent state | causes | defect | 0058000 | | closed | cberner | POS2 | POS2 is blocked after a logout and login with an Order loaded |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2024-09-05 11:56 | AugustoMauch | New Issue | |
2024-09-05 11:56 | AugustoMauch | Assigned To | => AugustoMauch |
2024-09-05 11:56 | AugustoMauch | OBNetwork customer | => No |
2024-09-05 11:56 | AugustoMauch | Triggers an Emergency Pack | => No |
2024-09-05 12:03 | AugustoMauch | Status | new => scheduled |
2024-09-17 09:23 | Practics | Issue Monitored: Practics | |
2024-10-06 12:55 | hgbot | Merge Request Status | => open |
2024-10-06 12:55 | hgbot | Note Added: 0170023 | |
2024-10-06 12:57 | hgbot | Note Added: 0170024 | |
2024-10-06 13:00 | hgbot | Note Added: 0170025 | |
2024-10-10 11:51 | AugustoMauch | Summary | Management of inconsistent application state should be properly addressed => Management of inconsistent application state should be properly addressed in core2 applications |
2024-10-10 11:52 | AugustoMauch | Issue cloned | 0056730 |
2024-10-10 11:55 | AugustoMauch | Relationship added | related to 0056730 |
2024-10-10 13:26 | eugeni | Issue Monitored: eugeni | |
2024-10-31 13:04 | malsasua | Relationship added | related to 0054707 |
2024-10-31 13:10 | malsasua | Relationship added | related to 0054743 |
2024-10-31 13:10 | malsasua | Relationship added | related to 0056263 |
2024-10-31 13:11 | malsasua | Relationship added | related to 0052070 |
2024-10-31 13:17 | malsasua | Relationship added | related to 0056246 |
2024-11-12 23:44 | hgbot | Note Added: 0171833 | |
2024-11-14 11:42 | hgbot | Merge Request Status | open => approved |
2024-12-12 11:42 | AugustoMauch | Issue cloned | 0057438 |
2024-12-12 11:42 | AugustoMauch | Relationship added | related to 0057438 |
2025-02-12 23:20 | hgbot | Note Added: 0175550 | |
2025-02-12 23:20 | hgbot | Note Added: 0175551 | |
2025-02-12 23:23 | hgbot | Resolution | open => fixed |
2025-02-12 23:23 | hgbot | Status | scheduled => closed |
2025-02-12 23:23 | hgbot | Fixed in Version | => RR25Q2 |
2025-02-12 23:23 | hgbot | Note Added: 0175552 | |
2025-02-12 23:23 | hgbot | Note Added: 0175553 | |
2025-02-12 23:24 | hgbot | Note Added: 0175554 | |
2025-02-12 23:24 | hgbot | Note Added: 0175555 | |
2025-02-12 23:25 | hgbot | Fixed in Version | RR25Q2 => 25Q2 |
2025-02-12 23:25 | hgbot | Note Added: 0175556 | |
2025-02-12 23:25 | hgbot | Note Added: 0175557 | |
2025-02-12 23:25 | AugustoMauch | Status | closed => new |
2025-02-12 23:25 | AugustoMauch | Resolution | fixed => open |
2025-02-12 23:25 | AugustoMauch | Fixed in Version | 25Q2 => |
2025-02-12 23:25 | AugustoMauch | Status | new => scheduled |
2025-02-13 10:02 | hgbot | Note Added: 0175578 | |
2025-02-13 10:14 | AugustoMauch | Status | scheduled => resolved |
2025-02-13 10:14 | AugustoMauch | Resolution | open => fixed |
2025-02-13 10:14 | AugustoMauch | Status | resolved => closed |
2025-02-17 14:00 | cberner | Relationship added | causes 0058004 |
2025-02-18 10:16 | cberner | Relationship added | causes 0058000 |
2025-02-23 18:44 | hgbot | Note Added: 0176037 | |
Notes |
|
(0170023)
|
hgbot
|
2024-10-06 12:55
|
|
|
|
(0170024)
|
hgbot
|
2024-10-06 12:57
|
|
|
|
(0170025)
|
hgbot
|
2024-10-06 13:00
|
|
|
|
(0171833)
|
hgbot
|
2024-11-12 23:44
|
|
|
|
(0175550)
|
hgbot
|
2025-02-12 23:20
|
|
|
|
(0175551)
|
hgbot
|
2025-02-12 23:20
|
|
|
|
(0175552)
|
hgbot
|
2025-02-12 23:23
|
|
|
|
(0175553)
|
hgbot
|
2025-02-12 23:23
|
|
|
|
(0175554)
|
hgbot
|
2025-02-12 23:24
|
|
|
|
(0175555)
|
hgbot
|
2025-02-12 23:24
|
|
|
|
(0175556)
|
hgbot
|
2025-02-12 23:25
|
|
|
|
(0175557)
|
hgbot
|
2025-02-12 23:25
|
|
|
|
(0175578)
|
hgbot
|
2025-02-13 10:02
|
|
|
|
(0176037)
|
hgbot
|
2025-02-23 18:44
|
|
Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 92e0ba54f465b627a1acb80b211bbdb682be2bec
Author: Augusto Mauch <a.mauch@orisha.com>
Date: 23-02-2025 18:18:56
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/commit/92e0ba54f465b627a1acb80b211bbdb682be2bec [^]
Fixes ISSUE-57963: Global mitigation of state related problems
On each login, the local state is checked, and if it is determined that the state is not valid, it will
be reset.
This code references non-core2 concepts (Ticket, Cashup). It was done intentionally, this code should be
temporary and be removed once we find out the root cause of the back-to-the-past state problems. Instead
of implementing some infra to be able to add the relevant portion of the state to the request payload, it
is hardcoded for now
[stateMitigation] Adds missing adminMode when checking the state validity
[stateMitigation] Properly fail when in offline mode the stateValidity request
[stateMitigation] Use OB.App.reload api instead of manual location reload
Related to ISSUE-56377: Fixes test
Fixes ISSUE-58004: Login blocked because of an error related to an inconsistent state
The checkStateValidity function was not taking into account empty ticket
object or a missing cashup id.
---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web-jspack/org.openbravo.core2/src/authentication/loginInitActions.js
---
|
|