Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0045281 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | have not tried | 2020-10-22 14:10 | 2020-10-23 09:15 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR21Q1 | |||
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 | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0045281: infinite loop in OB.error when used in core2 | |||||||
Description | When OB.error/OB.warn apis are used in a core2 app, the application gets frozen due to an infinite loop. | |||||||
Steps To Reproduce | 1. log into pos2 2. in dev tools execute: OB.error('some error') -> ERROR: infinite loop | |||||||
Proposed Solution | The problem is caused by ob-log.js flattenArray function using underscore which is not a dependency for BL. It can be replaced by lodash. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0123868) hgbot (developer) 2020-10-22 14:25 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/90 [^] |
(0123898) hgbot (developer) 2020-10-23 09:15 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^] Changeset: a4fa0a979782a4ee71c45c3f96701e85fbce54e5 Author: Asier Lostalé <asier.lostale@openbravo.com> Date: 2020-10-22T14:22:22+02:00 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/a4fa0a979782a4ee71c45c3f96701e85fbce54e5 [^] fixed BUG-45281: infinite loop in OB.error when used in core2 Replaced underscore's each function with lodash equivalent each in flattenArray note both of them are able to iterate both in arrays and in play objects, which is needed as array parameter in flattenArray is not necessarily an array. --- M web/org.openbravo.mobile.core/source/utils/ob-log.js --- |
(0123899) hgbot (developer) 2020-10-23 09:15 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/90 [^] |
Issue History | |||
Date Modified | Username | Field | Change |
2020-10-22 14:10 | alostale | New Issue | |
2020-10-22 14:10 | alostale | Assigned To | => Retail |
2020-10-22 14:10 | alostale | Triggers an Emergency Pack | => No |
2020-10-22 14:10 | alostale | Assigned To | Retail => alostale |
2020-10-22 14:20 | alostale | Relationship added | related to 0045085 |
2020-10-22 14:25 | hgbot | Note Added: 0123868 | |
2020-10-23 09:15 | hgbot | Resolution | open => fixed |
2020-10-23 09:15 | hgbot | Status | new => closed |
2020-10-23 09:15 | hgbot | Fixed in Version | => RR21Q1 |
2020-10-23 09:15 | hgbot | Note Added: 0123898 | |
2020-10-23 09:15 | hgbot | Note Added: 0123899 |
Copyright © 2000 - 2009 MantisBT Group |