QueryString Key with Accent crahes Contrib.Cache

Topics: General, Troubleshooting
Developer
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...

http://localhost:8088/?é

which should translate to the url...

http://localhost:8088/?%C3%A9

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?
Coordinator
Mar 26, 2013 at 7:21 AM
Please file a bug.
Developer
Apr 3, 2013 at 3:01 PM
Edited Apr 3, 2013 at 3:55 PM