Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-21135

Wrong email text when reassigning a standalone task to an user

    Details

    • Type: Service Pack Request
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Alfresco Process Services 1.10
    • Component/s: APS Tasks
    • Labels:
      None
    • Bug Priority:
      Category 2
    • ACT Numbers:

      01000538

      Description

      Summary
      When creating a standalone task in APS (https://docs.alfresco.com/process-services1.10/topics/creating_a_single_task.html) which is not related to a process instance and reassigning this task to anothe rperson, the email sent out to the assignee contains incorrect text about the task creator being the assigned person him or herself.

      Steps to reproduce
      1. Download a DevNullSMTP as fake email server from http://www.aboutmyip.com/AboutMyXApp/DevNullSmtp.jsp and start it on port 1025
      2. Configure the email properties in activiti-app.properties:

      email.enabled=true
      
      email.from.default=activiti@alfresco.com
      email.from.default.name=Administrator
      email.feedback.default=activiti@alfresco.com
      
      email.host=localhost
      email.port=1025
      email.useCredentials=false
      email.username=
      email.password=
      

      3. Restart APS for the settings to take effect
      4. Login to activiti-app as admin
      5. Via Identity Management -> Users create a new user:

      email: user.one@support.com
      password: Password
      first name: User
      last name: One
      company: support.com
      

      6. From the activiti landing page select the "Task App"
      7. Click on the "+ CREATE TASK" button and fill in values and create a task:

      Name: TaskA
      Descritption: This is a task
      

      8. In the form header of the new created task click on the Assignee (Administrator) and change it to User One
      9. Inspect the sent email in Dev Null SMTP

      Expected behaviour
      The email should look like this:

      To: user.one@support.com
      Subject: A task was created for you!
      Body: Administrator created the task 'TaskA' for you.

      Current behaviour
      The email looks like this and shows a wrong creator:

      To: user.one@support.com
      Subject: A task was created for you!
      Body: User One created the task 'TaskA' for you.

      Supporting evidence

      • Reproduced with current latest APS 1.10
      • Inspected the used email template "task-created-template.ftl" and it uses the following part for the wrong sentence:
        <#if taskCreator?has_content>                                    ${taskCreator} created <#if taskName?has_content>the task '${taskName}'<#else>a nameless task</#if> for you.
        
      • The text looks correct but somehow we seem to set a wrong creator behind the scenes

        Attachments

          Structure

            Activity

              People

              • Assignee:
                mhowarth Mark Howarth [X] (Inactive)
                Reporter:
                dkoch Dennis Koch
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel