Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-16

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.0.3
    • 5.0
    • None
    • Mac OSX , Java 1.6

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD