Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1953

activation workflow can not send e-mail notification due several bugs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.5
    • 3.0.2
    • None
    • None
    • Magnolia 3.0.2 EE, JDK 1.5.0_11, Win2000

      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

        Acceptance criteria

              vivi Vivian Steller
              hpaluch Henryk Paluch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD