1

Closed

Problem with long URL's and query strings

description

IIRF returns a 404 error code when a URL (with query parameters) exceeds 2048 characters
This issue has been commented on in previous issues (see comments in http://iirf.codeplex.com/WorkItem/View.aspx?WorkItemId=19175 )
 
I believe the way IIRF determines the maximum length to be incorrect.
1) long URL's work correctly when IIRF is not installed. Install IIRF and the it starts returning 404 errors.
2) The maximum length of URL's appears to be modifiable in registry setting http://support.microsoft.com/kb/820129 - where as IIRF uses an effectively hard-coded value.
 
I think the fact that a page/URL works without IIRF installed, then installing IIRF breaks functionality is an indication that this issue needs to be fixed.
 
This was all tested with IIS 6.0
 
Cheers,
Aaron

file attachments

Closed Apr 27, 2010 at 11:14 PM by Cheeso
fixed in changeset 65798. First binary 2.1.1.11.

comments

Cheeso wrote Apr 20, 2010 at 5:07 AM

Thanks, Aaron. You're right that IIRF v2.1.1.9 doesn't correctly apply a max length limit on URLs. I looked at that KB article but I did not see a clear description of a key that sets the maximum URL length. Can you help me out here - which registry key do you think it is?

Cheeso wrote Apr 20, 2010 at 5:10 AM

Here's a uild of IIRF with the limits removed, I believe. I'd like you to test it out if you can. Thanks

Cheeso wrote Apr 20, 2010 at 5:11 AM

That build is v2.1.1.10. Just download, unzip , and copy that IIRF.dll over your existing IIRF.dll. You can also put the IIRF.pdb in the same directory - it will allow IIRF to generate a stack trace in case of exception.

AaronFoote wrote Apr 20, 2010 at 6:27 AM

Thanks for the response Cheeso. I'm not entirely sure myself of which key sets the max length, that article is a little ambiguous. My current best guess is MaxFieldLength - but I would have thought request headers such as Host: and User-Agent: would be distinct from the GET http://.... line in the request.
I'll do some testing to nut out which settings are relevant and get back to you in the next few days.

Cheers,
Aaron

Cheeso wrote Apr 22, 2010 at 1:58 PM

Any chance to test that build of IIRF?

Cheeso wrote Apr 26, 2010 at 4:11 PM

Aaron - Any update?

Cheeso wrote Apr 27, 2010 at 7:49 PM

Still looking for an update.