Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0057416 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [POS2] POS | major | sometimes | 2024-12-10 16:46 | 2025-01-14 13:23 | |||
Reporter | jinigo | View Status | public | |||||
Assigned To | cberner | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 25Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Regression level | Pre packaging ( pi ) | |||||||
Regression date | 2024-11-18 | |||||||
Regression introduced in release | pi | |||||||
Regression introduced by commit | https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3025 [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0057416: When going offline and reloading, the error "Not config found for {"impaired":"False","handedness":"Right"}/1860/961" appears | |||||||
Description | 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. | |||||||
Steps To Reproduce | 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 | |||||||
Tags | No tags attached. | |||||||
Attached Files | Error after reload page offline.webm [^] (3,034,912 bytes) 2024-12-10 16:46 | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||
|
Notes | |
(0173343) guillermogil (developer) 2024-12-16 15:18 |
Reproduced only in retail_pos2_modules_pgsql |
(0173819) cberner (developer) 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 (developer) 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 (developer) 2025-01-03 14:35 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1708 [^] |
(0173837) hgbot (developer) 2025-01-03 14:36 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/793 [^] |
(0174072) hgbot (developer) 2025-01-13 13:55 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1708 [^] |
(0174073) hgbot (developer) 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 (developer) 2025-01-13 13:55 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/793 [^] |
(0174075) hgbot (developer) 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 (developer) 2025-01-14 10:22 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1716 [^] |
(0174116) hgbot (developer) 2025-01-14 10:23 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/799 [^] |
(0174144) hgbot (developer) 2025-01-14 13:23 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/799 [^] |
(0174145) hgbot (developer) 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 (developer) 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 (developer) 2025-01-14 13:23 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1716 [^] |
Issue History | |||
Date Modified | Username | Field | Change |
2024-12-10 16:46 | jinigo | New Issue | |
2024-12-10 16:46 | jinigo | Assigned To | => Retail |
2024-12-10 16:46 | jinigo | File Added: Error after reload page offline.webm | |
2024-12-10 16:46 | jinigo | Regression level | => Pre packaging ( pi ) |
2024-12-10 16:46 | jinigo | Triggers an Emergency Pack | => No |
2024-12-11 09:42 | jinigo | Regression introduced in release | => pi |
2024-12-16 15:18 | guillermogil | Note Added: 0173343 | |
2024-12-17 06:58 | guillermogil | Status | new => acknowledged |
2024-12-17 07:21 | SABARINATH P | Assigned To | Retail => SABARINATH P |
2024-12-17 07:21 | SABARINATH P | Status | acknowledged => scheduled |
2025-01-03 10:36 | cberner | Note Added: 0173819 | |
2025-01-03 10:39 | guillermogil | Regression date | => 2024-11-18 |
2025-01-03 10:39 | guillermogil | Regression introduced by commit | => https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3025 [^] |
2025-01-03 10:47 | cberner | Note Edited: 0173819 | View Revisions |
2025-01-03 10:48 | cberner | Note Edited: 0173819 | View Revisions |
2025-01-03 11:33 | cberner | Note Added: 0173821 | |
2025-01-03 11:38 | cberner | Description Updated | View Revisions |
2025-01-03 11:38 | cberner | Assigned To | SABARINATH P => cberner |
2025-01-03 14:35 | hgbot | Note Added: 0173836 | |
2025-01-03 14:36 | hgbot | Note Added: 0173837 | |
2025-01-10 11:45 | cberner | Status | scheduled => acknowledged |
2025-01-10 11:45 | cberner | Status | acknowledged => scheduled |
2025-01-13 13:55 | hgbot | Resolution | open => fixed |
2025-01-13 13:55 | hgbot | Status | scheduled => closed |
2025-01-13 13:55 | hgbot | Note Added: 0174072 | |
2025-01-13 13:55 | hgbot | Fixed in Version | => 25Q2 |
2025-01-13 13:55 | hgbot | Note Added: 0174073 | |
2025-01-13 13:55 | hgbot | Note Added: 0174074 | |
2025-01-13 13:55 | hgbot | Note Added: 0174075 | |
2025-01-14 10:22 | hgbot | Note Added: 0174115 | |
2025-01-14 10:23 | hgbot | Note Added: 0174116 | |
2025-01-14 13:23 | hgbot | Note Added: 0174144 | |
2025-01-14 13:23 | hgbot | Note Added: 0174145 | |
2025-01-14 13:23 | hgbot | Note Added: 0174146 | |
2025-01-14 13:23 | hgbot | Note Added: 0174147 | |
2025-01-16 12:05 | alostale | Relationship added | causes 0057659 |
Copyright © 2000 - 2009 MantisBT Group |