Bug 780051 (SOA-2416)

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 - standaloneAssignee: Alejandro Guizar <alex.guizar>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0.ER2Keywords: 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:

Description Jiri Pechanec 2010-10-13 11:03:10 UTC
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.

Comment 1 Alejandro Guizar 2010-10-25 18:55:18 UTC
Link: Added: This issue depends JBPM-2905


Comment 2 Alejandro Guizar 2010-10-25 18:56:38 UTC
Project issue JBPM-2905 resolved. Waiting for QE confirmation.

Comment 3 Laura Bailey 2010-12-17 00:41:27 UTC
Writer: Added: Darrin


Comment 4 Laura Bailey 2010-12-17 00:47:59 UTC
Release Notes Docs Status: Added: Not Yet Documented


Comment 6 Jiri Pechanec 2011-01-07 07:31:16 UTC
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

Comment 7 Alejandro Guizar 2011-01-11 06:23:00 UTC
WorklogId: Removed: 12423656 


Comment 8 Jiri Pechanec 2011-01-25 13:14:39 UTC
Verified in ER7

Comment 9 Laura Bailey 2011-02-15 08:37:16 UTC
Reopening to add release note information. Will set back to Closed -> Done shortly.

Comment 10 Laura Bailey 2011-02-15 08:38:10 UTC
Setting back to Closed -> Done after adding release note.

Comment 11 Laura Bailey 2011-02-15 08:38:10 UTC
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.