Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0057751 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [POS2] Core | major | have not tried | 2025-01-24 11:06 | 2025-01-24 17:55 | |||
Reporter | cberner | View Status | public | |||||
Assigned To | cberner | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 25Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | 25Q1 | |||
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 | 0057751: 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 | ||||||||
![]() |
||||||||
|
![]() |
|
(0174673) hgbot (developer) 2025-01-24 12:14 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1735 [^] |
(0174695) hgbot (developer) 2025-01-24 17:55 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1735 [^] |
(0174696) hgbot (developer) 2025-01-24 17:55 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^] Changeset: 04b8179fd482e5a4cf80de9e791b18861ca1f12f Author: Cristian Berner <cristian.berner@openbravo.com> Date: 24-01-2025 12:12:20 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/04b8179fd482e5a4cf80de9e791b18861ca1f12f [^] Fixes ISSUE-57751: 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 --- |
![]() |
|||
Date Modified | Username | Field | Change |
2025-01-24 12:10 | cberner | Type | defect => backport |
2025-01-24 12:10 | cberner | Target Version | => 25Q1 |
2025-01-24 12:14 | hgbot | Note Added: 0174673 | |
2025-01-24 16:59 | hgbot | Merge Request Status | open => approved |
2025-01-24 17:55 | hgbot | Note Added: 0174695 | |
2025-01-24 17:55 | hgbot | Resolution | open => fixed |
2025-01-24 17:55 | hgbot | Status | scheduled => closed |
2025-01-24 17:55 | hgbot | Fixed in Version | => 25Q1 |
2025-01-24 17:55 | hgbot | Note Added: 0174696 |
Copyright © 2000 - 2009 MantisBT Group |