Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0057750 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [POS2] Core | major | have not tried | 2025-01-24 11:06 | 2025-01-24 17:54 | |||
Reporter | cberner | 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 | |||||||
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 | 0057750: ServiceWorker update error when doing login offline | |||||||
Description | If a login offline in POS is performed ("through missing connection/wifi, not devtools"), an error message is shown as follows: Failed to update a ServiceWorker for scope ("...") with script ("...service-worker.js"): An unknown error occured when fetching the script. | |||||||
Steps To Reproduce | 1. Login in POS 2. Logout 3. Stop Wifi or Ethernet 4. Login again in POS A login offline is performed, but an error message appears related with the service worker. | |||||||
Proposed Solution | The service worker should not try to update itself when an offline login has been performed. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0174666) hgbot (developer) 2025-01-24 11:09 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1734 [^] |
(0174693) hgbot (developer) 2025-01-24 17:54 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^] Changeset: 976187efa4dc82a029a51a5c4f9a52a41569d603 Author: Cristian Berner <cristian.berner@openbravo.com> Date: 24-01-2025 16:54:09 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/976187efa4dc82a029a51a5c4f9a52a41569d603 [^] Fixes ISSUE-57750: ServiceWorker update error when doing login offline Due to some recent commits, the service worker update was moved outside of "only online" in the login process, that meant it was trying to update itself while offline, which will fail. An if statement was added to only update service worker if we're in online mode. --- M web-jspack/org.openbravo.core2/src/core/authentication/LoginProcess.js --- |
(0174694) hgbot (developer) 2025-01-24 17:54 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1734 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2025-01-24 11:06 | cberner | New Issue | |
2025-01-24 11:06 | cberner | Assigned To | => Triage Platform Base |
2025-01-24 11:06 | cberner | OBNetwork customer | => No |
2025-01-24 11:06 | cberner | Triggers an Emergency Pack | => No |
2025-01-24 11:06 | cberner | Assigned To | Triage Platform Base => cberner |
2025-01-24 11:06 | cberner | Status | new => acknowledged |
2025-01-24 11:09 | hgbot | Merge Request Status | => open |
2025-01-24 11:09 | hgbot | Note Added: 0174666 | |
2025-01-24 11:15 | cberner | Relationship added | related to 0056436 |
2025-01-24 12:10 | cberner | Status | acknowledged => scheduled |
2025-01-24 16:59 | hgbot | Merge Request Status | open => approved |
2025-01-24 17:54 | hgbot | Resolution | open => fixed |
2025-01-24 17:54 | hgbot | Status | scheduled => closed |
2025-01-24 17:54 | hgbot | Fixed in Version | => 25Q2 |
2025-01-24 17:54 | hgbot | Note Added: 0174693 | |
2025-01-24 17:54 | hgbot | Note Added: 0174694 |
Copyright © 2000 - 2009 MantisBT Group |