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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0057689
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[POS2] Corecriticalhave not tried2025-01-16 11:512025-01-20 13:03
ReportercbernerView Statuspublic 
Assigned Tocberner 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version25Q1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression levelPackaging and release
Regression date2025-01-03
Regression introduced in release
Regression introduced by commithttps://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/23469ecab2b83e4c1d8ed39b906c91a2abcee52b [^]
Triggers an Emergency PackNo
Summary

0057689: Switching from POS to SCO with "Use POS User" option does not switch to SCO

DescriptionThe switch from POS to SCO fails to work when the option selected for Login Method in Backoffice is set to "Use POS User".

The application refreshes and the application mode is the same as before, POS.
Steps To Reproduce1. Login in backoffice as White Valley Group Admin
2. Go to SCO Configuration window, and open sco-config record
3. Change Login Method under Access and Log In to "Use POS User"
4. Open the POS and login as vallblanca user.
5. Execute Refresh Masterdata under setting if a masterdata refresh didn't happen
6. Click on the Switch to SCO button, on the top right part of the application

Check that there's a refresh, but no switch has been performed
Proposed SolutionUpsert the session information when switching mode without login. As of now it is only upserted on login, so the session info saved in indexedDB is not completely accurate with what was changed in the local state.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0057659 closedcberner Switching from POS to SCO with "Use POS User" option does not switch to SCO 

-  Notes
(0174381)
hgbot (developer)
2025-01-20 11:58

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.selfcheckout/-/merge_requests/138 [^]
(0174398)
hgbot (developer)
2025-01-20 13:03

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.selfcheckout/-/merge_requests/138 [^]
(0174399)
hgbot (developer)
2025-01-20 13:03

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.selfcheckout [^]
Changeset: 3753272ddd89dea34b0755968e90fa801a3204ad
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 20-01-2025 11:57:32
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.selfcheckout/-/commit/3753272ddd89dea34b0755968e90fa801a3204ad [^]

Fixes ISSUE-57689: Switching from POS to SCO with "Use POS User" option does not switch to SCO

The problem is that the saved session in indexedDB was not updated with
the changed value in local state. Once the refresh is performed, the
wrong value was retrieved.

---
M web-jspack/org.openbravo.pos2.selfcheckout/src/model/sco-mode/SwitchUserFunctions.js
---

- Issue History
Date Modified Username Field Change
2025-01-20 11:56 cberner Type defect => backport
2025-01-20 11:56 cberner Target Version => 25Q1
2025-01-20 11:58 hgbot Note Added: 0174381
2025-01-20 13:03 hgbot Note Added: 0174398
2025-01-20 13:03 hgbot Resolution open => fixed
2025-01-20 13:03 hgbot Status scheduled => closed
2025-01-20 13:03 hgbot Note Added: 0174399


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker