tomcat7.0
17 years agoAdd explicit lookaheads where they could be ambiguity. This resolves some TCK failure...
markt [Thu, 18 Sep 2008 19:42:54 +0000 (19:42 +0000)]
Add explicit lookaheads where they could be ambiguity. This resolves some TCK failures with the fix for 42565.

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

17 years agoFix ClassCastException when we try to cast a
rjung [Thu, 18 Sep 2008 17:08:10 +0000 (17:08 +0000)]
Fix ClassCastException when we try to cast a

NullPointerException to an ELException.
I still need to investigate where the NPE came from,
but simply casting seems unsafe in any case.

Use a cast if possible and recreate exception
otherwise.

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

17 years agoUse generics to improve type safetyness.
rjung [Thu, 18 Sep 2008 17:03:38 +0000 (17:03 +0000)]
Use generics to improve type safetyness.

Please check readExternal() in FunctionMapperImpl
and VariableMapperImpl. The type of the persisted
Map has changed. Does this pose a consistency
problem with other components or older, already
persisted Maps?

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

17 years agoTab police and trailing whitespace deletion
rjung [Thu, 18 Sep 2008 16:48:10 +0000 (16:48 +0000)]
Tab police and trailing whitespace deletion
for package a.o.el (except for generated java files).

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45419
markt [Wed, 17 Sep 2008 19:26:22 +0000 (19:26 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45419
Set the Accept-Ranges header on content served from the DefaultServlet. This can be disabled via configuration if required.

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

17 years agoAdd generics to default servlet and fix other Eclipse warnings. No functional change.
markt [Wed, 17 Sep 2008 19:10:01 +0000 (19:10 +0000)]
Add generics to default servlet and fix other Eclipse warnings. No functional change.

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45427
markt [Wed, 17 Sep 2008 12:46:45 +0000 (12:46 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45427
Yet another EL bug. Correct paring of quoted stings.

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45441
markt [Wed, 17 Sep 2008 11:11:42 +0000 (11:11 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45441
Filters for INCLUDE/FORWARD need to be matched against servletPath+pathinfo

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45823
markt [Wed, 17 Sep 2008 10:56:37 +0000 (10:56 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45823
Log '-' rather than null when request headers are not present
Based on a patch by Per Landberg

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45447
markt [Tue, 16 Sep 2008 21:37:02 +0000 (21:37 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45447
Updated Spanish translations. Patch provided by Jesus Marin.

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45451
markt [Tue, 16 Sep 2008 21:12:38 +0000 (21:12 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45451
Testing for this threw up all sorts of other failures around use of \${...} These should all now be fixed. The two pass parsing means we can do away with the previous 'replace with unused unicode character' trick.

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

17 years agoCode cleanup. Fix indents. Removed deprecated code. Fixed generics warnings.
markt [Mon, 15 Sep 2008 22:14:00 +0000 (22:14 +0000)]
Code cleanup. Fix indents. Removed deprecated code. Fixed generics warnings.

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

17 years agoFix broken links reported on users list.
markt [Mon, 15 Sep 2008 00:02:11 +0000 (00:02 +0000)]
Fix broken links reported on users list.

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

17 years agoImprove previous fix to handle WAR deployment
markt [Sun, 14 Sep 2008 20:43:15 +0000 (20:43 +0000)]
Improve previous fix to handle WAR deployment

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45785
markt [Sun, 14 Sep 2008 20:01:21 +0000 (20:01 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45785
Ignore directories named xxx.jar in WEB-INF/lib

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

17 years agoSome clean up in o.a.c.util
markt [Sun, 14 Sep 2008 19:45:08 +0000 (19:45 +0000)]
Some clean up in o.a.c.util
Use generics, remove unused code, fix various Eclipse warnings.

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

17 years agoAdd missing executor element in NIO docs
markt [Sat, 13 Sep 2008 22:47:21 +0000 (22:47 +0000)]
Add missing executor element in NIO docs

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

17 years agoAdd HttpOnly support to session cookies. It is enabled by default and can be disabled...
markt [Sat, 13 Sep 2008 17:39:47 +0000 (17:39 +0000)]
Add HttpOnly support to session cookies. It is enabled by default and can be disabled at via manager configuration.
Based on a patch by Jim Manico.

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

17 years agoLog a warning if we create the maximum number of threads
markt [Sat, 13 Sep 2008 14:24:47 +0000 (14:24 +0000)]
Log a warning if we create the maximum number of threads

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

17 years agoFix copy and paste error
markt [Fri, 12 Sep 2008 20:02:45 +0000 (20:02 +0000)]
Fix copy and paste error

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

17 years agoInclude fix for 43117 in trunk
markt [Wed, 10 Sep 2008 20:02:34 +0000 (20:02 +0000)]
Include fix for 43117 in trunk

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

17 years agoCorrect access check
markt [Wed, 10 Sep 2008 19:43:23 +0000 (19:43 +0000)]
Correct access check

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

17 years agoHandle session suffix rewrite with parallel requests from same client
pero [Tue, 9 Sep 2008 06:18:32 +0000 (06:18 +0000)]
Handle session suffix rewrite with parallel requests from same client

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

17 years agoclarify steps
fhanik [Sun, 7 Sep 2008 18:16:40 +0000 (18:16 +0000)]
clarify steps

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

17 years agodelete not used sample
fhanik [Sun, 7 Sep 2008 17:24:17 +0000 (17:24 +0000)]
delete not used sample

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

17 years agoMerging from sandbox: the casts are redundant for now, but in a future commit Request...
costin [Sun, 7 Sep 2008 15:36:46 +0000 (15:36 +0000)]
Merging from sandbox: the casts are redundant for now, but in a future commit RequestInfo won't directly depend on JMX
( this is the only dep between base coyote/tomcat-lite and JMX ). Tomcat-lite still uses JMX, but optionally.
Also exposing the endpoint, for easier programmatic config.

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

17 years agoCorrect log name. Add warning about user name uniqueness.
markt [Sat, 6 Sep 2008 22:05:35 +0000 (22:05 +0000)]
Correct log name. Add warning about user name uniqueness.

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

17 years agoReduce log statement to 1 line using
rjung [Thu, 4 Sep 2008 07:02:33 +0000 (07:02 +0000)]
Reduce log statement to 1 line using
more precise info, in the expected case and only
log the detailed info in the unexpected case.

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

17 years agoAdd a new combined Realm that can be used to try authenticating against multiple...
markt [Wed, 3 Sep 2008 22:18:39 +0000 (22:18 +0000)]
Add a new combined Realm that can be used to try authenticating against multiple realms.

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

17 years agoFix typos in javadoc
markt [Wed, 3 Sep 2008 22:08:49 +0000 (22:08 +0000)]
Fix typos in javadoc

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

17 years agoFix line duplication in previous commit r691675.
rjung [Wed, 3 Sep 2008 16:44:07 +0000 (16:44 +0000)]
Fix line duplication in previous commit r691675.

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

17 years agoEnhance http://svn.apache.org/viewvc?rev=646543&view=rev
rjung [Wed, 3 Sep 2008 16:38:17 +0000 (16:38 +0000)]
Enhance svn.apache.org/viewvc?rev=646543&view=rev
Don't drop the error silently. Instead use the root logger
already initialized for the system class loader
to write out a warning.
Backport to TC 5.5 will need a couple of casts because
of the lack of generics and the use of HashMaps.

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

17 years agoa fully working demo, had to set the content type for the new version of the dojo...
fhanik [Wed, 3 Sep 2008 16:28:41 +0000 (16:28 +0000)]
a fully working demo, had to set the content type for the new version of the dojo toolkit to properly parse the json data, otherwise it thinks it is xml

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

17 years agoupdate json library version to the latest
fhanik [Wed, 3 Sep 2008 16:07:33 +0000 (16:07 +0000)]
update json library version to the latest

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

17 years agoWorking on the new dojo toolkit to get it to work properly
fhanik [Wed, 3 Sep 2008 15:52:26 +0000 (15:52 +0000)]
Working on the new dojo toolkit to get it to work properly

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

17 years agoDojo toolkit should be downloaded and not included in SVN
fhanik [Wed, 3 Sep 2008 15:25:03 +0000 (15:25 +0000)]
Dojo toolkit should be downloaded and not included in SVN

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

17 years agoupdate notice file
fhanik [Wed, 3 Sep 2008 01:34:24 +0000 (01:34 +0000)]
update notice file

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45618
markt [Tue, 2 Sep 2008 21:44:37 +0000 (21:44 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45618
Make sure the selector is closed.
Almost certain not to be an issue in any real deployment but still - technically - a bug.

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

17 years agoBuild the samples classes too
fhanik [Tue, 2 Sep 2008 20:56:05 +0000 (20:56 +0000)]
Build the samples classes too

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

17 years agoadd back in the lost license header
fhanik [Tue, 2 Sep 2008 20:24:26 +0000 (20:24 +0000)]
add back in the lost license header

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

17 years agoupdate with bayeux impl
fhanik [Tue, 2 Sep 2008 20:01:45 +0000 (20:01 +0000)]
update with bayeux impl

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

17 years agoAdded in Bayeux implementation, as per
fhanik [Tue, 2 Sep 2008 20:00:36 +0000 (20:00 +0000)]
Added in Bayeux implementation, as per
https://issues.apache.org/bugzilla/show_bug.cgi?id=45413
to build,
ant download
ant
ant -f extras.xml bayeux

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45628
markt [Tue, 2 Sep 2008 15:46:00 +0000 (15:46 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45628
Jars that declare no deps should return that deps are satisfied

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45666
markt [Sun, 31 Aug 2008 21:06:01 +0000 (21:06 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45666
Patch provided by Tom Wadzinski

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45648
markt [Sun, 31 Aug 2008 19:35:05 +0000 (19:35 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45648
Note ELParser.java is auto-generated

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45691
markt [Sun, 31 Aug 2008 13:47:57 +0000 (13:47 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45691
Make temporary variable name generation safe when multiple compilations are running in parallel

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

17 years agoTabs -> 8 spaces. No functional change
markt [Sun, 31 Aug 2008 11:40:56 +0000 (11:40 +0000)]
Tabs -> 8 spaces. No functional change

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

17 years agoFix typo
markt [Thu, 28 Aug 2008 13:10:36 +0000 (13:10 +0000)]
Fix typo

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

17 years agoFix wrong default in doc.
jfclere [Thu, 28 Aug 2008 08:23:27 +0000 (08:23 +0000)]
Fix wrong default in doc.

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

17 years agoFix for PR#45074
jfclere [Wed, 27 Aug 2008 07:42:58 +0000 (07:42 +0000)]
Fix for PR#45074

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

17 years agoFix for PR#44809
jfclere [Wed, 27 Aug 2008 07:23:40 +0000 (07:23 +0000)]
Fix for PR#44809

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

17 years agoRemove recycle of B2CConverter when used for URI conversion.
rjung [Mon, 25 Aug 2008 20:08:05 +0000 (20:08 +0000)]
Remove recycle of B2CConverter when used for URI conversion.

Recycle was an empty method until recently. It now eats up
all bytes in the ByteChunk underlying the B2CConverter in
order to fix BZ44494. That's fine and necessary for the
B2CConverter use in InputBuffer at the end of request handling,
but here, in the case of URI conversion, the associated
ByteChunk comes from a convert call of a previous request
and we will destroy a ByteChunk we still need to use outside of the
B2CConverter.

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

17 years agoJAVA part of the #43327 fix.
jfclere [Thu, 21 Aug 2008 13:34:40 +0000 (13:34 +0000)]
JAVA part of the #43327 fix.

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

17 years agoThere is no admin app in TC6
markt [Thu, 21 Aug 2008 09:15:55 +0000 (09:15 +0000)]
There is no admin app in TC6

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

17 years agoUpdate patch for 45528
markt [Thu, 21 Aug 2008 08:36:43 +0000 (08:36 +0000)]
Update patch for 45528

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

17 years agoRemove unnecessary casts. Reported by Jens Kapitza in https://issues.apache.org/bugzi...
markt [Wed, 20 Aug 2008 23:36:36 +0000 (23:36 +0000)]
Remove unnecessary casts. Reported by Jens Kapitza in https://issues.apache.org/bugzilla/show_bug.cgi?id=45655

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

17 years agoImproved fix for 45528 (invalid SSL config).
markt [Wed, 20 Aug 2008 23:20:42 +0000 (23:20 +0000)]
Improved fix for 45528 (invalid SSL config).
It is a variation on the previous patch that:
- does the check earlier
- uses an unbound socket so there is no possibility of a client connection
- uses the String manager for the error message
Note: I gave up on the alterntaive javax.crypto.Cipher suggestion as the cipher names are different and there is no easy conversion.

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

17 years agoRevert the previous fix. Filip has suggested an alternative approach that should...
markt [Thu, 14 Aug 2008 18:11:28 +0000 (18:11 +0000)]
Revert the previous fix. Filip has suggested an alternative approach that should address the various objections. New patch will follow in the next few days.

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

17 years agoLet the user know why errorReportValveClass was not loaded. Since it could
funkman [Wed, 13 Aug 2008 12:58:47 +0000 (12:58 +0000)]
Let the user know why errorReportValveClass was not loaded. Since it could
be ClassNotFound, invalid class version, (or other)

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45608
markt [Tue, 12 Aug 2008 15:10:23 +0000 (15:10 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45608
Use AtomicInteger for countAllocated to prevent race conditions.

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

17 years agoCorrect SSL docs as to the list of ciphers used by default. Add note about export...
markt [Mon, 11 Aug 2008 20:57:16 +0000 (20:57 +0000)]
Correct SSL docs as to the list of ciphers used by default. Add note about export grade ciphers. Add note (already in TC4) about cipher naming.

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

17 years agoFix for https://issues.apache.org/bugzilla/show_bug.cgi?id=45528. Test the SSL socket...
markt [Sun, 10 Aug 2008 17:24:51 +0000 (17:24 +0000)]
Fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=45528. Test the SSL socket before returning it to make sure the specified certificate will work with the specified ciphers.

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=41407
markt [Sat, 9 Aug 2008 14:32:47 +0000 (14:32 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=41407
Add support for CLIENT-CERT authentication to JAAS realm.

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

17 years agoFix bug https://issues.apache.org/bugzilla/show_bug.cgi?id=45576
markt [Sat, 9 Aug 2008 12:10:34 +0000 (12:10 +0000)]
Fix bug https://issues.apache.org/bugzilla/show_bug.cgi?id=45576
Get the JAASRealm working with DIGEST authentication.

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

17 years agoModify JAASMemoryLoginModule so it conforms to the contract with the JAASRealm regard...
markt [Fri, 8 Aug 2008 20:27:52 +0000 (20:27 +0000)]
Modify JAASMemoryLoginModule so it conforms to the contract with the JAASRealm regarding the representation of roles.

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

17 years agoFix doc typo
markt [Fri, 8 Aug 2008 17:55:24 +0000 (17:55 +0000)]
Fix doc typo

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45585 using a suggestion from...
markt [Fri, 8 Aug 2008 15:49:24 +0000 (15:49 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45585 using a suggestion from Ian Ward Comfort

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45591 - NPE on start-up failur...
markt [Fri, 8 Aug 2008 14:31:20 +0000 (14:31 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45591 - NPE on start-up failure in some cases

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

17 years agoWhen a JSP file is deleted, return a 404 for the next request rather than serving...
markt [Fri, 8 Aug 2008 14:08:21 +0000 (14:08 +0000)]
When a JSP file is deleted, return a 404 for the next request rather than serving the next request as if the file still existed and then returning 404s for the second and subsequent requests.

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45532
markt [Mon, 4 Aug 2008 22:00:38 +0000 (22:00 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45532
Doc typo

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

17 years agoRemove some unused code.
markt [Sun, 3 Aug 2008 17:54:23 +0000 (17:54 +0000)]
Remove some unused code.

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

17 years agoThe surprisingly small update to the auto generate code to go with the update to...
markt [Fri, 1 Aug 2008 19:25:41 +0000 (19:25 +0000)]
The surprisingly small update to the auto generate code to go with the update to the jjtree file

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

17 years agoNeeded to look ahead one more token to differentiate between a function call and...
markt [Fri, 1 Aug 2008 19:23:25 +0000 (19:23 +0000)]
Needed to look ahead one more token to differentiate between a function call and an identifier.

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

17 years agoUpdate auto-generated code after recent jjt changes.
markt [Fri, 1 Aug 2008 16:20:14 +0000 (16:20 +0000)]
Update auto-generated code after recent jjt changes.

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=42565
markt [Fri, 1 Aug 2008 16:11:14 +0000 (16:11 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=42565
This patch:
 - limits the regexp for namespace to what is in the spec
 - removes the namespace token since the maximal munch rule means that there is a risk the second and third parts of a ternary expression would, incorrectly, be interpreted as a fucntion call.
 - modifies the lookahead for function to be more explicit about what to look for
My set of weird and wonderful test cases (mixing ternary, fucntion and empty) now all work.
Updated generated files will follow.

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

17 years agoRevert fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=42565 since it...
markt [Fri, 1 Aug 2008 16:05:47 +0000 (16:05 +0000)]
Revert fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=42565 since it caused https://issues.apache.org/bugzilla/show_bug.cgi?id=45511
A better fix for 42565 will follow

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

17 years agoFix 45509 - typos
markt [Wed, 30 Jul 2008 22:37:11 +0000 (22:37 +0000)]
Fix 45509 - typos

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

17 years agoPort http://svn.apache.org/viewvc?rev=678137&view=rev (additional normalization check...
markt [Tue, 29 Jul 2008 16:28:59 +0000 (16:28 +0000)]
Port svn.apache.org/viewvc?rev=678137&view=rev (additional normalization check) to trunk

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45453
markt [Tue, 29 Jul 2008 14:58:05 +0000 (14:58 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45453
Add yet more synchronisation to JDBCRealm.
Based on a patch provided by Santtu Hyrkk.

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45459
markt [Tue, 29 Jul 2008 14:29:27 +0000 (14:29 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45459
Provide info on possible cause of exception.

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

17 years agoFix error in JAAS realm doc reported on users list.
markt [Sun, 27 Jul 2008 13:20:07 +0000 (13:20 +0000)]
Fix error in JAAS realm doc reported on users list.

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

17 years agoThis was discussed a month ago - didn't hear any objections. It uses the 'platform...
costin [Fri, 18 Jul 2008 14:11:03 +0000 (14:11 +0000)]
This was discussed a month ago - didn't hear any objections. It uses the 'platform' mbean server instead of a new one if none
was explicitely created. This allows using jconsole without any flags - without the change it would only show platform mbeans,
now it has tomcat mbeans as well.

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

17 years agoGrammar + typos: Fix PR#45422
jfclere [Fri, 18 Jul 2008 06:39:45 +0000 (06:39 +0000)]
Grammar + typos: Fix PR#45422

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

17 years agoRemove pre-loading of inner class that was removed as part of r605000.
markt [Thu, 17 Jul 2008 23:12:03 +0000 (23:12 +0000)]
Remove pre-loading of inner class that was removed as part of r605000.

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

17 years agoFix bug 42727. Handle request lines that are exact multiples of 4096 in length.
markt [Thu, 17 Jul 2008 22:09:18 +0000 (22:09 +0000)]
Fix bug 42727. Handle request lines that are exact multiples of 4096 in length.
Patch provided by Will Pugh.

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

17 years agoAdd a non-config starter for tomcat. All you need is the classpath including tomcat...
costin [Thu, 17 Jul 2008 17:14:47 +0000 (17:14 +0000)]
Add a non-config starter for tomcat. All you need is the classpath including tomcat and the servlets - no config file.
There is a requirement for a temp directory - the spec requires that webapps are provided with one I believe.
It is possible to remove this or do it lazily or have some default in /tmp, if anyone wants to.

Also adding a context requires some base dir ( can be an empty one ) - so the default servlets points to something.
This can also be eliminated by setting a different default servlet - needs to be done if wanted.

It is also pretty fast - the unit tests show startup + first request in ~1 sec.

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

17 years agofirst chunk - make sure END gets called properly, if the event was closed
fhanik [Thu, 17 Jul 2008 00:13:37 +0000 (00:13 +0000)]
first chunk - make sure END gets called properly, if the event was closed
second chunk - if the POST body is x-www-form-urlencoded, request.getAvailable() returns 0 for IdentityInputFilter
so we still need to invoke READ event if there is a body, and it hasn't been processes by the servlet

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

17 years agoAs Remy pointed out, this really should be in the finally block.
markt [Tue, 15 Jul 2008 15:51:44 +0000 (15:51 +0000)]
As Remy pointed out, this really should be in the finally block.

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

17 years agoRevert changes as root cause of issue appears to be strangeness in my build environment.
markt [Tue, 15 Jul 2008 09:14:21 +0000 (09:14 +0000)]
Revert changes as root cause of issue appears to be strangeness in my build environment.

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

17 years agoUse tomcat native from ASF repository instead downloading at install time from tomcat...
mturk [Mon, 14 Jul 2008 08:36:41 +0000 (08:36 +0000)]
Use tomcat native from ASF repository instead downloading at install time from tomcat.heanet.ie

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

17 years agoPrevious patch didn't go far enough. No need to pre-load StandardWrapper.
markt [Sun, 13 Jul 2008 18:30:19 +0000 (18:30 +0000)]
Previous patch didn't go far enough. No need to pre-load StandardWrapper.

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

17 years agoStartup fails with security enabled
markt [Thu, 10 Jul 2008 23:00:31 +0000 (23:00 +0000)]
Startup fails with security enabled

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=42722
markt [Thu, 10 Jul 2008 21:11:16 +0000 (21:11 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=42722
Possible NPE in CGIServlet.java
Patch provided by Nils Hammar

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

17 years agoAuto-generated changes as a result of http://svn.apache.org/viewvc?rev=675726&view=rev
markt [Thu, 10 Jul 2008 21:05:35 +0000 (21:05 +0000)]
Auto-generated changes as a result of svn.apache.org/viewvc?rev=675726&view=rev

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=42565
markt [Thu, 10 Jul 2008 20:53:24 +0000 (20:53 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=42565
el ternary expression without space before colon now works
Patch provided by Lucas Galfaso
This is just the jjt patch. The resulting changes to the generated code will follow.

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

17 years agoGo back to the original patch. The better one didn't pan out. Sorry for the noise.
markt [Thu, 10 Jul 2008 18:34:22 +0000 (18:34 +0000)]
Go back to the original patch. The better one didn't pan out. Sorry for the noise.

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

17 years agoRevert previous patch prior to applying a better one
markt [Thu, 10 Jul 2008 18:20:18 +0000 (18:20 +0000)]
Revert previous patch prior to applying a better one

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=42678
markt [Thu, 10 Jul 2008 17:01:23 +0000 (17:01 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=42678
Only ignore docBase it it really is a subdir of appBase
Patch provided by juergen

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

17 years agoFix https://issues.apache.org/bugzilla/show_bug.cgi?id=45285
markt [Wed, 9 Jul 2008 20:50:18 +0000 (20:50 +0000)]
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45285
Should look for annotations all the way up the class hierarchy

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

17 years agoFix bug 45323. Add note that context.xml files can only contain a single Context.
markt [Sun, 6 Jul 2008 20:02:06 +0000 (20:02 +0000)]
Fix bug 45323. Add note that context.xml files can only contain a single Context.

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