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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0045281
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2020-10-22 14:102020-10-23 09:15
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in VersionRR21Q1
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

0045281: infinite loop in OB.error when used in core2

DescriptionWhen OB.error/OB.warn apis are used in a core2 app, the application gets frozen due to an infinite loop.
Steps To Reproduce1. log into pos2
2. in dev tools execute: OB.error('some error')
  -> ERROR: infinite loop
Proposed SolutionThe problem is caused by ob-log.js flattenArray function using underscore which is not a dependency for BL. It can be replaced by lodash.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0045085 closedjarmendariz Missing logging utilities in Business Logic 

-  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
Powered by Mantis Bugtracker