tomcat7.0
15 years agoPrevent looping by correctly setting the socket wrapper async state
fhanik [Thu, 25 Mar 2010 15:45:13 +0000 (15:45 +0000)]
Prevent looping by correctly setting the socket wrapper async state

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@927455 13f79535-47bb-0310-9956-ffa450edef68

15 years agoMake sure start() and stop() are called on Wrappers. This was a regression in the...
markt [Thu, 25 Mar 2010 00:59:23 +0000 (00:59 +0000)]
Make sure start() and stop() are called on Wrappers. This was a regression in the recent Lifecycle changes.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@927247 13f79535-47bb-0310-9956-ffa450edef68

15 years agoUse context path in debug log message
markt [Thu, 25 Mar 2010 00:33:35 +0000 (00:33 +0000)]
Use context path in debug log message

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@927240 13f79535-47bb-0310-9956-ffa450edef68

15 years agoAdd in a slightly different behavior for dispatch.
fhanik [Wed, 24 Mar 2010 21:26:47 +0000 (21:26 +0000)]
Add in a slightly different behavior for dispatch.
dispatch() will return immediately, according to spec. But if dispatch is called from the tomcat worker thread, then the dispatch will not happen until the worker thread has backed out of the call. This prevents multiple threads being launched into the same request/response and causing potential concurrency issues.
The Async state machine guarantees that multiple dispatch can not be called.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@927182 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTracking down a memory leak. Add some debug logging to the mapper.
markt [Wed, 24 Mar 2010 16:13:29 +0000 (16:13 +0000)]
Tracking down a memory leak. Add some debug logging to the mapper.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@927105 13f79535-47bb-0310-9956-ffa450edef68

15 years agoAdd support for detecting Spring Security user names in the manager app
markt [Wed, 24 Mar 2010 14:05:15 +0000 (14:05 +0000)]
Add support for detecting Spring Security user names in the manager app

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@927062 13f79535-47bb-0310-9956-ffa450edef68

15 years agoSimpler fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=48790 based on...
markt [Wed, 24 Mar 2010 12:38:23 +0000 (12:38 +0000)]
Simpler fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=48790 based on a patch by kkolinko
Make maxActive thread safe. Probably unnecessary but technically a bug.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@927037 13f79535-47bb-0310-9956-ffa450edef68

15 years agoRevert fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=48790 in preparatio...
markt [Wed, 24 Mar 2010 12:26:11 +0000 (12:26 +0000)]
Revert fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=48790 in preparation for a simpler solution

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@927031 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTCK failures: Fix session expiry on cross-context requests. Need to test the local...
markt [Tue, 23 Mar 2010 18:43:19 +0000 (18:43 +0000)]
TCK failures: Fix session expiry on cross-context requests. Need to test the local session is valid before calling access() which will make it valid again.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@926716 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTCK failures: Don't delegate dispatcher type to wrapped request as it may well be...
markt [Tue, 23 Mar 2010 13:16:50 +0000 (13:16 +0000)]
TCK failures: Don't delegate dispatcher type to wrapped request as it may well be different.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@926562 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTCK failures: Look for the right element
markt [Mon, 22 Mar 2010 22:29:18 +0000 (22:29 +0000)]
TCK failures: Look for the right element

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@926379 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTCK failures: Make sure FilterDefs where async-support was not defined are set to...
markt [Mon, 22 Mar 2010 22:28:38 +0000 (22:28 +0000)]
TCK failures: Make sure FilterDefs where async-support was not defined are set to the default of false before being added to the context

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@926378 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTCK failures: Servlets do not support async by default
markt [Mon, 22 Mar 2010 22:27:24 +0000 (22:27 +0000)]
TCK failures: Servlets do not support async by default

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@926377 13f79535-47bb-0310-9956-ffa450edef68

15 years agoSRV.9.3 says we must throw a FNFE
markt [Mon, 22 Mar 2010 21:38:52 +0000 (21:38 +0000)]
SRV.9.3 says we must throw a FNFE

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@926355 13f79535-47bb-0310-9956-ffa450edef68

15 years agoProvide the method expected by the digester for adding security-role-ref elements
markt [Mon, 22 Mar 2010 21:00:24 +0000 (21:00 +0000)]
Provide the method expected by the digester for adding security-role-ref elements

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@926332 13f79535-47bb-0310-9956-ffa450edef68

15 years agoMore async stuff, implement timeout handling
fhanik [Mon, 22 Mar 2010 17:44:24 +0000 (17:44 +0000)]
More async stuff, implement timeout handling

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@926219 13f79535-47bb-0310-9956-ffa450edef68

15 years agoMake method names consistent with the names the digester looks for
markt [Mon, 22 Mar 2010 14:23:26 +0000 (14:23 +0000)]
Make method names consistent with the names the digester looks for

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@926101 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix some TCK issues. The behaviour is undefined in the spec, so go with the TCK requi...
markt [Mon, 22 Mar 2010 13:57:46 +0000 (13:57 +0000)]
Fix some TCK issues. The behaviour is undefined in the spec, so go with the TCK requirements

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@926087 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFire listeners in reverse order for requestDestroyed
markt [Mon, 22 Mar 2010 13:18:31 +0000 (13:18 +0000)]
Fire listeners in reverse order for requestDestroyed

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@926064 13f79535-47bb-0310-9956-ffa450edef68

15 years agoServlets added through the new ServletContext.addServlet(...) methods may not be...
markt [Mon, 22 Mar 2010 12:52:07 +0000 (12:52 +0000)]
Servlets added through the new ServletContext.addServlet(...) methods may not be initialised

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@926055 13f79535-47bb-0310-9956-ffa450edef68

15 years agoIt is valid to call startAsync() inside a dispatched request
markt [Mon, 22 Mar 2010 11:50:53 +0000 (11:50 +0000)]
It is valid to call startAsync() inside a dispatched request

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@926042 13f79535-47bb-0310-9956-ffa450edef68

15 years agoAlways use the InstanceManager to create listeners, filters & servlets
markt [Sun, 21 Mar 2010 22:18:03 +0000 (22:18 +0000)]
Always use the InstanceManager to create listeners, filters & servlets

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@925921 13f79535-47bb-0310-9956-ffa450edef68

15 years agoArrays indexes start at zero so no need for "... + 1"
markt [Sun, 21 Mar 2010 22:17:19 +0000 (22:17 +0000)]
Arrays indexes start at zero so no need for "... + 1"

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@925920 13f79535-47bb-0310-9956-ffa450edef68

15 years agoDoh! Return the newly created registrations rather than just creating work for the...
markt [Sun, 21 Mar 2010 21:53:16 +0000 (21:53 +0000)]
Doh! Return the newly created registrations rather than just creating work for the garbage collector.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@925905 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix various exceptions that prevented one of the TCK web applications from starting
markt [Sun, 21 Mar 2010 21:22:54 +0000 (21:22 +0000)]
Fix various exceptions that prevented one of the TCK web applications from starting

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@925901 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix a couple of ASync issues that were causing Servlet 3.0 TCK test failures.
markt [Sun, 21 Mar 2010 14:13:40 +0000 (14:13 +0000)]
Fix a couple of ASync issues that were causing Servlet 3.0 TCK test failures.
1. <quote section="2.3.3.3" page="17">
The complete method can be invoked by the container if the request is dispatched to a servlet that does not support async processing, or the target servlet called by AsyncContext.dispatch does not do a subsequent call to startAsync. In this case, it is the container's responsibility to call complete() as soon as that servlet's service method is exited.
</quote>
2. <quote section="2.3.3.3" page ="13">
public boolean isAsyncStarted() - Returns true if async processing has started on this request, and false otherwise. If this request has been dispatched using one of the AsyncContext.dispatch methods since it was put in asynchronous mode, or a call to AsynContext.complete is made, this method returns false.
</quote>

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@925769 13f79535-47bb-0310-9956-ffa450edef68

15 years agoMore async stuff, only timeout left
fhanik [Fri, 19 Mar 2010 14:22:09 +0000 (14:22 +0000)]
More async stuff, only timeout left

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@925232 13f79535-47bb-0310-9956-ffa450edef68

15 years agohttps://issues.apache.org/bugzilla/show_bug.cgi?id=48934
fhanik [Thu, 18 Mar 2010 13:54:27 +0000 (13:54 +0000)]
https://issues.apache.org/bugzilla/show_bug.cgi?id=48934
The wrong sender was disconnected, should only be the sender holding the actual TCP connections.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@924776 13f79535-47bb-0310-9956-ffa450edef68

15 years agoUse better variable name.
markt [Thu, 18 Mar 2010 10:25:04 +0000 (10:25 +0000)]
Use better variable name.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@924686 13f79535-47bb-0310-9956-ffa450edef68

