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

Context object is not exposed to login form in Magnolia 5.4

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.4.3
    • 5.4.1
    • resource-loader
    • Kromeriz 15
    • 2

      I don't know exactly how to describe it but as reported in SUPPORT-5028 Magnolia 5.4.1 is not backwards compatible with regards to our custom (FTL-based) login pages which we load as resources.

      We have the following use case which we use in Magnolia 5.3 (and earlier) but which no longer works in 5.4.1:

      Situation in 5.3:

      • we have a custom login page in our custom module located in: /src/main/resources/mgnl-resources/custom-website/custom-login-form/custom-login-form.ftl. this login page contains Freemarker Magnolia logic such as:
         [#if ctx.user.name == 'anonymous']
      • we have configured our website to use this login form (when a user attempts to access secure content) in the securityCallbackFilter: /mgnl-resources/custom-website/custom-login-form/custom-login-form.ftl

      Because of this issue we cannot migrate our projects to Magnolia 5.4 at this stage (without losing functionality).

        Acceptance criteria

              efochr Evzen Fochr
              edgar Edgar Vonk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 1d 4.5h
                    1d 4.5h