Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||||||||||||||||||||||||||||
| View Issue Details | |||||||||||||||||||||||||||||||||||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||||||||||||||||||||||||||||
| 0038524 | Openbravo ERP | A. Platform | public | 2018-05-11 13:29 | 2018-08-08 13:06 | ||||||||||||||||||||||||||||||||||||||||
| Reporter | alostale | ||||||||||||||||||||||||||||||||||||||||||||
| Assigned To | jarmendariz | ||||||||||||||||||||||||||||||||||||||||||||
| Priority | normal | Severity | major | Reproducibility | have not tried | ||||||||||||||||||||||||||||||||||||||||
| Status | closed | Resolution | fixed | ||||||||||||||||||||||||||||||||||||||||||
| Platform | OS | 5 | OS Version | ||||||||||||||||||||||||||||||||||||||||||
| Product Version | |||||||||||||||||||||||||||||||||||||||||||||
| Target Version | Fixed in Version | 3.0PR18Q4 | |||||||||||||||||||||||||||||||||||||||||||
| Merge Request Status | |||||||||||||||||||||||||||||||||||||||||||||
| Review Assigned To | alostale | ||||||||||||||||||||||||||||||||||||||||||||
| OBNetwork customer | No | ||||||||||||||||||||||||||||||||||||||||||||
| Web browser | |||||||||||||||||||||||||||||||||||||||||||||
| Modules | Core | ||||||||||||||||||||||||||||||||||||||||||||
| Support ticket | |||||||||||||||||||||||||||||||||||||||||||||
| Regression level | |||||||||||||||||||||||||||||||||||||||||||||
| Regression date | |||||||||||||||||||||||||||||||||||||||||||||
| Regression introduced in release | |||||||||||||||||||||||||||||||||||||||||||||
| Regression introduced by commit | |||||||||||||||||||||||||||||||||||||||||||||
| Triggers an Emergency Pack | No | ||||||||||||||||||||||||||||||||||||||||||||
| Summary | 0038524: can't configure timeout for sending emails | ||||||||||||||||||||||||||||||||||||||||||||
| Description | It's not possible to configure any timeout for sending emails. In case the email server doesn't respond, it is possible to reach a situation where the thread sending the email is indefinitely stuck. | ||||||||||||||||||||||||||||||||||||||||||||
| Steps To Reproduce | 1. Configure a very slow smtp server You can use, ie., a fake smpt server like dumbster [1]
SimpleSmtpServer.start(8025);
and add breakpoints to simulate slowness 2. Configure Client in Openbravo to make use of it 3. Open a completed Sales Order 4. Click on send email -> Check the threads gets stuck while the email server is not responding: "ajp-bio-127.0.0.1-8009-exec-678" daemon prio=10 tid=0x00007fd2800cf800 nid=0x1f7ff runnable [0x00007fd38befb000] java.lang.Thread.State: RUNNABLE at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:153) at java.net.SocketInputStream.read(SocketInputStream.java:122) at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read(BufferedInputStream.java:254) - locked <0x00000001efd082a0> (a java.io.BufferedInputStream) at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89) at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2131) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1912) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638) at javax.mail.Service.connect(Service.java:317) - locked <0x00000001efd083f0> (a com.sun.mail.smtp.SMTPTransport) at javax.mail.Service.connect(Service.java:176) at javax.mail.Service.connect(Service.java:125) at org.openbravo.erpCommon.utility.poc.EmailManager.sendEmail(EmailManager.java:170) at org.openbravo.erpCommon.utility.reporting.printing.PrintController.sendDocumentEmail(PrintController.java:815) --- [1] https://github.com/kirviq/dumbster [^] | ||||||||||||||||||||||||||||||||||||||||||||
| Proposed Solution | * Make it possible to configure email to include timeouts * Although JavaMail supports up to 3 different timeouts (timeout, connectiontimeout, writetimeout), I think this shouldn't be exposed to end user, a single timeout field should configure (with the same value?) all of them. * Note current 1.4.4 JavaMail version, released in 2011, only supports connectiontimeout. We might need to upgrade to latest version to do a better support. Attached patch is tested with current latest version (1.6.1) and I found no issues, using gmail as smtp server. | ||||||||||||||||||||||||||||||||||||||||||||
| Additional Information | |||||||||||||||||||||||||||||||||||||||||||||
| Tags | No tags attached. | ||||||||||||||||||||||||||||||||||||||||||||
| Relationships |
| ||||||||||||||||||||||||||||||||||||||||||||
| Attached Files | https://issues.openbravo.com/file_download.php?file_id=11793&type=bug | ||||||||||||||||||||||||||||||||||||||||||||
| Issue History | |||||||||||||||||||||||||||||||||||||||||||||
| Date Modified | Username | Field | Change | ||||||||||||||||||||||||||||||||||||||||||
| 2018-05-11 13:29 | alostale | New Issue | |||||||||||||||||||||||||||||||||||||||||||
| 2018-05-11 13:29 | alostale | Assigned To | => platform | ||||||||||||||||||||||||||||||||||||||||||
| 2018-05-11 13:29 | alostale | OBNetwork customer | => No | ||||||||||||||||||||||||||||||||||||||||||
| 2018-05-11 13:29 | alostale | Modules | => Core | ||||||||||||||||||||||||||||||||||||||||||
| 2018-05-11 13:29 | alostale | Triggers an Emergency Pack | => No | ||||||||||||||||||||||||||||||||||||||||||
| 2018-05-11 13:31 | alostale | File Added: 38524-WiP.diff | |||||||||||||||||||||||||||||||||||||||||||
| 2018-05-17 08:50 | alostale | Status | new => acknowledged | ||||||||||||||||||||||||||||||||||||||||||
| 2018-05-17 08:55 | alostale | Issue cloned | 0038567 | ||||||||||||||||||||||||||||||||||||||||||
| 2018-05-17 08:55 | alostale | Relationship added | related to 0038567 | ||||||||||||||||||||||||||||||||||||||||||
| 2018-05-17 16:06 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=17155#r17155 | ||||||||||||||||||||||||||||||||||||||||||
| 2018-06-21 16:26 | jarmendariz | Assigned To | platform => jarmendariz | ||||||||||||||||||||||||||||||||||||||||||
| 2018-06-28 12:01 | jarmendariz | Status | acknowledged => scheduled | ||||||||||||||||||||||||||||||||||||||||||
| 2018-07-11 10:52 | jarmendariz | Review Assigned To | => alostale | ||||||||||||||||||||||||||||||||||||||||||
| 2018-07-11 13:42 | hgbot | Checkin | |||||||||||||||||||||||||||||||||||||||||||
| 2018-07-11 13:42 | hgbot | Note Added: 0105700 | |||||||||||||||||||||||||||||||||||||||||||
| 2018-07-11 13:42 | hgbot | Status | scheduled => resolved | ||||||||||||||||||||||||||||||||||||||||||
| 2018-07-11 13:42 | hgbot | Resolution | open => fixed | ||||||||||||||||||||||||||||||||||||||||||
| 2018-07-11 13:42 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/cf4416b527d97adba57b97484b66a33284101738 [^] | ||||||||||||||||||||||||||||||||||||||||||
| 2018-07-11 13:43 | hgbot | Checkin | |||||||||||||||||||||||||||||||||||||||||||
| 2018-07-11 13:43 | hgbot | Note Added: 0105701 | |||||||||||||||||||||||||||||||||||||||||||
| 2018-07-11 17:29 | jarmendariz | Note Added: 0105703 | |||||||||||||||||||||||||||||||||||||||||||
| 2018-07-12 14:01 | jarmendariz | Relationship added | related to 0038934 | ||||||||||||||||||||||||||||||||||||||||||
| 2018-07-12 14:01 | jarmendariz | Note Added: 0105715 | |||||||||||||||||||||||||||||||||||||||||||
| 2018-07-13 11:42 | alostale | Note Added: 0105737 | |||||||||||||||||||||||||||||||||||||||||||
| 2018-07-13 11:42 | alostale | Status | resolved => closed | ||||||||||||||||||||||||||||||||||||||||||
| 2018-07-13 11:42 | alostale | Fixed in Version | => 3.0PR18Q4 | ||||||||||||||||||||||||||||||||||||||||||
| 2018-08-08 13:06 | hudsonbot | Checkin | |||||||||||||||||||||||||||||||||||||||||||
| 2018-08-08 13:06 | hudsonbot | Note Added: 0106211 | |||||||||||||||||||||||||||||||||||||||||||
| 2018-11-20 09:35 | aferraz | Relationship added | causes 0039649 | ||||||||||||||||||||||||||||||||||||||||||
| 2019-04-12 09:20 | alostale | Relationship added | causes 0040603 | ||||||||||||||||||||||||||||||||||||||||||
| 2019-04-15 18:52 | jarmendariz | Relationship added | related to 0040622 | ||||||||||||||||||||||||||||||||||||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||