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

Context object is not exposed to login form in Magnolia 5.4

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 5.4.1
    • Fix Version/s: 5.4.3
    • Component/s: resource-loader
    • Labels:
    • Sprint:
      Kromeriz 15
    • Story Points:
      2

      Description

      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).

        Checklists

        Acceptance criteria

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                    Checklists

                    Bug DoR
                    DoD

                      Time Tracking

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