15 years agoUse TEMP environment for storing the autoresponse file, and make sure the file was...
mturk [Fri, 12 Mar 2010 15:52:09 +0000 (15:52 +0000)]
Use TEMP environment for storing the autoresponse file, and make sure the file was created

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@922301 13f79535-47bb-0310-9956-ffa450edef68

15 years agocorrect a comment
kkolinko [Fri, 12 Mar 2010 14:28:46 +0000 (14:28 +0000)]
correct a comment

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@922273 13f79535-47bb-0310-9956-ffa450edef68

15 years agoUse real exit value if shutdown via stop
mturk [Fri, 12 Mar 2010 12:13:45 +0000 (12:13 +0000)]
Use real exit value if shutdown via stop

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@922228 13f79535-47bb-0310-9956-ffa450edef68

15 years agoSuppress anoying Terminate batch job prompt when hitting CTRL+C. Note however that...
mturk [Fri, 12 Mar 2010 11:38:43 +0000 (11:38 +0000)]
Suppress anoying Terminate batch job prompt when hitting CTRL+C. Note however that it leaves the file named yes in the bin directory

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@922223 13f79535-47bb-0310-9956-ffa450edef68

15 years agoRe-work the script to make it more Gump friendly
billbarker [Fri, 12 Mar 2010 03:52:01 +0000 (03:52 +0000)]
Re-work the script to make it more Gump friendly

No functional change for normal builds, but allows skipping a taskdef that Gump doesn't want or need when running tests.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@922136 13f79535-47bb-0310-9956-ffa450edef68

15 years agoAlternative fix for bug 48795. Add a new property to control if the next request...
markt [Thu, 11 Mar 2010 20:28:34 +0000 (20:28 +0000)]
Alternative fix for bug 48795. Add a new property to control if the next request always triggers recompilation after a compilation failure. Defaults to false and only applies in development mode

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@922010 13f79535-47bb-0310-9956-ffa450edef68

15 years agoMark the min(a,b) method as static.
kkolinko [Thu, 11 Mar 2010 18:32:39 +0000 (18:32 +0000)]
Mark the min(a,b) method as static.
Inspired by https://issues.apache.org/bugzilla/show_bug.cgi?id=44265

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921973 13f79535-47bb-0310-9956-ffa450edef68

15 years agoRevert 921464 for rework
markt [Thu, 11 Mar 2010 13:23:09 +0000 (13:23 +0000)]
Revert 921464 for rework

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921838 13f79535-47bb-0310-9956-ffa450edef68

15 years agoUpdate to NSIS 2.46
kkolinko [Wed, 10 Mar 2010 23:39:45 +0000 (23:39 +0000)]
Update to NSIS 2.46

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921630 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix download of commons-daemon-1.0.2:
kkolinko [Wed, 10 Mar 2010 23:36:38 +0000 (23:36 +0000)]
Fix download of commons-daemon-1.0.2:
The "destfile" parameter has to be specified for "downloadzip" task.
It specifies the file which absence triggers the download of the archive.
Thus, without it the archive was redownloaded again and again with each build.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921629 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48795
markt [Wed, 10 Mar 2010 17:35:43 +0000 (17:35 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48795
If compilation fails, always try to re-compile the next time around

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921464 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48793
markt [Wed, 10 Mar 2010 16:46:46 +0000 (16:46 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48793
Make catalina.sh more robust to different return values on different platforms
Patch provided by Thomas GL

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921444 13f79535-47bb-0310-9956-ffa450edef68

15 years agoRemainder of fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=48379
markt [Wed, 10 Mar 2010 16:18:10 +0000 (16:18 +0000)]
Remainder of fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=48379
Allow session cookie name to be configured per context
With this option, the servlet 3 options and system property there were just too many places this was being configured so the system property option has been removed for Tomcat 7.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921426 13f79535-47bb-0310-9956-ffa450edef68

15 years agoRemove some changes that have since made it into 6.0.x
markt [Wed, 10 Mar 2010 14:41:07 +0000 (14:41 +0000)]
Remove some changes that have since made it into 6.0.x

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921372 13f79535-47bb-0310-9956-ffa450edef68

15 years agoPartial fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=48379
markt [Wed, 10 Mar 2010 13:56:28 +0000 (13:56 +0000)]
Partial fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=48379
Allow session cookie path to be configured per context
With this option, the servlet 3 options and Connector.emptySessionPath there were just too many places this was being configured so the Connector option has been removed for Tomcat 7.
Based on a patch by Brane F. Gracnar

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921352 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48258 for TC7
markt [Wed, 10 Mar 2010 12:54:16 +0000 (12:54 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48258 for TC7
Allow session cookie domain to be over-ridden by context configuration in the same way httpOnly may be
Based on a patch by Donn Aiken

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921331 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48790
markt [Tue, 9 Mar 2010 22:19:44 +0000 (22:19 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48790
Make maxActive thread safe. Technically a bug but seems like overkill.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921166 13f79535-47bb-0310-9956-ffa450edef68

15 years agoMove the 48nnn bugs
markt [Tue, 9 Mar 2010 21:56:36 +0000 (21:56 +0000)]
Move the 48nnn bugs

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921150 13f79535-47bb-0310-9956-ffa450edef68

15 years agoToo many 48nnn bugs in context root
markt [Tue, 9 Mar 2010 21:52:26 +0000 (21:52 +0000)]
Too many 48nnn bugs in context root

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921147 13f79535-47bb-0310-9956-ffa450edef68

15 years agoBug 48701 test cases
markt [Tue, 9 Mar 2010 21:51:46 +0000 (21:51 +0000)]
Bug 48701 test cases

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921145 13f79535-47bb-0310-9956-ffa450edef68

15 years agoComplete fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=48701
markt [Tue, 9 Mar 2010 21:51:18 +0000 (21:51 +0000)]
Complete fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=48701

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921144 13f79535-47bb-0310-9956-ffa450edef68

15 years agoMake StandardContext aliases work with ServletContext.getResourcePaths()
markt [Tue, 9 Mar 2010 20:33:27 +0000 (20:33 +0000)]
Make StandardContext aliases work with ServletContext.getResourcePaths()

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@921110 13f79535-47bb-0310-9956-ffa450edef68

15 years agoRe-org some JSPs
markt [Tue, 9 Mar 2010 15:44:30 +0000 (15:44 +0000)]
Re-org some JSPs

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920926 13f79535-47bb-0310-9956-ffa450edef68

15 years agoCreate a directory for all the bug 45nnn JSPs to make things more manageable. I'll...
markt [Tue, 9 Mar 2010 15:36:10 +0000 (15:36 +0000)]
Create a directory for all the bug 45nnn JSPs to make things more manageable. I'll do the same for other groups of bugs as the numers grow.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920925 13f79535-47bb-0310-9956-ffa450edef68

15 years agohttps://issues.apache.org/bugzilla/show_bug.cgi?id=48007#c5
kkolinko [Tue, 9 Mar 2010 15:04:53 +0000 (15:04 +0000)]
https://issues.apache.org/bugzilla/show_bug.cgi?id=48007#c5
Improve exception processing in CustomObjectInputStream#resolveClass(),
to help find the cause behind BZ 48007.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920912 13f79535-47bb-0310-9956-ffa450edef68

15 years agoReview feedback
markt [Tue, 9 Mar 2010 15:01:05 +0000 (15:01 +0000)]
Review feedback
1. getNameFromAttribute() returns the attribute name, not the variable name and
2. This is a translation time test so the attribute value is not known

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920907 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48701
kkolinko [Tue, 9 Mar 2010 14:04:58 +0000 (14:04 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48701
Add a system property to allow disabling enforcement of a requirement of JSP.5.3.
The specification recommends, but does not require us to enforce it.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920880 13f79535-47bb-0310-9956-ffa450edef68

15 years agoCorrect description for STRICT_QUOTE_ESCAPING system property
kkolinko [Tue, 9 Mar 2010 13:21:30 +0000 (13:21 +0000)]
Correct description for STRICT_QUOTE_ESCAPING system property
C-T-R

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920860 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48760
markt [Tue, 9 Mar 2010 13:15:15 +0000 (13:15 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48760
Remove potential race condition that can result in multiple threads trying to use the same InputStream

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920858 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48737
markt [Tue, 9 Mar 2010 12:30:37 +0000 (12:30 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48737
Don't assume paths that start with /META-INF/... are always in JARs. This is not true for some IDEs
Patch provided by Fabrizio Giustina

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920840 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48729
markt [Tue, 9 Mar 2010 12:14:23 +0000 (12:14 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48729
Return roles defined by both userRoleName and roleName mechanisms
Patch provided by 'eric'

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920824 13f79535-47bb-0310-9956-ffa450edef68

15 years agoRemove unnecessary duplication
markt [Tue, 9 Mar 2010 12:08:17 +0000 (12:08 +0000)]
Remove unnecessary duplication

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920820 13f79535-47bb-0310-9956-ffa450edef68

15 years agoEclipse warnings
markt [Tue, 9 Mar 2010 12:02:43 +0000 (12:02 +0000)]
Eclipse warnings

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920818 13f79535-47bb-0310-9956-ffa450edef68

15 years agoUpdated the tests because r920110 was reverted in r920608.
kkolinko [Tue, 9 Mar 2010 02:58:50 +0000 (02:58 +0000)]
Updated the tests because r920110 was reverted in r920608.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920632 13f79535-47bb-0310-9956-ffa450edef68

15 years agoRevert r920110
kkolinko [Tue, 9 Mar 2010 01:28:14 +0000 (01:28 +0000)]
Revert r920110
Compatibility with JSP 1.2 tag libraries had to be covered by JSP 2.0 specification,
see "Backwards Compatibility with JSP 1.2" in the Preface part of JSP 2.0 specification,
and there is no provision for this feature.
Discussed in the Re: r920055 thread on dev@

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920608 13f79535-47bb-0310-9956-ffa450edef68

15 years agoAmendment for BZ 48668 fixes.
kkolinko [Tue, 9 Mar 2010 00:43:23 +0000 (00:43 +0000)]
Amendment for BZ 48668 fixes.
Use setter methods that accept String value to set pageInfo properties.
Throw an exception if tagInfo is not available for a tag file or requiredVersion is not parseable. (Both of that should not happen).

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920596 13f79535-47bb-0310-9956-ffa450edef68

15 years agoJavaDoc correction
kkolinko [Tue, 9 Mar 2010 00:04:30 +0000 (00:04 +0000)]
JavaDoc correction
C-T-R

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920580 13f79535-47bb-0310-9956-ffa450edef68

15 years agoRevisit https://issues.apache.org/bugzilla/show_bug.cgi?id=48701
markt [Mon, 8 Mar 2010 21:53:29 +0000 (21:53 +0000)]
Revisit https://issues.apache.org/bugzilla/show_bug.cgi?id=48701
Allow TagVariableInfo as well as VariableInfo to introduce objects later used by <jsp:getProperty> - JSP.5.3

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920532 13f79535-47bb-0310-9956-ffa450edef68

15 years agoWhitespace
markt [Mon, 8 Mar 2010 20:59:18 +0000 (20:59 +0000)]
Whitespace

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920506 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48661
markt [Mon, 8 Mar 2010 18:58:28 +0000 (18:58 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48661
If the response has been committed, include the error page like Jasper does

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920449 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48629
markt [Mon, 8 Mar 2010 17:59:51 +0000 (17:59 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48629
Make nested role search work with username as well as DN
Add roleNested to the docs
Patch provided by Felix Schumacher

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920422 13f79535-47bb-0310-9956-ffa450edef68

15 years agoUse the Lifecycle state to dtermine if the context is in the correct state to allow...
markt [Mon, 8 Mar 2010 17:22:33 +0000 (17:22 +0000)]
Use the Lifecycle state to dtermine if the context is in the correct state to allow configuration

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920410 13f79535-47bb-0310-9956-ffa450edef68

15 years agomore work towards making the JIO connector ready for async
fhanik [Mon, 8 Mar 2010 16:38:35 +0000 (16:38 +0000)]
more work towards making the JIO connector ready for async

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920392 13f79535-47bb-0310-9956-ffa450edef68

15 years agoAdd context name to leak detection log messages
markt [Mon, 8 Mar 2010 12:45:56 +0000 (12:45 +0000)]
Add context name to leak detection log messages

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920298 13f79535-47bb-0310-9956-ffa450edef68

15 years agoHandle component failure without throwing a whole stack of exceptions
markt [Mon, 8 Mar 2010 12:39:57 +0000 (12:39 +0000)]
Handle component failure without throwing a whole stack of exceptions
Adds a new permitted transition from NEW to STOPPED that does not fire any events

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920297 13f79535-47bb-0310-9956-ffa450edef68

15 years agoNo need for separate ant download
markt [Mon, 8 Mar 2010 10:14:44 +0000 (10:14 +0000)]
No need for separate ant download

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920257 13f79535-47bb-0310-9956-ffa450edef68

15 years agoUpdate change log
markt [Sun, 7 Mar 2010 21:30:54 +0000 (21:30 +0000)]
Update change log

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920123 13f79535-47bb-0310-9956-ffa450edef68

15 years agoLifecycle refactoring - ContainerBase
markt [Sun, 7 Mar 2010 21:30:32 +0000 (21:30 +0000)]
Lifecycle refactoring - ContainerBase
Adds a new CONFIGURE event to allow Context to fire the START event at the right time
Context fires START a little later
ReplicatedContext takes advantage of LifecycleBase ensuring start() is only called once

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920122 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix intermittent test failures
markt [Sun, 7 Mar 2010 21:25:37 +0000 (21:25 +0000)]
Fix intermittent test failures

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920120 13f79535-47bb-0310-9956-ffa450edef68

15 years agoisELIgnored depends on library version and web.xml declaration
markt [Sun, 7 Mar 2010 20:54:01 +0000 (20:54 +0000)]
isELIgnored depends on library version and web.xml declaration

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920110 13f79535-47bb-0310-9956-ffa450edef68

15 years agoRename no-el to el-as-literal
markt [Sun, 7 Mar 2010 20:51:34 +0000 (20:51 +0000)]
Rename no-el to el-as-literal
Add tests for 2.3, 2.4 & 2.5 webapps with Tag libraries that require various JSP versions
These currently all work and I think some should fail - looking into that next

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920109 13f79535-47bb-0310-9956-ffa450edef68

15 years agoTest that tags from libraries that declare various JSP versions have EL and deferred...
markt [Sun, 7 Mar 2010 20:32:26 +0000 (20:32 +0000)]
Test that tags from libraries that declare various JSP versions have EL and deferred EL enabled/disabled as appropriate.
This currently triggers a failure - fix to follow shortly.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920096 13f79535-47bb-0310-9956-ffa450edef68

15 years agoExtend the no-el test to cover deferred expressions
markt [Sun, 7 Mar 2010 20:29:39 +0000 (20:29 +0000)]
Extend the no-el test to cover deferred expressions

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920092 13f79535-47bb-0310-9956-ffa450edef68

15 years agoBoth TLD and web.xml determine if deferred EL syntax is treated as EL or as a literal
markt [Sun, 7 Mar 2010 18:45:50 +0000 (18:45 +0000)]
Both TLD and web.xml determine if deferred EL syntax is treated as EL or as a literal

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920055 13f79535-47bb-0310-9956-ffa450edef68

15 years agoLine length
markt [Sun, 7 Mar 2010 16:22:32 +0000 (16:22 +0000)]
Line length

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920025 13f79535-47bb-0310-9956-ffa450edef68

15 years agoMake getVersion(), getMagorVersion() and getMinorVersion() return consistent values
markt [Sun, 7 Mar 2010 11:41:27 +0000 (11:41 +0000)]
Make getVersion(), getMagorVersion() and getMinorVersion() return consistent values

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919974 13f79535-47bb-0310-9956-ffa450edef68

15 years agoEnsure result of getVersion() is consistent with getMajorVersion() and getMinorVersion()
markt [Sun, 7 Mar 2010 11:39:39 +0000 (11:39 +0000)]
Ensure result of getVersion() is consistent with getMajorVersion() and getMinorVersion()
With the current code this fails. Patch to fix this to follow.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919973 13f79535-47bb-0310-9956-ffa450edef68

15 years agoRemove the TestAll suite. Ant doesn't use it, IDEs don't need it and it is often...
markt [Sun, 7 Mar 2010 11:31:00 +0000 (11:31 +0000)]
Remove the TestAll suite. Ant doesn't use it, IDEs don't need it and it is often out of sync with the tests

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919969 13f79535-47bb-0310-9956-ffa450edef68

15 years agoCheck all versions are correctly parsed
markt [Sun, 7 Mar 2010 11:27:20 +0000 (11:27 +0000)]
Check all versions are correctly parsed

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919968 13f79535-47bb-0310-9956-ffa450edef68

15 years agoAdd a test the EL doesn't work if the web-app is a 2.3 web-app
markt [Sun, 7 Mar 2010 11:09:09 +0000 (11:09 +0000)]
Add a test the EL doesn't work if the web-app is a 2.3 web-app

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919966 13f79535-47bb-0310-9956-ffa450edef68

15 years agoRename webapp to allow tetsing with webapps with different servlet spec versions...
markt [Sun, 7 Mar 2010 10:16:38 +0000 (10:16 +0000)]
Rename webapp to allow tetsing with webapps with different servlet spec versions in web.xml

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919961 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48668
kkolinko [Sun, 7 Mar 2010 02:43:12 +0000 (02:43 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48668
Fix remaining issues in BZ48668
The idea behind this change is to make ELParser aware about isDeferredAsLiteral option.
Before this change ELParser was used to parse an attribute regardless of isELIgnored or isDeferredSyntaxAllowedAsLiteral values. With this change we do not use ELParser when isELIgnored is true and ELParser does not parse '#{' in expressions when isDeferredSyntaxAllowedAsLiteral is true.
It simplified the code in many places.
Also, servlet specification version from web.xml and JSP specification version from TLD file are now taken into account when determining the default values for isELIgnored and isDeferredSyntaxAllowedAsLiteral. As far as I understand the code, previously only isELIgnored was determined by the servlet specification version.

TstParser.java, bug48668a.jsp:
I reenabled the tests that now pass with these changes applied.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919914 13f79535-47bb-0310-9956-ffa450edef68

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48668
kkolinko [Sat, 6 Mar 2010 21:03:14 +0000 (21:03 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48668
Honor isELIgnored and isDeferredSyntaxAllowed in the Parser

Uncommented the test cases in TestParser/bug48668a.jsp that now are passing.
The ##12,13,16,17 remain commented, because they are still failing.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919851 13f79535-47bb-0310-9956-ffa450edef68

15 years agoAdditional tests for https://issues.apache.org/bugzilla/show_bug.cgi?id=48668
kkolinko [Sat, 6 Mar 2010 20:46:06 +0000 (20:46 +0000)]
Additional tests for https://issues.apache.org/bugzilla/show_bug.cgi?id=48668
The TestCase currently passes:
the parts that do not pass currently are commented-out:
- in bug48668a.jsp: those that prevent JSP from being compiled
- in TestParser.java: also those that provide wrong output.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919847 13f79535-47bb-0310-9956-ffa450edef68

15 years agoremove extra newline character
kkolinko [Sat, 6 Mar 2010 19:36:53 +0000 (19:36 +0000)]
remove extra newline character

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919828 13f79535-47bb-0310-9956-ffa450edef68

15 years agoShave a few seconds of the rebuild time if the manifests don't need to be updated
markt [Sat, 6 Mar 2010 15:52:40 +0000 (15:52 +0000)]
Shave a few seconds of the rebuild time if the manifests don't need to be updated

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919790 13f79535-47bb-0310-9956-ffa450edef68

15 years agoAdd comment to the tomcat-users.xml template used by the Tomcat exe installer on...
kkolinko [Sat, 6 Mar 2010 15:32:42 +0000 (15:32 +0000)]
Add comment to the tomcat-users.xml template used by the Tomcat exe installer on Windows.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919788 13f79535-47bb-0310-9956-ffa450edef68

15 years agoAdd comment about the "manager" role (copied from TC 5.5)
kkolinko [Sat, 6 Mar 2010 15:14:37 +0000 (15:14 +0000)]
Add comment about the "manager" role (copied from TC 5.5)

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919782 13f79535-47bb-0310-9956-ffa450edef68

15 years agoAdd a comment about comment to tomcat-users.xml
kkolinko [Sat, 6 Mar 2010 15:08:58 +0000 (15:08 +0000)]
Add a comment about comment to tomcat-users.xml

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919781 13f79535-47bb-0310-9956-ffa450edef68

15 years agotrivial: correct a link on an image on the jsp-examples index page
kkolinko [Sat, 6 Mar 2010 14:28:21 +0000 (14:28 +0000)]
trivial: correct a link on an image on the jsp-examples index page

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919769 13f79535-47bb-0310-9956-ffa450edef68

15 years agoLifecycle refactoring - Manager
markt [Sat, 6 Mar 2010 13:03:11 +0000 (13:03 +0000)]
Lifecycle refactoring - Manager
Lifecycle.START event fired too early in a number of cases
Added toString() for use in Lifecycle error messages

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@919756 13f79535-47bb-0310-9956-ffa450edef68