You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/11/04 19:43:14 UTC
[Bug 54096] New: env-entry rejects legal types
https://issues.apache.org/bugzilla/show_bug.cgi?id=54096
Priority: P2
Bug ID: 54096
Assignee: dev@tomcat.apache.org
Summary: env-entry rejects legal types
Severity: normal
Classification: Unclassified
OS: Linux
Reporter: mthornton@optrak.com
Hardware: PC
Status: NEW
Version: 7.0.30
Component: Catalina
Product: Tomcat 7
In servlet 3.0 the type in an env-entry can be any type which has a public
constructor taking a single String (or character) as an argument. Tomcat only
accepts a fixed list of types (see NamingContextListener from line 813).
This is legal in web.xml but not accepted by tomcat:
<env-entry>
<env-entry-name>location</env-entry-name>
<env-entry-type>java.io.File</env-entry-type>
<env-entry-value>/var/lib/tomcat</env-entry-value>
</env-entry>
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 54096] env-entry rejects legal types
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54096
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the report and for tracking down the point in the code that needed
to be fixed.
This has been fixed (and a simple test case added) in trunk and 7.0.x and will
be included in 7.0.33 onwards.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 54096] env-entry rejects legal types
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54096
Mark Thornton <mt...@optrak.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mthornton@optrak.com
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org