Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006217 [Resin] minor always 03-09-19 15:17 03-09-19 15:17
Reporter stbu View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 4.0.61
Summary 0006217: 500 Servlet Exception when .; appears in URL *not* directly after a /
Description When ".;" appears somewhere within the Context-Path of a web-app or a URL in general, but not directly after a "/" then a Servlet Exception is raised rather than a proper Response such as 400 Bad Request / The request contains an illegal URL.

If these ".;" are not allowed to appear within the URL then Resin should rather respond with a 400 than a 500.

500 Servlet Exception

[show] java.lang.IllegalArgumentException: /mywebapp/subfolder/index.;html is
an invalid URL.

java.lang.IllegalArgumentException: /mywebapp/subfolder/index.;html is
an invalid URL.
    at com.caucho.server.dispatch.ServletInvocation.stripPathParameters(
    at com.caucho.server.dispatch.ServletInvocation.setContextURI(
    at com.caucho.server.dispatch.Invocation.setURI(
    at com.caucho.server.dispatch.InvocationDecoder.splitQueryAndUnescape(
    at com.caucho.server.http.AbstractHttpRequest.buildInvocation(
    at com.caucho.server.http.AbstractHttpRequest.getInvocation(
    at com.caucho.server.http.HttpRequest.handleRequest(
    at com.caucho.env.thread2.ResinThread2.runTasks(

Resin/4.0.61 Server: 'app-0'
Additional Information Steps to reproduce:
Download fresh Resin-4.0.61
cd webapps
mkdir -p mywebapp/subfolder
touch mywebapp/subfolder/index.html

Example problematic Requests causing 500 Servlet Exception
http://localhost:8080/mywebapp/subfolder/index.;html [^]
http://localhost:8080/mywebapp/sub.;folder/index.html [^]
http://localhost:8080/mywebapp.;/subfolder/index.html [^]

If the ".;" appears directly after a / the result is fine with a 400 Bad Request response such as:
http://localhost:8080/mywebapp/.;subfolder/index.html [^]
http://localhost:8080/mywebapp/subfolder/.;index.html [^]
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
03-09-19 15:17 stbu New Issue
03-09-19 15:17 stbu Issue Monitored: stbu

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
27 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker