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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049543
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POScriticalhave not tried2022-06-13 17:292022-06-13 23:54
ReporterAugustoMauchView Statuspublic 
Assigned ToAugustoMauch 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049543: Error thrown after doing a relogin, caused by a bad management of the AvailableProductFilterRegistry

DescriptionThe AvailableProductFilterRegistry is a registry where we can enter buttons that will be available in the product search window.

The registry throws an error if two entries of the same type are registered. The problem is that because we register the entries when a user logs in and we don't ever reset the registry, the second time a user logs in the entries registered in the first login will be registered again, causing the error
Steps To ReproduceIn any react pos environment, in development mode:
- Login
- Logout
- Login again. An error will be thrown (see attached image)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
has duplicate defect 0049552 closedRetail FLUN-3084 - OBPOS2_Characteristic_SULPHITES error 

-  Notes
(0138318)
hgbot (developer)
2022-06-13 17:38

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1000 [^]
(0138326)
hgbot (developer)
2022-06-13 23:54

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: af16f32f8b295ded4144428e38af33b5c370566e
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 13-06-2022 23:48:57
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/af16f32f8b295ded4144428e38af33b5c370566e [^]

Fixes ISSUE-49543: Reset AvailableProductFilterRegistry on login

Because AvailableProductFilterRegistry entries are added on login, we
need to reset it before in order to prevent errors due to the registration of already registered entries

---
M web-jspack/org.openbravo.pos2/src/authentication/loginInitActions.js
M web-jspack/org.openbravo.pos2/src/ob-init.js
---
(0138327)
hgbot (developer)
2022-06-13 23:54

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1000 [^]

- Issue History
Date Modified Username Field Change
2022-06-13 17:29 AugustoMauch New Issue
2022-06-13 17:29 AugustoMauch Assigned To => Retail
2022-06-13 17:29 AugustoMauch Triggers an Emergency Pack => No
2022-06-13 17:29 AugustoMauch Assigned To Retail => AugustoMauch
2022-06-13 17:29 AugustoMauch Status new => scheduled
2022-06-13 17:38 hgbot Note Added: 0138318
2022-06-13 23:54 hgbot Resolution open => fixed
2022-06-13 23:54 hgbot Status scheduled => closed
2022-06-13 23:54 hgbot Note Added: 0138326
2022-06-13 23:54 hgbot Note Added: 0138327
2022-06-27 16:31 AugustoMauch Relationship added has duplicate 0049552


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker