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

Also handle UnsupportedOperationException for User implementation within the Freemarker model/wrapper when templates calls the getProperty method directly.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • freemarker, templating
    • None

      The info.magnolia.freemarker.models.UserModel is written to "hide" the UnsupportedOperationException (since MAGNOLIA-3037) only when using user.fullName - which gets interpreted as user.getProperty("fullName").

      Some of our templates still do user.getProperty("fullName"), and that falls out of the try/catch block of UserModel.

        Acceptance criteria

              Unassigned Unassigned
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD