Hi Gian,

I saw your post with interest, but didn't respond at the time. 

If it is reproducible, I think it is worth filing a bug in Magnolia's JIRA, as 
it is definitely an issue.
I think most users won't be affected by this, as the standard configuration 
disables the cache if any parameters are present in the request. So it doesn't 
matter what the cache key is, since there's no cacheing anyway with params.
However, I think it is still a valid issue, affecting some users with a more 
advanced cache config.

As a workaround for you for the moment, it is possible to subclass the 
DefaultCacheKey with a class that takes the multi-value params into account.

Regards from Vienna,

Richard



-----Ursprüngliche Nachricht-----
Von: dev-list-ow...@magnolia-cms.com [mailto:dev-list-ow...@magnolia-cms.com] 
Im Auftrag von Gian Luca Ortelli (via Magnolia Forums)
Gesendet: Dienstag, 19. Juni 2012 13:40
An: Magnolia Dev List
Betreff: [magnolia-dev] DefaultCacheKey and multi value URL parameters

Hi,

I have already posted this on the user forum but I had no response; maybe this 
forum is more suitable to the topic.

While debugging cache problems on my application, I found about this 
DefaultCacheKey class which is used as a key for the page cache.

It stores the parameters of a URL in a Map<String, String>; therefore not all 
parameters are stored if the URL is something like

http://host/path?a=1&a=2

This might cause different URLs to end up having equal keys.

Is there a reason why multivalue URL parameters are not handled?

Greetings,
  Gianluca

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=9632dab9-8490-4e6d-8d48-8d46f5eaf188


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------





----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to