Bug 50233 - support long URLs (more than 2048)
Summary: support long URLs (more than 2048)
Status: RESOLVED FIXED
Alias: None
Product: Tomcat Connectors
Classification: Unclassified
Component: isapi (show other bugs)
Version: 1.2.28
Hardware: PC Windows Server 2003
: P2 critical with 10 votes (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-08 06:41 UTC by Eyal
Modified: 2011-11-01 17:14 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)