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

CLONE - URL's with multiple times a parameter with the same name cause cache collisions.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.4.12, 4.5.12
    • 4.5
    • None
    • Mac OSX , Java 1.6

      We have a page with a model class that uses one parameter ("constraint") which gets set multiple times in the url. e.g.
      http://www.wetenschap24.nl/ondemand.html?constraint=extra_field_nl_vpro_subsite%3Alabyrint&constraint=extra_field_nl_vpro_page_type%3AVideo

      However this does not work properly, all pages which end with same 'constraint' parameter get cached under the same cacheentry.

      This is caused by line 146 of info.magnolia.module.cache.cachepolicy.Default:
      params = MgnlContext.getWebContext().getParameters();

      This function flattens the parameters so every one only occurs once.
      info.magnolia.context.WebContextImpl.getParameters() even warns for that
      effect.

      This causes problems for every page which uses multiple times the same parameter.

        Acceptance criteria

              jsimak Jaroslav Simak
              rico.jansen Rico Jansen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD