Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0046510
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2021-05-05 12:332023-05-24 08:19
ReporteralostaleView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in VersionRR23Q3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0046510: unhandled promise rejections are not sent to the terminal log

DescriptionUnhandled 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 Reproduce1. Edit AddProduct.js
  OB.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 SolutionImplement 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 [^]
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(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
---

- Issue History
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 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 Note Added: 0149538
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
Powered by Mantis Bugtracker