tomcat7.0
15 years agoAdd in some debug, what is causing some TCK failures is a request/response pair not...
fhanik [Sat, 27 Mar 2010 01:50:13 +0000 (01:50 +0000)]
Add in some debug, what is causing some TCK failures is a request/response pair not being recycled properly

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

15 years agoAdjust startAsync().complete() behavior
fhanik [Fri, 26 Mar 2010 16:21:57 +0000 (16:21 +0000)]
Adjust startAsync().complete() behavior

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

15 years agoClean up
markt [Fri, 26 Mar 2010 15:43:44 +0000 (15:43 +0000)]
Clean up
 - Eclipse warnings
 - Unnecessary code
 - Line length
 - i18n message names

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

15 years agoAdjust examples to the latest implementation
fhanik [Fri, 26 Mar 2010 15:21:39 +0000 (15:21 +0000)]
Adjust examples to the latest implementation

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

15 years agoMark example servlets as async
fhanik [Fri, 26 Mar 2010 15:16:52 +0000 (15:16 +0000)]
Mark example servlets as async

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

15 years agoMark ResourceEntry.loadedClass as volatile.
kkolinko [Fri, 26 Mar 2010 14:40:30 +0000 (14:40 +0000)]
Mark ResourceEntry.loadedClass as volatile.
That is because WebappClassLoader#findClassInternal() uses double-checked locking to initialize this field.

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

15 years agoMissed a file in r927850
markt [Fri, 26 Mar 2010 13:48:30 +0000 (13:48 +0000)]
Missed a file in r927850

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

15 years agoImprove log message when deploying from configBase to make it clearer where xml file...
markt [Fri, 26 Mar 2010 13:47:18 +0000 (13:47 +0000)]
Improve log message when deploying from configBase to make it clearer where xml file is read from.
Javadoc tweak

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

15 years agospec says that "started" is defined as started until the thread has returned to the...
fhanik [Fri, 26 Mar 2010 13:38:02 +0000 (13:38 +0000)]
spec says that "started" is defined as started until the thread has returned to the container.

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

15 years agoRemove tests rendered unnecessary when context.xml files were moved from appBase...
markt [Fri, 26 Mar 2010 13:36:22 +0000 (13:36 +0000)]
Remove tests rendered unnecessary when context.xml files were moved from appBase to configBase

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

15 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=48992
kkolinko [Fri, 26 Mar 2010 10:28:47 +0000 (10:28 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48992
Fix XML tags in examples for CombinedRealm and LockOutRealm
Based on the patch by Fumiyuki Shimizu

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

15 years agoObey the rules on quoting
markt [Thu, 25 Mar 2010 22:46:40 +0000 (22:46 +0000)]
Obey the rules on quoting

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

15 years agoRe-fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45015
markt [Thu, 25 Mar 2010 22:46:12 +0000 (22:46 +0000)]
Re-fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45015
Regression in recent parsing re-factoring

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

15 years agoAdd an additional test case for bug 45015.
markt [Thu, 25 Mar 2010 21:41:46 +0000 (21:41 +0000)]
Add an additional test case for bug 45015.

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

15 years agoRemove unused imports
markt [Thu, 25 Mar 2010 20:43:23 +0000 (20:43 +0000)]
Remove unused imports

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

15 years agoprevent duplicate threads processing the same socket
fhanik [Thu, 25 Mar 2010 20:11:32 +0000 (20:11 +0000)]
prevent duplicate threads processing the same socket

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

15 years agoIgnore setenv.* so I don't accidently check it in
markt [Thu, 25 Mar 2010 19:47:33 +0000 (19:47 +0000)]
Ignore setenv.* so I don't accidently check it in

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

15 years agoUpdate project name
markt [Thu, 25 Mar 2010 19:45:51 +0000 (19:45 +0000)]
Update project name

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

15 years agoAddress various class-loader deadlock / sync issues
markt [Thu, 25 Mar 2010 19:44:41 +0000 (19:44 +0000)]
Address various class-loader deadlock / sync issues
https://issues.apache.org/bugzilla/show_bug.cgi?id=44041
https://issues.apache.org/bugzilla/show_bug.cgi?id=48694
https://issues.apache.org/bugzilla/show_bug.cgi?id=48903

Whilst parallel class-loading would be a nice feature, the various issues that have emerged have demonstrated that anything other than synchronized(this) is likely to cause issues.

Parallel class-loading will be explored for Tomcat 7 (disabled by default) and ported back to 6.0.x when proven to be stable.

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

15 years agoClean up. The setAsync can be done in a single bottleneck, instead mixed into the...
fhanik [Thu, 25 Mar 2010 19:32:46 +0000 (19:32 +0000)]
Clean up. The setAsync can be done in a single bottleneck, instead mixed into the processor

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

15 years agoTCK failures: Make valve Async aware - with some help from Filip
markt [Thu, 25 Mar 2010 18:11:52 +0000 (18:11 +0000)]
TCK failures: Make valve Async aware - with some help from Filip

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

15 years agorecycle properly
fhanik [Thu, 25 Mar 2010 17:07:55 +0000 (17:07 +0000)]
recycle properly

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

15 years agoEnable async behavior for the AJP connector
fhanik [Thu, 25 Mar 2010 16:41:05 +0000 (16:41 +0000)]
Enable async behavior for the AJP connector

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

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