Uploaded image for project: 'Magnolia Form Module'
  1. Magnolia Form Module
  2. MGNLFORM-159

Change the editor used for the Confirmation E-Mail

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.5
    • Component/s: None
    • Labels:
      None
    • Magnolia Release:
      4.5.8

      Description

      This issue can best be reproduced using the demo site. Here are the steps:

      1. Log into demo author

      2. Using the JCR browser (website) navigate to: /demo-project/members-area/registration/content/0
      Look at the property confirmContentTypehtml

      It should have the following:

      [#assign pur = ctx.pur][#assign targetPage ="/demo-project/members-area/registration/double-opt-in-confirmation.html"?url('ISO-8859-1')][#assign href="${pur.baseUrl}/.magnolia/pages/user-validation.html?userId=${pur.userId}&regStamp=${pur.regStamp}&targetPage=${targetPage}"]<html><body><p>Dear ${fullName},</p><p>Please follow this link in order to validate your account: <a href="${href}">Verify your user</a></p><p>Thank you !</p></body></html>
      

      3. Now, open the page: /demo-project/members-area/registration

      4. Edit the "User Registration Form" in the "Content" section

      5. When the dialog opens, simply click "Save"

      6. Repeat step 2 and observe the property confirmContentTypehtml

      It will now have the following:

      <p>Dear ${fullName},</p> <p>Please follow this link in order to validate your account: <a href="${link:{uuid:{8417fe0e-8f61-4d21-bdf1-c9c23b13ba14},repository:{website},handle:{/demo-project/members-area/registration/content/0/},nodeData:{},extension:{html}}}">Verify your user</a></p> <p>Thank you !</p>
      

      This creates an issue if the registration page gets activated. If the email confirmation is activated in the state that is shown in step 6 it will cause an internal server error if someone tries to register for an account. This is due to a freemarker parse error at the colon right after ${link.

      The root of this problem is that we cannot use the fckEditor for editing the confirmation email. If freemarker is too be use here we need to use the code editor so that the freemarker is not stripped/changed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ochytil Ondrej Chytil
                Reporter:
                rgange Richard Gange
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: