| Summary: | Mail from header cannot be set from jbpm.cfg.xml | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise SOA Platform 5 | Reporter: | Jiri Pechanec <jpechane> |
| Component: | JBPM - within SOA, JBPM - standalone | Assignee: | Alejandro Guizar <alex.guizar> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.1.0.ER2 | Keywords: | Regression |
| Target Milestone: | --- | ||
| Target Release: | 5.1.0 GA | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://jira.jboss.org/jira/browse/SOA-2416 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-02-15 08:38:10 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Link: Added: This issue depends JBPM-2905 Project issue JBPM-2905 resolved. Waiting for QE confirmation. Writer: Added: Darrin Release Notes Docs Status: Added: Not Yet Documented In my opinion the issue is still not resolved. I have a jbpm.cfg.xml file that contains among others these two lines <string name="jbpm.mail.from.address" value="jbpm@noreply"/> <string name="resource.mail.properties" value="qe-mail.properties"/> But the emails come with from header set to hudson.lab.eng.bos.redhat.com - I would expect them to come from address jbpm@noreply WorklogId: Removed: 12423656 Verified in ER7 Reopening to add release note information. Will set back to Closed -> Done shortly. Setting back to Closed -> Done after adding release note. Release Notes Docs Status: Removed: Not Yet Documented Added: Documented as Resolved Issue Release Notes Text: Added: When a mail from header was set in jbpm.cfg.xml, the value of the jbpm.mail.from.address property was not used in the header. This has been corrected, and the header can now be set in jbpm.cfg.xml as expected. |
project_key: SOA The mail from header can be set in two places - in jbpm.cfg.xml file as jbpm.mail.from.address config property or in property file defined in file referred by resource.mail.properties property. The problem is that originally it was possible to have this file present (for example to define SMTP parameters) AND at the same time to configure jbpm.mail.from.address in jbpm.cfg.xml. This is no longer possible as the code contains a condition at lin 293 that say that either external file is used or jbp.cfg.xml definitions can be used. if (Configs.hasObject("resource.mail.properties")) { This is a regression from previous version.