Openbravo Issue Tracking System - Retail Modules
View Issue Details
0052417Retail ModulesWeb POSpublic2023-05-11 11:352023-05-15 06:53
ranjith_qualiantech_com 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR23Q3 
approved
No
No
0052417: Error not properly logged when send mail event is failed
In POS, when Send Email event is failed (due to parsing the template, email config issue), error was not properly logged
Backoffice
1) Enable Preference "Enable Send Email for every customer"
2) Add Email configuration with wrong credentials
POS
1) Add product and complete ticket.

Expected
Error entry should present in window "Failed Email Events"

Current
Data Import Entry status updated as Error. With Error info
org.codehaus.jettison.json.JSONException: JSONObject["id"] not found.
    at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360)
    at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487)
No tags attached.
Issue History
2023-05-11 11:35ranjith_qualiantech_comNew Issue
2023-05-11 11:35ranjith_qualiantech_comAssigned To => ranjith_qualiantech_com
2023-05-11 11:35ranjith_qualiantech_comOBNetwork customer => No
2023-05-11 11:35ranjith_qualiantech_comTriggers an Emergency Pack => No
2023-05-11 11:46ranjith_qualiantech_comStatusnew => scheduled
2023-05-12 08:17hgbotMerge Request Status => open
2023-05-12 08:17hgbotNote Added: 0149641
2023-05-12 08:17hgbotNote Added: 0149642
2023-05-15 06:53hgbotMerge Request Statusopen => approved
2023-05-15 06:53hgbotNote Added: 0149671
2023-05-15 06:53hgbotNote Added: 0149672
2023-05-15 06:53hgbotResolutionopen => fixed
2023-05-15 06:53hgbotStatusscheduled => closed
2023-05-15 06:53hgbotFixed in Version => RR23Q3
2023-05-15 06:53hgbotNote Added: 0149673
2023-05-15 06:53hgbotNote Added: 0149674

Notes
(0149641)
hgbot   
2023-05-12 08:17   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/518 [^]
(0149642)
hgbot   
2023-05-12 08:17   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sendemail/-/merge_requests/22 [^]
(0149671)
hgbot   
2023-05-15 06:53   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sendemail [^]
Changeset: 4a12e45bd666e10e7ec1a8bdccaf846476e774b0
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 11-05-2023 15:09:04
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sendemail/-/commit/4a12e45bd666e10e7ec1a8bdccaf846476e774b0 [^]

Related to ISSUE-52417: Added logs for sending email event

---
M src/org/openbravo/retail/sendemail/classes/OBSMAIL_MailSender.java
---
(0149672)
hgbot   
2023-05-15 06:53   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sendemail/-/merge_requests/22 [^]
(0149673)
hgbot   
2023-05-15 06:53   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/518 [^]
(0149674)
hgbot   
2023-05-15 06:53   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 58e2b7c4185860ee6821a21c886216de2cb4019d
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 12-05-2023 11:47:08
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/58e2b7c4185860ee6821a21c886216de2cb4019d [^]

Fixed ISSUE-52417: Error should be handled if DataSyncProcess is failed
* When error occurred in DataSyncProcess and json doesn't have id, then
  error should be handled by ErrorHandler

---
M src/org/openbravo/mobile/core/process/DataSynchronizationProcess.java
---