[MAGNOLIA-1953] activation workflow can not send e-mail notification due several bugs Created: 05/Apr/07  Updated: 23/Jan/13  Resolved: 12/Dec/07

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 3.0.2
Fix Version/s: 3.5

Type: Bug Priority: Major
Reporter: Henryk Paluch Assignee: Vivian Steller
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Magnolia 3.0.2 EE, JDK 1.5.0_11, Win2000


Issue Links:
dependency
depends upon MAGNOLIA-1952 Update: default workflow definition h... Closed
is depended upon by MAGNOLIA-2048 Add ${comment} to the sample workflow... Closed
relation
is related to MAGNOLIA-1948 MgnlMailFactory can't read e-mail add... Closed
is related to MAGNOLIA-1949 Default workflow definition should al... Closed
is related to MAGNOLIA-1415 Quick fix for default workflow defini... Closed
supersession
supersedes MAGNOLIA-1949 Default workflow definition should al... Closed
is superseded by MAGNOLIA-2065 default workflow doesn't send e-mails... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Default workflow (called "activation") - has several bugs that prevents e-mail notifications to work (just uncommenting blocks bellow "uncomment if you like to use an email notification " is not sufficient):

1. <process-definition name="to-publisher"> is never called from main <process-definition name="activation" revision="j0.0.2">
therefore notification may not be send.

fix - replace:
<!-- go to publisher first -->
<participant ref="group-publisher"/>
with:
<!-- go to publisher first -->
<to-publisher/>

2. mailTemplate references non-existing "testTemplate" - there is no such template in default Magnolia 3.0.2 EE instalation. Attempt to use it results in error:

ERROR 04.04.2007 17:08:31 Could not send email:Template:[testMagnolia] configuration was not found in repository

Possible workaround - use

<set field="mailTemplate" value="testFreemarker"/>

2b) Not a bug, but rather consequence: testFreemarker requires mandatory parameter user

ERROR 05.04.2007 09:51:38 Could not send email:Expression user is undefined on line 1, column 7 in testFreemarker.html.

I added this to temporarily fix it:

<set field="user" value="dont crash freeMarker"/>

Note: This workaround is related to using testFreeMarker template only. It should be better
to include proper mail template in Magnolia installation.

3) MgnlMailFactory. convertEmailList() ignores groups (here "group-publisher") - so sending mail crashes with

ERROR 05.04.2007 10:21:45 Could not send email:No recipient addresses

Thus bug http://jira.magnolia.info/browse/MAGNOLIA-1230 is blocking e-mail notifications



 Comments   
Comment by Vivian Steller [ 12/Dec/07 ]

fixed on svn with r13537.

1) fixed in default-activation-workflow.xml
2) added new "workflowNotification" freemarker mail template in mail module which also shows usage of attributes
2b) not an issue anymore
3) was fixed with MAGNOLIA-1950

Generated at Mon Feb 12 03:31:56 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.