Openbravo Issue Tracking System - POS2
View Issue Details
0057416POS2POSpublic2024-12-10 16:462025-01-14 13:23
jinigo 
cberner 
normalmajorsometimes
closedfixed 
5
 
25Q2 
Pre packaging ( pi )
2024-11-18
pi
https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3025 [^]
No
0057416: When going offline and reloading, the error "Not config found for {"impaired":"False","handedness":"Right"}/1860/961" appears
When entering online, logging in, then going offline and reloading the page, the error 'Not config found for {"impaired":"False","handedness":"Right"}/1860/961' starts appearing and keeps showing for a while.

The problem seems to come from missing applicationMode in Session state, it is set to null when refreshing in offline mode.
1. Go to POS2
2. Login
3. Put the system offline
4. Reload the page

Expected results: POS2 continues to work correctly.
Actual results: 'Not config found for {"impaired":"False","handedness":"Right"}/1860/961' starts appearing and keeps showing for a while
No tags attached.
depends on backport 005761025Q1 closed cberner When going offline and reloading, the error "Not config found for {"impaired":"False","handedness":"Right"}/1860/961" appears 
causes defect 0057659 closed cberner Switching from POS to SCO with "Use POS User" option does not switch to SCO 
? Error after reload page offline.webm (3,034,912) 2024-12-10 16:46
https://issues.openbravo.com/file_download.php?file_id=20623&type=bug
Issue History
2024-12-10 16:46jinigoNew Issue
2024-12-10 16:46jinigoAssigned To => Retail
2024-12-10 16:46jinigoFile Added: Error after reload page offline.webm
2024-12-10 16:46jinigoRegression level => Pre packaging ( pi )
2024-12-10 16:46jinigoTriggers an Emergency Pack => No
2024-12-11 09:42jinigoRegression introduced in release => pi
2024-12-16 15:18guillermogilNote Added: 0173343
2024-12-17 06:58guillermogilStatusnew => acknowledged
2024-12-17 07:21SABARINATH PAssigned ToRetail => SABARINATH P
2024-12-17 07:21SABARINATH PStatusacknowledged => scheduled
2025-01-03 10:36cbernerNote Added: 0173819
2025-01-03 10:39guillermogilRegression date => 2024-11-18
2025-01-03 10:39guillermogilRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3025 [^]
2025-01-03 10:47cbernerNote Edited: 0173819bug_revision_view_page.php?bugnote_id=0173819#r28989
2025-01-03 10:48cbernerNote Edited: 0173819bug_revision_view_page.php?bugnote_id=0173819#r28990
2025-01-03 11:33cbernerNote Added: 0173821
2025-01-03 11:38cbernerDescription Updatedbug_revision_view_page.php?rev_id=28994#r28994
2025-01-03 11:38cbernerAssigned ToSABARINATH P => cberner
2025-01-03 14:35hgbotNote Added: 0173836
2025-01-03 14:36hgbotNote Added: 0173837
2025-01-10 11:45cbernerStatusscheduled => acknowledged
2025-01-10 11:45cbernerStatusacknowledged => scheduled
2025-01-13 13:55hgbotResolutionopen => fixed
2025-01-13 13:55hgbotStatusscheduled => closed
2025-01-13 13:55hgbotNote Added: 0174072
2025-01-13 13:55hgbotFixed in Version => 25Q2
2025-01-13 13:55hgbotNote Added: 0174073
2025-01-13 13:55hgbotNote Added: 0174074
2025-01-13 13:55hgbotNote Added: 0174075
2025-01-14 10:22hgbotNote Added: 0174115
2025-01-14 10:23hgbotNote Added: 0174116
2025-01-14 13:23hgbotNote Added: 0174144
2025-01-14 13:23hgbotNote Added: 0174145
2025-01-14 13:23hgbotNote Added: 0174146
2025-01-14 13:23hgbotNote Added: 0174147
2025-01-16 12:05alostaleRelationship addedcauses 0057659

Notes
(0173343)
guillermogil   
2024-12-16 15:18   
Reproduced only in retail_pos2_modules_pgsql
(0173819)
cberner   
2025-01-03 10:36   
(edited on: 2025-01-03 10:48)
It seems to be failing since this MR has been merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.selfcheckout/-/merge_requests/115 [^]

The failing config is this one: OBPOS2_SearchCustomerDataContent, which corresponds with this file: SearchCustomerDataContent.config.json

In particular, it seems that by adding the config value for the SCO configuration, it broke with this issue.

If removing this entry in registerConfigurations.js, it works as expected:
    .registerConfigurationValue(
      'OBPOS2_SearchCustomerDataContent',
      'sco',
      SearchCustomerDataContentConfig
    );


A proper solution should be investigated, check other configurations that are similar and have sco values.

(0173821)
cberner   
2025-01-03 11:33   
Actually, it seems the configurations are registered properly, there is a problem in the isValidConfig check done in core2. It fails in offline, due to missing applicationMode in state.Session model.
(0173836)
hgbot   
2025-01-03 14:35   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1708 [^]
(0173837)
hgbot   
2025-01-03 14:36   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/793 [^]
(0174072)
hgbot   
2025-01-13 13:55   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1708 [^]
(0174073)
hgbot   
2025-01-13 13:55   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 23469ecab2b83e4c1d8ed39b906c91a2abcee52b
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 13-01-2025 12:54:40
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/23469ecab2b83e4c1d8ed39b906c91a2abcee52b [^]

Fixes ISSUE-57416: ApplicationMode is missing from Session state when reloading while offline

This fixes the issue by properly saving the applicationMode in offline
user and session models.

---
M web-jspack/org.openbravo.core2/src/core/authentication/LoginProcess.js
M web-jspack/org.openbravo.core2/src/core/authentication/RestoreSession.js
M web-jspack/org.openbravo.core2/src/model/session/actions/SetSession.js
---
(0174074)
hgbot   
2025-01-13 13:55   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/793 [^]
(0174075)
hgbot   
2025-01-13 13:55   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: b00ecf551549d1c36302f9521e6073c9991eac7f
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 13-01-2025 10:25:37
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/b00ecf551549d1c36302f9521e6073c9991eac7f [^]

Related to ISSUE-57416: Keep application mode in IndexedDB Session model

---
M web/org.openbravo.mobile.core/app/model/login/OfflineSession.js
---
(0174115)
hgbot   
2025-01-14 10:22   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1716 [^]
(0174116)
hgbot   
2025-01-14 10:23   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/799 [^]
(0174144)
hgbot   
2025-01-14 13:23   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/799 [^]
(0174145)
hgbot   
2025-01-14 13:23   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 87733dfc8bd9dfa59f1f7cd21c4f8b6b1efa91eb
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 14-01-2025 10:21:07
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/87733dfc8bd9dfa59f1f7cd21c4f8b6b1efa91eb [^]

Related to ISSUE-57416: Fix session not being updated when appMode changes

---
M web/org.openbravo.mobile.core/app/model/login/OfflineSession.js
---
(0174146)
hgbot   
2025-01-14 13:23   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 5ba927db61060ab1c2a8029272084a2e42979e1a
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 14-01-2025 11:47:32
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/5ba927db61060ab1c2a8029272084a2e42979e1a [^]

Related to ISSUE-57416: Reorder which appmode is prioritary to use, state should be first

---
M web-jspack/org.openbravo.core2/src/core/authentication/LoginProcess.js
M web-jspack/org.openbravo.core2/src/core/authentication/__test__/LoginProcess.test.js
---
(0174147)
hgbot   
2025-01-14 13:23   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1716 [^]