Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0027318 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
defect | [Retail Modules] Web POS | minor | have not tried | 2014-08-12 23:37 | 2014-09-22 16:24 | |||||||
Reporter | mtaal | View Status | public | |||||||||
Assigned To | adrianromero | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | 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 | ||||||||||||
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 | 0027318: OB.UTIL.getStackLink throws error | |||||||||||
Description | See info below, the getStackLink method is like this: OB.UTIL.getStackLink = function () { try { var errorobj = new Error(); var link = errorobj.stack.split('\n')[4].split('(')[1]; link = link.substring(0, link.length - 2); return link; } catch (e) { return ''; } }; | |||||||||||
Steps To Reproduce | With this errorobj.stack content the link var is undefined: "Error at Object.OB.UTIL.getStackLink (http://188.226.181.203/openbravo/web/js/gen/a41ff86411367a017a4fc7fe32c93d06.js:6323:22 [^]) at Object.OB.UTIL.saveLogClient (http://188.226.181.203/openbravo/web/js/gen/a41ff86411367a017a4fc7fe32c93d06.js:6236:44 [^]) at Object.OB.error (http://188.226.181.203/openbravo/web/js/gen/a41ff86411367a017a4fc7fe32c93d06.js:6168:17 [^]) at http://188.226.181.203/openbravo/web/js/gen/a41ff86411367a017a4fc7fe32c93d06.js:1105:12 [^] at serviceError (http://188.226.181.203/openbravo/web/js/gen/a41ff86411367a017a4fc7fe32c93d06.js:850:7 [^]) at Object.enyo.Ajax.fail (http://188.226.181.203/openbravo/web/js/gen/a41ff86411367a017a4fc7fe32c93d06.js:914:9 [^]) at Object.enyo.kind.receive (http://188.226.181.203/openbravo/web/org.openbravo.mobile.core/enyo/source/ajax/Ajax.js:87:10 [^]) at XMLHttpRequest.inXhr.onreadystatechange (http://188.226.181.203/openbravo/web/org.openbravo.mobile.core/enyo/source/ajax/xhr.js:71:16 [^])" | |||||||||||
Proposed Solution | Make the method simpler by removing the split('(') and the substring. OB.UTIL.getStackLink = function () { try { var errorobj = new Error(); return errorobj.stack.split('\n')[4]; } catch (e) { return ''; } }; | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
![]() |
|
![]() |
|||
Date Modified | Username | Field | Change |
2014-08-12 23:37 | mtaal | New Issue | |
2014-08-12 23:37 | mtaal | Assigned To | => adrianromero |
2014-08-12 23:37 | mtaal | OBNetwork customer | => No |
2014-08-12 23:37 | mtaal | Triggers an Emergency Pack | => No |
2014-09-22 16:24 | mtaal | Target Version | RR14Q4 => |
Copyright © 2000 - 2009 MantisBT Group |