Openbravo Issue Tracking System - Retail Modules | ||||||||||||||||||||||||||
View Issue Details | ||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||||||||
0047395 | Retail Modules | Web POS | public | 2021-07-14 16:46 | 2021-09-08 07:48 | |||||||||||||||||||||
Reporter | Sergio_Gomez | |||||||||||||||||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||||||||||||||||||
Status | closed | Resolution | fixed | |||||||||||||||||||||||
Platform | OS | 5 | OS Version | |||||||||||||||||||||||
Product Version | ||||||||||||||||||||||||||
Target Version | Fixed in Version | RR21Q4 | ||||||||||||||||||||||||
Merge Request Status | approved | |||||||||||||||||||||||||
Review Assigned To | ||||||||||||||||||||||||||
OBNetwork customer | OBPS | |||||||||||||||||||||||||
Support ticket | 26293 | |||||||||||||||||||||||||
Regression level | Production - Confirmed Stable | |||||||||||||||||||||||||
Regression date | 2021-01-21 | |||||||||||||||||||||||||
Regression introduced in release | RR21Q2 | |||||||||||||||||||||||||
Regression introduced by commit | https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/f54508b79167c058a8c1fa2e5bfa70ffcb549afe [^] | |||||||||||||||||||||||||
Triggers an Emergency Pack | No | |||||||||||||||||||||||||
Summary | 0047395: OB.UTIL.encodeXMLMultiLineComponent returns empty string if there are lines larger than the width in 21Q2 | |||||||||||||||||||||||||
Description | OB.UTIL.encodeXMLMultiLineComponent returns empty string for these case in 21Q2 while working correctly in earlier versions. The only change is that in the OB.UTIL.wordwrap function that is called inside a .join('\n') has been removed; In 19Q4.4: return str.match(RegExp('.{1,' + width + '}(\\s|$)|\\S+?(\\s|$)', 'g')).join('\n'); In 21Q2: return str.match(RegExp('.{1,' + width + '}(\\s|$)|\\S+?(\\s|$)', 'g')); | |||||||||||||||||||||||||
Steps To Reproduce | - In livebuilds 19Q4.4 release - Login to the pos - Open the console of the chrome developer tools - Execute an example statement like OB.UTIL.encodeXMLMultiLineComponent ('Line 1\nLine 2', 6) to check the cases where the width is equal to or greater than the lines of the message. - Execute another example statement like OB.UTIL.encodeXMLMultiLineComponent ('Line 1\nLine 2', 5) to check cases where the width is less than the lines of the message. -Perform the same steps for livebuilds 21Q2 release and check that for the first case it works correctly while for the second it returns an empty string. | |||||||||||||||||||||||||
Proposed Solution | ||||||||||||||||||||||||||
Additional Information | ||||||||||||||||||||||||||
Tags | No tags attached. | |||||||||||||||||||||||||
Relationships |
| |||||||||||||||||||||||||
Attached Files | ||||||||||||||||||||||||||
Issue History | ||||||||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||||||||
2021-07-14 16:46 | Sergio_Gomez | New Issue | ||||||||||||||||||||||||
2021-07-14 16:46 | Sergio_Gomez | Assigned To | => Retail | |||||||||||||||||||||||
2021-07-14 16:46 | Sergio_Gomez | Triggers an Emergency Pack | => No | |||||||||||||||||||||||
2021-07-14 16:56 | Practics | Issue Monitored: Practics | ||||||||||||||||||||||||
2021-08-05 09:50 | Sergio_Gomez | OBNetwork customer | => OBPS | |||||||||||||||||||||||
2021-08-05 09:50 | Sergio_Gomez | Support ticket | => 26293 | |||||||||||||||||||||||
2021-08-05 09:50 | Sergio_Gomez | Summary | 0047395: OB.UTIL.encodeXMLMultiLineComponent returns empty string if there are lines larger than the width in 21Q2 => OB.UTIL.encodeXMLMultiLineComponent returns empty string if there are lines larger than the width in 21Q2 | |||||||||||||||||||||||
2021-09-02 17:35 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||||||||||||||||
2021-09-02 17:35 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||||||||||||||||
2021-09-02 17:35 | ranjith_qualiantech_com | Relationship added | caused by 0045707 | |||||||||||||||||||||||
2021-09-07 04:19 | hgbot | Merge Request Status | => open | |||||||||||||||||||||||
2021-09-07 04:19 | hgbot | Note Added: 0131583 | ||||||||||||||||||||||||
2021-09-07 07:26 | ranjith_qualiantech_com | Status | scheduled => acknowledged | |||||||||||||||||||||||
2021-09-07 07:26 | ranjith_qualiantech_com | Status | acknowledged => scheduled | |||||||||||||||||||||||
2021-09-07 07:28 | ranjith_qualiantech_com | Regression level | => Production - Confirmed Stable | |||||||||||||||||||||||
2021-09-07 07:28 | ranjith_qualiantech_com | Regression date | => 2021-01-21 | |||||||||||||||||||||||
2021-09-07 07:28 | ranjith_qualiantech_com | Regression introduced in release | => RR21Q2 | |||||||||||||||||||||||
2021-09-07 07:28 | ranjith_qualiantech_com | Regression introduced by commit | => https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/f54508b79167c058a8c1fa2e5bfa70ffcb549afe [^] | |||||||||||||||||||||||
2021-09-08 07:48 | hgbot | Merge Request Status | open => approved | |||||||||||||||||||||||
2021-09-08 07:48 | hgbot | Resolution | open => fixed | |||||||||||||||||||||||
2021-09-08 07:48 | hgbot | Status | scheduled => closed | |||||||||||||||||||||||
2021-09-08 07:48 | hgbot | Note Added: 0131629 | ||||||||||||||||||||||||
2021-09-08 07:48 | hgbot | Fixed in Version | => RR21Q4 | |||||||||||||||||||||||
2021-09-08 07:48 | hgbot | Note Added: 0131630 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|