Bug 50233

Summary: support long URLs (more than 2048)
Product: Tomcat Connectors Reporter: Eyal <eyah1234>
Component: isapiAssignee: Tomcat Developers Mailing List <dev>
Severity: critical    
Priority: P2    
Version: 1.2.28   
Target Milestone: ---   
Hardware: PC   
OS: Windows Server 2003   

Description Eyal 2010-11-08 06:41:49 UTC
The connector cannot handle URIs that are longer than 2047 characters.
The error sent back is: 
jk_isapi_plugin.c (1853): error while getting the url

The reason is that the URI fields are defined with the literal INTERNET_MAX_URL_LENGTH and it's probably too small in the environment in which the code was compiled.

IIS supports much longer URLs so this should be easy to fix.
Comment 1 Mladen Turk 2011-11-01 17:14:18 UTC
Fixed in the trunk and will be part of next release.
Both uri and query are now dynamically allocated and in theory have no limit.
Not however that we are still limited by AJP protocol itself which doesn't allow initial header to be larger then 8K (64K if large AJP message size is used)