Openbravo Issue Tracking System - POS2 | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0046914 | POS2 | POS | public | 2021-06-01 08:20 | 2021-06-23 16:20 | ||||||||||||||
Reporter | caristu | ||||||||||||||||||
Assigned To | prakashmurugesan88 | ||||||||||||||||||
Priority | high | Severity | major | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | ||||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | |||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0046914: Errors sending email must be caught | ||||||||||||||||||
Description | If there is an error during the processing of OBPOS2_SendEmail error (for example because the template generation failed), the message generated to make this processing is never deleted by the synchronization buffer as it will try to reprocess it forever. Thus, the subsequent messages to be synchronized in the backend will not be processed and they will be kept in the queue. Besides all this issue happens silently, nothing is displayed in the UI to inform that there is a problem | ||||||||||||||||||
Steps To Reproduce | 0) Apply the attached patch in pos2 module which simulates an error processing the send email message 1) Configure pos to use the send email feature[1] 2) Send an email (it will fail due to the applied patch). Note that starting from this moment all the messages to be synchronized in the backend are kept in the queue and never processed...see attached image [1] https://docs.google.com/document/d/1QhygcFWnc2rwRUe8EaC02e5c91xXeEA3w6XUplhTn5Q/edit#heading=h.mpsw99anuiy6 [^] | ||||||||||||||||||
Proposed Solution | Do not allow sendEmail[1] to throw errors: - In case of error it should be catched. This way the message will be processed by the synchronization buffer without errors and eventually deleted from the queue. - In addition to catching the error, it should be managed and a message should be displayed to the user in order to inform about the problem [1] https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/services/emailHandler.js#L34 [^] | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | forceError_46914.diff (501) 2021-06-01 08:22 https://issues.openbravo.com/file_download.php?file_id=15862&type=bug | ||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2021-06-01 08:20 | caristu | New Issue | |||||||||||||||||
2021-06-01 08:20 | caristu | Assigned To | => Retail | ||||||||||||||||
2021-06-01 08:20 | caristu | Triggers an Emergency Pack | => No | ||||||||||||||||
2021-06-01 08:20 | caristu | File Added: errorQueue.png | |||||||||||||||||
2021-06-01 08:21 | caristu | File Deleted: errorQueue.png | |||||||||||||||||
2021-06-01 08:22 | caristu | File Added: forceError_46914.diff | |||||||||||||||||
2021-06-01 08:37 | caristu | Issue cloned | 0046915 | ||||||||||||||||
2021-06-01 08:37 | caristu | Relationship added | related to 0046915 | ||||||||||||||||
2021-06-01 08:38 | caristu | Resolution time | => 1624312800 | ||||||||||||||||
2021-06-01 10:32 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=22645#r22645 | ||||||||||||||||
2021-06-07 15:06 | guilleaer | Status | new => scheduled | ||||||||||||||||
2021-06-07 15:06 | guilleaer | Status | scheduled => acknowledged | ||||||||||||||||
2021-06-21 09:18 | prakashmurugesan88 | Assigned To | Retail => prakashmurugesan88 | ||||||||||||||||
2021-06-21 09:18 | prakashmurugesan88 | Status | acknowledged => scheduled | ||||||||||||||||
2021-06-21 15:01 | hgbot | Note Added: 0129695 | |||||||||||||||||
2021-06-23 16:20 | hgbot | Resolution | open => fixed | ||||||||||||||||
2021-06-23 16:20 | hgbot | Status | scheduled => closed | ||||||||||||||||
2021-06-23 16:20 | hgbot | Note Added: 0129745 | |||||||||||||||||
2021-06-23 16:20 | hgbot | Note Added: 0129746 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|