Openbravo Issue Tracking System - Openbravo ERP |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0024549 | Openbravo ERP | Z. Others | public | 2013-08-20 13:30 | 2013-08-21 18:59 |
|
| Reporter | vmromanos | |
| Assigned To | vmromanos | |
| Priority | urgent | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 20 | OS Version | Debian 5.0 |
| Product Version | pi | |
| Target Version | 3.0MP27 | Fixed in Version | | |
| Merge Request Status | |
| Review Assigned To | dmiguelez |
| 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 | 0024549: Regular expression errors when sending emails |
| Description | In case the data replacing the report template tags (@cus_ref@, @our_ref@, @cus_nam@, @sal_nam@, @bp_nam@, @doc_date@, @doc_desc@, @doc_nextduedate@ and @doc_lastduedate@) contains backslashes '\' or dollar signs '$', the regular expression replacement done when sending the email may result in a regular expression error that avoids to send the email.
See http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#replaceAll [^](java.lang.String, java.lang.String) |
| Steps To Reproduce | 1. Select any sales invoice
2. Browse to the user/contact and replace the first and last name by $mith
3. Ensure the template contains the @cus_nam@ tag in either the subject or the body
4. Try to send the invoice by email. An error is displayed |
| Proposed Solution | Use Matcher.quoteReplacement(java.lang.String) to suppress the special meaning of these characters ($, \) |
| Additional Information | |
| Tags | No tags attached. |
| Relationships | | related to | feature request | 0024532 | 3.0MP27 | closed | vmromanos | Support more variables (tags) when sending emails |
|
| Attached Files | |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2013-08-20 13:30 | vmromanos | New Issue | |
| 2013-08-20 13:30 | vmromanos | Assigned To | => vmromanos |
| 2013-08-20 13:30 | vmromanos | Modules | => Core |
| 2013-08-20 13:30 | vmromanos | OBNetwork customer | => No |
| 2013-08-20 13:30 | vmromanos | Triggers an Emergency Pack | => No |
| 2013-08-20 13:31 | vmromanos | Relationship added | related to 0024532 |
| 2013-08-20 13:31 | vmromanos | Status | new => scheduled |
| 2013-08-20 13:31 | vmromanos | fix_in_branch | => pi |
| 2013-08-20 13:37 | hgbot | Checkin | |
| 2013-08-20 13:37 | hgbot | Note Added: 0060682 | |
| 2013-08-20 13:37 | hgbot | Status | scheduled => resolved |
| 2013-08-20 13:37 | hgbot | Resolution | open => fixed |
| 2013-08-20 13:37 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/b09efdf35533f0e742f97157adce20338752ade6 [^] |
| 2013-08-21 13:16 | dmiguelez | Review Assigned To | => dmiguelez |
| 2013-08-21 13:16 | dmiguelez | Note Added: 0060709 | |
| 2013-08-21 13:16 | dmiguelez | Status | resolved => closed |
| 2013-08-21 18:59 | hudsonbot | Checkin | |
| 2013-08-21 18:59 | hudsonbot | Note Added: 0060717 | |