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

Generation of CSRF token is too expensive

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.7.9, 6.1.7, 6.2.4
    • 6.1.6, 6.2.3
    • None
    • demopublic

    Description

      When disabling the country filter, response time gets noticeably slower. This can be reproduced in our demo but not in a local installation with the bundle. 

      Steps to reproduce:

      • Execute the following command in order to measure the response time:
        curl -so /dev/null -w '%{time_starttransfer} Seconds \n' https://demopublic.magnolia-cms.com
      • Add configuration property /server/filters/country@enabled with value false in order to disable the filter and execute same command than in step 1.

      Expected result: response time is similar or even lower as filter execution is avoided.
      Actual result: response time is noticeably higher:

      $ curl -so /dev/null -w '%{time_starttransfer} Seconds \n' https://demopublic.magnolia-cms.com/travel 
      0.998357 Seconds 
      
      COUNTRY FILTER IS DISABLED
      
      $ curl -so /dev/null -w '%{time_starttransfer} Seconds \n' https://demopublic.magnolia-cms.com/travel 
      2.363181 Seconds 
      
      
      

      Timebox for investigation: 3 SP

      • Verify findings, can they be used as a solution?
      • Consider potential implications (login page CSRF)

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                apchelintcev Aleksandr Pchelintcev
                jayala Jonathan Ayala
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 6h 11m
                      6h 11m