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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5
    • Fix Version/s: 4.4.12, 4.5.12
    • Component/s: None
    • Labels:
    • Environment:
      Mac OSX , Java 1.6
    • Magnolia Release:
      4.4.12, 4.5.12

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: