Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0046510 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | have not tried | 2021-05-05 12:33 | 2023-05-24 08:19 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR23Q3 | |||
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 | 0046510: unhandled promise rejections are not sent to the terminal log | |||||||
Description | Unhandled promise rejections are not sent to the terminal log as unhandled errors are. This causes, for example, not logging unexpected errors in state actions. | |||||||
Steps To Reproduce | 1. Edit AddProduct.jsOB.App.StateAPI.Ticket.addProduct.addActionPreparation( async (ticket, payload) => { if (true) throw Error('failed adding product'); // ... 2. Log in pos and try add a product to the ticket -> OK: the product is not added because the code above failed 3. Wait until terminal log is sent to backend 4. Log in backoffice and open Terminal Log window -> ERROR: there is no entry with the 'failed adding product' message | |||||||
Proposed Solution | Implement unhandledrejection event [1] similar to current window.onerror. Note both APIs are different. [1] https://developer.mozilla.org/en-US/docs/Web/API/Window/unhandledrejection_event [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0149538) hgbot (developer) 2023-05-10 09:28 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/517 [^] |
(0150178) hgbot (developer) 2023-05-24 08:19 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/517 [^] |
(0150179) hgbot (developer) 2023-05-24 08:19 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^] Changeset: 82e75b7b6d8385b680c42ecd5eab649560795f54 Author: Radhakrishnan Seeman <radhakrishnan@qualiantech.com> Date: 24-05-2023 06:11:12 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/82e75b7b6d8385b680c42ecd5eab649560795f54 [^] Fixed ISSUE-46510: Added global function to handle unhandled exception --- M web/org.openbravo.mobile.core/source/main.js --- |
![]() |
|||
Date Modified | Username | Field | Change |
2021-05-05 12:33 | alostale | New Issue | |
2021-05-05 12:33 | alostale | Assigned To | => Retail |
2021-05-05 12:33 | alostale | OBNetwork customer | => No |
2021-05-05 12:33 | alostale | Triggers an Emergency Pack | => No |
2021-05-05 12:50 | alostale | Proposed Solution updated | |
2022-07-21 15:47 | radhakrishnan | Assigned To | Retail => radhakrishnan |
2022-07-21 15:48 | radhakrishnan | Status | new => scheduled |
2023-05-04 07:30 | marvintm | Assigned To | radhakrishnan => Retail |
2023-05-09 07:06 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2023-05-10 09:28 | hgbot | Merge Request Status | => open |
2023-05-10 09:28 | hgbot | Note Added: 0149538 | |
2023-05-24 08:18 | hgbot | Merge Request Status | open => approved |
2023-05-24 08:19 | hgbot | Resolution | open => fixed |
2023-05-24 08:19 | hgbot | Status | scheduled => closed |
2023-05-24 08:19 | hgbot | Note Added: 0150178 | |
2023-05-24 08:19 | hgbot | Fixed in Version | => RR23Q3 |
2023-05-24 08:19 | hgbot | Note Added: 0150179 |
Copyright © 2000 - 2009 MantisBT Group |