Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0048088 | Openbravo ERP | A. Platform | public | 2021-11-16 12:00 | 2021-12-14 15:30 | |||||||
Reporter | alostale | |||||||||||
Assigned To | AugustoMauch | |||||||||||
Priority | immediate | Severity | minor | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | PR21Q3.6 | Fixed in Version | PR21Q3.6 | |||||||||
Merge Request Status | approved | |||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | Gold | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | Production - Confirmed Stable | |||||||||||
Regression date | 2020-01-10 | |||||||||||
Regression introduced in release | 3.0PR20Q2 | |||||||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/b032fd12d0bc000fff7bd8a786b0238b4bb1824a [^] | |||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0048088: OOM compressing JS with certain regexp | |||||||||||
Description | If the JavaScript included by ComponentProviders includes certain type of regular expressions, an OOM is thrown when it is tried to be compressed. Note this OOM is captured and the original contents without compression is returned so this issue has no impact on the functionality. | |||||||||||
Steps To Reproduce | 1. Include this line in any JavaScript: const letsCrash = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$/; 2. With no module in development serve the JavaScript containing that line: ERROR in logs: at java.util.Arrays.copyOf(Arrays.java:3745) ~[?:?] at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:120) ~[?:?] at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:95) ~[?:?] at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:137) ~[?:?] at org.openbravo.client.kernel.JSMin.action(JSMin.java:188) ~[classes/:?] at org.openbravo.client.kernel.JSMin.jsmin(JSMin.java:295) ~[classes/:?] at org.openbravo.client.kernel.JSCompressor.compress(JSCompressor.java:57) [classes/:?] Alternatively execute regexCompression test from MR [1]. --- [1] https://gitlab.com/openbravo/product/openbravo/-/merge_requests/457/ [^] | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2021-11-17 10:43 | AugustoMauch | Type | defect => backport | |||||||||
2021-11-17 10:43 | AugustoMauch | Target Version | => PR21Q3.6 | |||||||||
2021-11-17 11:50 | hgbot | Note Added: 0133141 | ||||||||||
2021-11-17 12:21 | hgbot | Resolution | open => fixed | |||||||||
2021-11-17 12:21 | hgbot | Status | scheduled => closed | |||||||||
2021-11-17 12:21 | hgbot | Fixed in Version | => PR21Q3.6 | |||||||||
2021-11-17 12:21 | hgbot | Note Added: 0133145 | ||||||||||
2021-11-17 12:21 | hgbot | Note Added: 0133146 | ||||||||||
2021-12-14 15:30 | cberner | Assigned To | platform => AugustoMauch |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|