This project is read-only.

QueryString Key with Accent crahes Contrib.Cache

Topics: General, Troubleshooting
Mar 25, 2013 at 1:18 PM
Edited Mar 25, 2013 at 2:25 PM
I recently ran into an issue with Contrib.Cache, I noticed some crashes and traced it down to special characters being used in the query string.

For instance, if you cook Orchard with the blog recipe, and enabled Contrib.Cache, head to the url...


which should translate to the url...


queryString.AllKeys contains an array with a single null value...
Causing the following crash... in OutputCacheFilter.cs:183

Value cannot be null.
Parameter name: key

I can bypass the issue by checking for key==null, but that would obviously serve detrimental for my cache.

Any ideas?
Mar 26, 2013 at 7:21 AM
Please file a bug.
Apr 3, 2013 at 3:01 PM
Edited Apr 3, 2013 at 3:55 PM