tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject response.encodeURL("http://localhost:8080") produces an invalid URL?
Date Wed, 29 Jun 2011 11:10:26 GMT
Motivated by

https://issues.apache.org/jira/browse/WICKET-3841

I tested response.encodeURL("http://localhost:8080") and I get
http://localhost:8080;jsessionid=... (cookies off).

Note that there is no slash between the port and the sessionid path info.

According to my reading of RFC3986 (URIs), the input URI is a correct
URI, the resulting URI is not: because it has an authority, the rest
must be zero or more path-abempty, which always start with a slash.

Did anyone stumble over this yet? If there's no objections, I'll write a
patch and check, what the TCK has to say.

The spec does not see to contain any specification of encodeURL apart
from the JavaDoc.

Regards,

Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message