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

Feed Notifier encounters FTL template exception when user leaves a site


    • Bug Priority:
      Category 3
    • ACT Numbers:

      00890117, 00928261, 00993694

    • Premier Customer:


      When generating an activity where a user leaves a site, activities-email.ftl can't cope with the null value for role in activity_summary and the exception is generated.
      [ Steps to reproduce]
      1. Create a public site
      2. Create 1 user
      3. Add the user to the site as any role
      4.Remove the user from the site
      5. Open the JMX console
      6. Click on Alfresco->Schedule->DEFAULT->MonitoredCronTrigger->FeedNotifierTrigger->Operations->ExecuteNow()
      [ Actual Result]
      2017-07-19 15:27:37,303 ERROR [freemarker.runtime] [FeedNotifier1] Error executing FreeMarker template
      FreeMarker template error:
      The following has evaluated to null or missing:
      ==> {activity.activitySummary.pag [in template "workspace://SpacesStore/91b62c8a-dcc3-48c0-9b76-d5f41ddfe56d" at line 53, column 130]

      Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??

      The failing instruction (FTL stack trace):
      ==> ${activity.activitySummary.page?html!""} [in template "workspace://SpacesStore/91b62c8a-dcc3-48c0-9b76-d5f41ddfe56d" at line 53, column 128]
      #assign itemLink = "\la href=\"\${sha... [in template "workspace://SpacesStore/91b62c8a-dcc3-48c0-9b76-d5f41ddfe56d" at line 53, column 49]
      [ Expected Result]
      No errors and the email is sent





              • Assignee:
                repositoryteam Repository Team
                mwallach Michael Wallach
              • Votes:
                3 Vote for this issue
                9 Start watching this issue


                • Created:

                  Structure Helper Panel