]> granicus.if.org Git - apache/log
apache
24 years agoThe request body should be read with the normal send/receive timeout
Jeff Trawick [Tue, 24 Oct 2000 16:28:53 +0000 (16:28 +0000)]
The request body should be read with the normal send/receive timeout
instead of in non-blocking mode.

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

24 years agoother than minor tweaks:
Jeff Trawick [Tue, 24 Oct 2000 15:49:04 +0000 (15:49 +0000)]
other than minor tweaks:

. mod_charset_lite is now a bit naughty, looking in core_dir_config to see if
  its filter is coded in Add{Input|Output}Filter.  There are various weird
  scenarios that happen when one of the filters gets added both by
  mod_charset_lite and due to Add{Input|Output}Filter.  It is much nicer (to
  the code and to the user) to avoid the problem rather than to trying to
  keep things from blowing up when we are misconfigured in this manner.

  It may be generally useful to add API functions a module can call to see if
  its filter is configured on input/output.

  Note that CharsetOptions [No]ImplicitAdd is no longer interesting, but that
  code has not yet been removed.

. Fix input filtering so that we handle translating a brigade in multiple
  passes when our translation buffer fills up.

. xlate_brigade is cleaned up a bit and hopefully has less bugs

(far too many changes in one commit, but I couldn't access locus from 30,000 feet)

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

24 years ago Get everything working with suexec patches again.
William A. Rowe Jr [Tue, 24 Oct 2000 11:54:29 +0000 (11:54 +0000)]
  Get everything working with suexec patches again.

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

24 years agoDon't build mod_suexec by default. It breaks other platforms, and
Manoj Kasichainula [Tue, 24 Oct 2000 11:45:41 +0000 (11:45 +0000)]
Don't build mod_suexec by default. It breaks other platforms, and
since suexec isn't built by default anyway, it makes sense to treat
mod_suexec similarly.

Submitted by: Greg Stein

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

24 years agoBack out the suexec change to mod_rewrite.c. It now builds again.
Jeff Trawick [Tue, 24 Oct 2000 11:38:06 +0000 (11:38 +0000)]
Back out the suexec change to mod_rewrite.c.  It now builds again.
(No, it wasn't a simple issue to get the suexec patch working.)

The suexec support doesn't apply to the external mapping process,
which is not related to any particular request.  Instead, [IMHO]
the external mapping process should switch to the configured user/group
that the daemon processes switch to.

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

24 years agoFix typos and grammar.
Joshua Slive [Tue, 24 Oct 2000 01:11:59 +0000 (01:11 +0000)]
Fix typos and grammar.

Submitted by: Chris Pepper@mail.reppep.com

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

24 years agoOne more update for "config directory" patch,
Joshua Slive [Mon, 23 Oct 2000 22:41:58 +0000 (22:41 +0000)]
One more update for "config directory" patch,
plus update of keep-alive documentation.
PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agoSmall fix.
Joshua Slive [Mon, 23 Oct 2000 22:03:34 +0000 (22:03 +0000)]
Small fix.

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

24 years agoStyle changes and small content changes to handler.html.
Joshua Slive [Mon, 23 Oct 2000 21:59:33 +0000 (21:59 +0000)]
Style changes and small content changes to handler.html.

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

24 years agoGet rid of some stuff and a few small tweaks.
David Reid [Mon, 23 Oct 2000 21:32:46 +0000 (21:32 +0000)]
Get rid of some stuff and a few small tweaks.

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

24 years agoFix a breakage due to Maoj's suexec patch of earlier today.
David Reid [Mon, 23 Oct 2000 19:30:30 +0000 (19:30 +0000)]
Fix a breakage due to Maoj's suexec patch of earlier today.

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

24 years ago Improve legability for new Win32 hackers (I hope)
William A. Rowe Jr [Mon, 23 Oct 2000 19:09:02 +0000 (19:09 +0000)]
  Improve legability for new Win32 hackers (I hope)

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

24 years ago Answer says... -X is redundant and inappropriate.
William A. Rowe Jr [Mon, 23 Oct 2000 19:04:23 +0000 (19:04 +0000)]
  Answer says... -X is redundant and inappropriate.

Submitted by: Bill Rowe
Reviewed by: Bill Stoddard

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

24 years ago Fix foobar
William A. Rowe Jr [Mon, 23 Oct 2000 19:02:41 +0000 (19:02 +0000)]
  Fix foobar

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

24 years agoI didn't know that mod_userdir was even used on Windows. Oops. #ifdef
Manoj Kasichainula [Mon, 23 Oct 2000 18:38:00 +0000 (18:38 +0000)]
I didn't know that mod_userdir was even used on Windows. Oops. #ifdef
out Unix-specific portions for now.

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

24 years agoRemove an attempt to fix a race condition. The attempt is not
Manoj Kasichainula [Mon, 23 Oct 2000 18:14:37 +0000 (18:14 +0000)]
Remove an attempt to fix a race condition. The attempt is not
successful, the race condition is not particularly important (people
deleting users in the middle of a request), and the attempt introduces
more thread-safeness problems. Oh, and I thought I had taken this out
already. :)

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

24 years ago A more thorough example is appropriate. Also simplify the behavior and
William A. Rowe Jr [Mon, 23 Oct 2000 16:58:21 +0000 (16:58 +0000)]
  A more thorough example is appropriate.  Also simplify the behavior and
  always return root (/) if n < 1, which is no worse than returning elems
  if n > elems.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agouse a cleaner form for building the TAR file
Greg Stein [Mon, 23 Oct 2000 15:48:00 +0000 (15:48 +0000)]
use a cleaner form for building the TAR file

Submitted by: Joe Orton
Reviewed by: Greg Stein

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

24 years agoAdd back suexec support.
Manoj Kasichainula [Mon, 23 Oct 2000 15:30:57 +0000 (15:30 +0000)]
Add back suexec support.

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

24 years agoLondon Sun.
Manoj Kasichainula [Mon, 23 Oct 2000 14:48:06 +0000 (14:48 +0000)]
London Sun.

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

24 years agoAdd a temporary pool argument to unixd_pre_config, so that it can call
Manoj Kasichainula [Mon, 23 Oct 2000 10:54:18 +0000 (10:54 +0000)]
Add a temporary pool argument to unixd_pre_config, so that it can call
APR functions (grumble). This is needed for apr_stat, which will be in
the suexec path coming up.

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

24 years agoMake lingering close access the socket directly, instead of relying on
Ryan Bloom [Mon, 23 Oct 2000 10:46:20 +0000 (10:46 +0000)]
Make lingering close access the socket directly, instead of relying on
BUFF.  This has been tested, but all we can determine is that it doesn't
fail, not that it works.  This needs to be tested much better.

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

24 years agoMake ap_rflush use the flush bucket properly, and remove the BUFF code
Ryan Bloom [Mon, 23 Oct 2000 10:44:34 +0000 (10:44 +0000)]
Make ap_rflush use the flush bucket properly, and remove the BUFF code
from that function.

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

24 years agoFix internal redirects. They should have their own HTTP_HEADER filter
Ryan Bloom [Mon, 23 Oct 2000 10:31:44 +0000 (10:31 +0000)]
Fix internal redirects.  They should have their own HTTP_HEADER filter
instance, and we need to remove the main-request's HTTP_HEADER.

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

24 years agoFix some brain dead code.
Bill Stoddard [Sun, 22 Oct 2000 15:53:27 +0000 (15:53 +0000)]
Fix some brain dead code.
Submitted by: Greg Stein
Reviewed by:  Bill Stoddard

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

24 years agoCorrect a check to see if we are attempting to remove a filter that has
Bill Stoddard [Sun, 22 Oct 2000 15:48:34 +0000 (15:48 +0000)]
Correct a check to see if we are attempting to remove a filter that has
already been removed from the stack. Hummm, seems to me we should not
attempt to remove filters multiple times....

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

24 years agoAdd logic to rebuild mm's configure
Sascha Schumann [Sun, 22 Oct 2000 15:37:05 +0000 (15:37 +0000)]
Add logic to rebuild mm's configure

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

24 years agoThe headers need to be at the end of the request_based filters.
Ryan Bloom [Sun, 22 Oct 2000 15:26:05 +0000 (15:26 +0000)]
The headers need to be at the end of the request_based filters.
Submitted by: Jon Travis <jtravis@covalent.net>

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

24 years agoFix problem where a 304 response was not generating an EOS bucket.
Bill Stoddard [Sun, 22 Oct 2000 15:20:08 +0000 (15:20 +0000)]
Fix problem where a 304 response was not generating an EOS bucket.
ap_finalize_request_protocol()'s sole purpose in Apache 2.0 is to
send the EOS bucket. Probably need to reimplement ap_send_error_response()
to be consistent with ap_finalize...'s new mission.

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

24 years agoGet HTTP/0.9 and subrequests working again. The http header filter
Jeff Trawick [Sun, 22 Oct 2000 13:33:58 +0000 (13:33 +0000)]
Get HTTP/0.9 and subrequests working again.  The http header filter
wasn't letting any assbackwards brigades get past it.

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

24 years agoGet rid of a couple of buff-isms -- setting the B_EOUT flag in a couple
Jeff Trawick [Sun, 22 Oct 2000 13:20:36 +0000 (13:20 +0000)]
Get rid of a couple of buff-isms -- setting the B_EOUT flag in a couple
of places and doing ap_bread() in ap_lingering_close.

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

24 years agonamespace-protect dechunk_filter and http_filter
Jeff Trawick [Sun, 22 Oct 2000 13:09:23 +0000 (13:09 +0000)]
namespace-protect dechunk_filter and http_filter

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

24 years agoFix the return type of ap_http_header_filter().
Jeff Trawick [Sun, 22 Oct 2000 12:53:59 +0000 (12:53 +0000)]
Fix the return type of ap_http_header_filter().

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

24 years agoFix Win32 compile break introduced by the http_header filter code.
Bill Stoddard [Sun, 22 Oct 2000 10:34:05 +0000 (10:34 +0000)]
Fix Win32 compile break introduced by the http_header filter code.

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

24 years agoAdd a way to remove output filters. This is used by http_header_filter to
Ryan Bloom [Sat, 21 Oct 2000 17:22:28 +0000 (17:22 +0000)]
Add a way to remove output filters.  This is used by http_header_filter to
remove itself once it has actually sent the headers.

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

24 years agoFix a broken hack. We should save the state in the ctx pointer, not a
Ryan Bloom [Sat, 21 Oct 2000 17:07:47 +0000 (17:07 +0000)]
Fix a broken hack.  We should save the state in the ctx pointer, not a
static integer
Submitted by: Jeff Trawick

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

24 years agoRemove original_uri. This is the same as r->unparsed_uri
Ryan Bloom [Sat, 21 Oct 2000 15:02:45 +0000 (15:02 +0000)]
Remove original_uri.  This is the same as r->unparsed_uri
Reviewed by: Roy Fielding and Tony Finch

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

24 years agoHack headers to work semi-properly. This is a hack that will need to be
Ryan Bloom [Sat, 21 Oct 2000 14:20:14 +0000 (14:20 +0000)]
Hack headers to work semi-properly.  This is a hack that will need to be
fixed, but it is good enough for now.  The idea is that headers shouldn't
flow through the BUFF anymore.  Now, we have a header filter that is
called at the end of the request-filter chain.  This filter writes the
headers directly to the connection filters.

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

24 years agoIt isn't raining at the moment.
Jeff Trawick [Sat, 21 Oct 2000 14:13:59 +0000 (14:13 +0000)]
It isn't raining at the moment.

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

24 years agoGet translation of request bodies working.
Jeff Trawick [Sat, 21 Oct 2000 14:07:41 +0000 (14:07 +0000)]
Get translation of request bodies working.

This code is pretty ugly, but I need to checkpoint (and this stuff
actually works).

The direction: Get xlate_brigade() working for output too, then
kill the analogous code in xlate_out_filter().  At that point, the
same translation code works for input and output.

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

24 years agoInput filters and ap_get_brigade() now have a input mode parameter
Jeff Trawick [Sat, 21 Oct 2000 13:20:36 +0000 (13:20 +0000)]
Input filters and ap_get_brigade() now have a input mode parameter
(blocking, non-blocking, peek) instead of a length parameter.

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

24 years agoRename buffer_filter to coalesce_filter.
Bill Stoddard [Sat, 21 Oct 2000 12:38:17 +0000 (12:38 +0000)]
Rename buffer_filter to coalesce_filter.

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

24 years agoA bit of cleanup
Bill Stoddard [Sat, 21 Oct 2000 12:15:32 +0000 (12:15 +0000)]
A bit of cleanup

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

24 years agoGet Apache on Windows working again after Ryan's first commit to remove
Bill Stoddard [Sat, 21 Oct 2000 12:00:56 +0000 (12:00 +0000)]
Get Apache on Windows working again after Ryan's first commit to remove
BUFF.

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

24 years ago Enough of pcre.h, begone vile beast
William A. Rowe Jr [Sat, 21 Oct 2000 10:01:41 +0000 (10:01 +0000)]
  Enough of pcre.h, begone vile beast

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

24 years ago Don't you love clean checkouts :-) Wrong href on dbmmanage, to boot
William A. Rowe Jr [Fri, 20 Oct 2000 15:35:13 +0000 (15:35 +0000)]
  Don't you love clean checkouts :-)  Wrong href on dbmmanage, to boot

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

24 years agoInsert missing worg.
Tony Finch [Thu, 19 Oct 2000 23:33:40 +0000 (23:33 +0000)]
Insert missing worg.
Submitted by:   Chris Pepper <pepper@mail.reppep.com>

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

24 years agoname-based vhosts should come before ip-based vhosts.
Tony Finch [Thu, 19 Oct 2000 19:25:47 +0000 (19:25 +0000)]
name-based vhosts should come before ip-based vhosts.

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

24 years agoBelatedly update the documentation to include the NameVirtualHost *
Tony Finch [Thu, 19 Oct 2000 19:24:51 +0000 (19:24 +0000)]
Belatedly update the documentation to include the NameVirtualHost *
stuff. This isn't quite a sync with the 1.3 docco because we don't
want to mention 1.3 in the 2.0 docs.

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

24 years agoUpdated welcome page translation.
Joshua Slive [Thu, 19 Oct 2000 19:18:12 +0000 (19:18 +0000)]
Updated welcome page translation.
Submitted by: Ragnar Wisl�ff <ragnar.wisloff@asker.online.no>

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

24 years agoBelatedly update the documentation to include the NameVirtualHost *
Tony Finch [Thu, 19 Oct 2000 19:15:14 +0000 (19:15 +0000)]
Belatedly update the documentation to include the NameVirtualHost *
stuff. This isn't quite a sync with the 1.3 docco because we don't
want to mention 1.3 in the 2.0 docs.

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

24 years agogetline():
Greg Ames [Thu, 19 Oct 2000 17:57:42 +0000 (17:57 +0000)]
getline():
 Fix MIME header folding for character mode (telnet) clients.
 Clean up comments & tighten asserts.

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

24 years agosomebody was a Very Bad Boy when they inserted casts into this function.
Greg Stein [Thu, 19 Oct 2000 10:43:03 +0000 (10:43 +0000)]
somebody was a Very Bad Boy when they inserted casts into this function.
casting away the const was absolutely wrong... the warnings were saying the
return value type needed to be fixed. did that and torched the casts.

who still thinks casts are a good idea? :-)

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

24 years agoChange some of the BUFF calls to direct calls to the socket.
Ryan Bloom [Thu, 19 Oct 2000 01:24:10 +0000 (01:24 +0000)]
Change some of the BUFF calls to direct calls to the socket.

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

24 years agoFix the chemical/x- mime types as suggested in the PR. Or should they
Tony Finch [Thu, 19 Oct 2000 01:03:15 +0000 (01:03 +0000)]
Fix the chemical/x- mime types as suggested in the PR. Or should they
be killed?
PR: 4600

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

24 years agoUpdate to the media types as of 2000-10-19. I also fixed the case of
Tony Finch [Thu, 19 Oct 2000 00:40:57 +0000 (00:40 +0000)]
Update to the media types as of 2000-10-19. I also fixed the case of
application/batch-SMTP to match the official name.
Obtained from:  ftp://ftp.isi.edu/in-notes/iana/assignments/media-types
PR: 6613

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

24 years agoNamespace protect the rest of the macros defined by ap_config.h
Ryan Bloom [Thu, 19 Oct 2000 00:05:00 +0000 (00:05 +0000)]
Namespace protect the rest of the macros defined by ap_config.h

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

24 years agoSupport HTTP header line folding with input filtering.
Greg Ames [Wed, 18 Oct 2000 23:22:41 +0000 (23:22 +0000)]
Support HTTP header line folding with input filtering.

Some funkyness remains with Win32 telnet doing folding - that can wait til
tomorrow.

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

24 years agoUpdate the STATUS file.
Ryan Bloom [Wed, 18 Oct 2000 23:11:48 +0000 (23:11 +0000)]
Update the STATUS file.

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

24 years agoAdd .so and .dll to the application-octect stream mime-type
Ryan Bloom [Wed, 18 Oct 2000 23:06:10 +0000 (23:06 +0000)]
Add .so and .dll to the application-octect stream mime-type
Submitted by: Pier P. Fumagalli <pier@apache.org>

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

24 years agoGet mod_include working again. This still needs to be re-written, but
Ryan Bloom [Wed, 18 Oct 2000 22:24:38 +0000 (22:24 +0000)]
Get mod_include working again.  This still needs to be re-written, but
at least now we are serving SHTML files again.
PR: 6641

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

24 years agoSub-requests have to have a value for their request_config structure,
Ryan Bloom [Wed, 18 Oct 2000 22:14:18 +0000 (22:14 +0000)]
Sub-requests have to have a value for their request_config structure,
or we'll seg-fault.  This should set the sub-request's request_config
structure to the same exact same structure as the main request is using.

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

24 years agoSet the request config in the new r, not the old r.
Jeff Trawick [Wed, 18 Oct 2000 21:22:14 +0000 (21:22 +0000)]
Set the request config in the new r, not the old r.

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

24 years agoMake the core access the socket directly instead of going through the
Ryan Bloom [Wed, 18 Oct 2000 19:32:30 +0000 (19:32 +0000)]
Make the core access the socket directly instead of going through the
BUFF.  This doesn't actually change any behavior, it just makes the core
access socket directly.

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

24 years agoThis begins to remove BUFF from the server. The idea is to go very slowly
Ryan Bloom [Wed, 18 Oct 2000 19:12:16 +0000 (19:12 +0000)]
This begins to remove BUFF from the server.  The idea is to go very slowly
with this.  To begin with, we store both the socket and the BUFF in the
conn_rec.  Functions are free to use which ever they want, in the end all
of the data goes to the same place.  This modifies all of the MPMs except
Windows.  All of the Unix MPMs are working, but the others need to be
tested.

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

24 years agoWe have to create the core_request_config structure in the core on internal
Ryan Bloom [Wed, 18 Oct 2000 18:50:11 +0000 (18:50 +0000)]
We have to create the core_request_config structure in the core on internal
redirects.  If this isn't done, we'll seg-fault during the AP_DEBUG_ASSERT
that makes sure getline didn't leave any droppings.

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

24 years agoapr_psprintf doesn't understand %lld, so we should be using %ld
Ryan Bloom [Wed, 18 Oct 2000 18:10:00 +0000 (18:10 +0000)]
apr_psprintf doesn't understand %lld, so we should be using %ld
PR: 6653
Submitted by:  Tomas "�gren" <stric@ing.umu.se>
Reviewed by:  Ryan Bloom

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

24 years ago That's the end of things broken this morning... now to try Jeff's patch
William A. Rowe Jr [Wed, 18 Oct 2000 17:44:41 +0000 (17:44 +0000)]
  That's the end of things broken this morning... now to try Jeff's patch

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

24 years agoap_get_client_block() now uses a brigade in core_request_config
Jeff Trawick [Wed, 18 Oct 2000 17:42:44 +0000 (17:42 +0000)]
ap_get_client_block() now uses a brigade in core_request_config
instead of a brigade in core_dir_conf.  For now, getline() and
ap_get_client_block() share a brigade.

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

24 years ago Fix more broken things
William A. Rowe Jr [Wed, 18 Oct 2000 17:38:54 +0000 (17:38 +0000)]
  Fix more broken things

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

24 years ago Fix a broken thing
William A. Rowe Jr [Wed, 18 Oct 2000 17:38:30 +0000 (17:38 +0000)]
  Fix a broken thing

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

24 years ago expatlib is definately more in sync with the Unix build, so we now
William A. Rowe Jr [Wed, 18 Oct 2000 17:37:05 +0000 (17:37 +0000)]
  expatlib is definately more in sync with the Unix build, so we now
  build the expatlib.dsp rather than seperate xmltok/xmlparse .dsp's.

Submitted by: Greg Stein
Reviewed by: William Rowe

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

24 years agoThe final line of the config file was not being read if there was
Ryan Bloom [Wed, 18 Oct 2000 15:58:29 +0000 (15:58 +0000)]
The final line of the config file was not being read if there was
no \n at the end of it.  This was caused by apr_fgets returning
APR_EOF even though we had read valid data.  This is solved by
making cfg_getline check the buff that was returned from apr_fgets.
If apr_fgets return APR_EOF, but there was data in the buf, then we
return the buf, otherwise we return NULL.

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

24 years agoAdd a core_request_config so we have a safe semi-hidden place to save core data
Greg Ames [Wed, 18 Oct 2000 15:21:32 +0000 (15:21 +0000)]
Add a core_request_config so we have a safe semi-hidden place to save core data
that lives across function calls during a single request.  Change getline() to
take a request_rec parm (rather than a conn_rec) so we can access the
core_request_config.

This is in preparation for adding look-ahead functionality to getline(), so it
can support header line folding once again.  I'm committing these changes first
so the core_request_config can be used elsewhere (i.e. ap_get_client_block).

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

24 years agoFix a compile error in mod_rewrite.c.
Jeff Trawick [Wed, 18 Oct 2000 12:30:07 +0000 (12:30 +0000)]
Fix a compile error in mod_rewrite.c.

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

24 years agoFix piped logs in 2.0. This basically:
Ryan Bloom [Wed, 18 Oct 2000 06:09:10 +0000 (06:09 +0000)]
Fix piped logs in 2.0.  This basically:
1) cleans up an annoying type that was getting in my way while I was
   trying to fix things.
2) Makes some of the allocations pcalloc instead of palloc
3) The arg array passed to create_process is a const *char *, not
   const *char [].
PR:     6642

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

24 years agoClarify when [NC] is effective.
Joshua Slive [Wed, 18 Oct 2000 05:14:41 +0000 (05:14 +0000)]
Clarify when [NC] is effective.

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

24 years agoRestore functionality broken by the mod_rewrite security fix:
Tony Finch [Wed, 18 Oct 2000 04:50:25 +0000 (04:50 +0000)]
Restore functionality broken by the mod_rewrite security fix:
rewrite map lookup keys and default values are now expanded
so that the lookup can depend on the requested URI etc.

Because the new code is recursive you can now write configurations
like the following (with nested map lookups) which wasn't directly
possible before -- you had to use a RewriteCond and a %N backref
instead, as in http://www.apache.org/docs/vhosts/mass.html#xtra-conf

RewriteMap tolower int:tolower
RewriteMap host2user txt:/home/www/conf/virtusertbl
RewriteRule /(.*) /home/${host2user:${tolower:%{HTTP_HOST}}|www}/public_html

PR: 6671

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

24 years agoTighten up the syntax checking of Host: headers to fix a
Tony Finch [Wed, 18 Oct 2000 04:48:34 +0000 (04:48 +0000)]
Tighten up the syntax checking of Host: headers to fix a
security bug in some mass virtual hosting configurations
that can allow a remote attacker to retrieve some files
on the system that should be inaccessible. The problem
occured with requests including the line "Host: ..." --
the last dot is stripped and the remaining ".." then
reveals a parent directory.

Reported by: Peter Christoffersen <pch@mindpass.com>
Message-ID: <8quts6$2el$1@news.inet.tele.dk>
Newsgroups: comp.infosystems.www.servers.unix

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

24 years agoUse pool buckets where appropriate. The places I have found so far, are
Ryan Bloom [Tue, 17 Oct 2000 22:34:14 +0000 (22:34 +0000)]
Use pool buckets where appropriate.  The places I have found so far, are
the buffer_filter, and where the core_filter gets data from the BUFF.

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

24 years agoAdd pool buckets to the bucket list. These buckets are not currently
Ryan Bloom [Tue, 17 Oct 2000 21:53:41 +0000 (21:53 +0000)]
Add pool buckets to the bucket list.  These buckets are not currently
used although I have begun to test them on my machine.  The idea behind
these buckets is that data allocated out of a pool and put into a bucket
has to survive the death of the pool until the bucket is destroyed.  To
accomplish this, we register a cleanup when we create the bucket.  If the
pool is cleared, the cleanup converts the bucket to a heap bucket and
everything is good.  If the pool isn't cleared, then we kill the cleanup
when the bucket is destroyed.

With this bucket type, all of the core buckets that were listed have been
implemented.

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

24 years agoap_get_client_block() allocates its brigade from r->pool (as it was
Jeff Trawick [Tue, 17 Oct 2000 20:43:35 +0000 (20:43 +0000)]
ap_get_client_block() allocates its brigade from r->pool (as it was
before today) so that we don't have a growth of these across many
pipelined requests.

http_filter() uses one brigade per connection which it reads into.
As it needs to deliver buckets to the caller, they are removed from
its brigade into the caller's brigade.

Submitted by: Ryan Bloom (but anything broken is my fault)

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

24 years agoRemove brigade_bgets. Getting the chunk header is now done by getline.
Ryan Bloom [Tue, 17 Oct 2000 18:39:56 +0000 (18:39 +0000)]
Remove brigade_bgets.  Getting the chunk header is now done by getline.

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

24 years agohttp_filter():
Jeff Trawick [Tue, 17 Oct 2000 17:53:09 +0000 (17:53 +0000)]
http_filter():
  get rid of an unnecessary condition where we set ctx->b to NULL;
  it was already NULL

ap_get_client_block():
  "fix" the pool for the brigade used by ap_get_client_block() to
  save its state; this allows pipelined requests to work

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

24 years agoRemove an incorrect comment. Bucket brigades are allocated out of pools,
Ryan Bloom [Tue, 17 Oct 2000 17:26:46 +0000 (17:26 +0000)]
Remove an incorrect comment.  Bucket brigades are allocated out of pools,
if we drop one on the floor, it will get cleaned up when we clean the pool.

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

24 years agohttp_filter():
Jeff Trawick [Tue, 17 Oct 2000 15:28:57 +0000 (15:28 +0000)]
http_filter():
  when delivering body bytes, only deliver one block of data (however
  much is returned by bucket read) instead of delivering the entire
  body at once; this gets painful with a large body

  make a note of an issue with the blocking state of the socket;
  currently, the socket is non-blocking, but when reading body bytes
  we should feel free to wait for body bytes until a timeout occurs;

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

24 years agoRemove some annoying warnings from http_protocol. This is untested, but
Ryan Bloom [Tue, 17 Oct 2000 14:37:46 +0000 (14:37 +0000)]
Remove some annoying warnings from http_protocol.  This is untested, but
it makes sense logically.

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

24 years ago Make things a little clearer in reaction to the _snames snafus.
William A. Rowe Jr [Tue, 17 Oct 2000 13:26:55 +0000 (13:26 +0000)]
  Make things a little clearer in reaction to the _snames snafus.

Submitted by: Greg Stein
Reviewed by: William Rowe

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

24 years agoRename output filters field ("filters") in core_dir_config to
Jeff Trawick [Tue, 17 Oct 2000 01:35:12 +0000 (01:35 +0000)]
Rename output filters field ("filters") in core_dir_config to
"output_filters" for consistency with the name of the input
filters field ("input_filters").

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

24 years agoRename ap_debug_assert() to AP_DEBUG_ASSERT().
Jeff Trawick [Tue, 17 Oct 2000 01:13:11 +0000 (01:13 +0000)]
Rename ap_debug_assert() to AP_DEBUG_ASSERT().
This should have been committed with httpd.h a few minutes ago.
Submitted by: Greg Stein

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

24 years agoCapitalize AP_DEBUG_ASSERT(). All macros should shout, even
Jeff Trawick [Tue, 17 Oct 2000 01:04:33 +0000 (01:04 +0000)]
Capitalize AP_DEBUG_ASSERT().  All macros should shout, even
if their forbearers (e.g., ap_assert()) did not.
Submitted by: Greg Stein

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

24 years agoSync descriptors.html with 1.3.
Joshua Slive [Tue, 17 Oct 2000 00:29:08 +0000 (00:29 +0000)]
Sync descriptors.html with 1.3.

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

24 years agoAdd a flush bucket type. This bucket advises filters to flush any data
Ryan Bloom [Tue, 17 Oct 2000 00:24:36 +0000 (00:24 +0000)]
Add a flush bucket type.  This bucket advises filters to flush any data
they are currently storing.  There is no way we can force them to flush,
but we can advise.  This also adds the code to ap_rflush to use flush
buckets, although it isn't enabled yet.  I will enable it once we remove
buff from the code.  I also removed all calls to ap_rflush that are either
immediately before or immediately after a call to ap_finalize_protocol.
ap_finalize_protocol sends an EOS bucket, which also advises filters to
flush their data, so having both calls right next to each other is
redundant.

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

24 years agoAdd a sub-request filter. This filter just strips the EOS from the
Ryan Bloom [Mon, 16 Oct 2000 23:15:55 +0000 (23:15 +0000)]
Add a sub-request filter.  This filter just strips the EOS from the
brigade generated by the sub-request.  If this is not done, then the
main-request's core_output_filter will get very confused, as will any other
filter in the main-request filter-stack that looks for EOS.

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

24 years agosimplify bookkeeping in getline() to make it run a little faster, and
Greg Ames [Mon, 16 Oct 2000 22:10:41 +0000 (22:10 +0000)]
simplify bookkeeping in getline() to make it run a little faster, and
(hopefully) be easier to understand in the future.

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

24 years agodechunk filter:
Jeff Trawick [Mon, 16 Oct 2000 20:08:14 +0000 (20:08 +0000)]
dechunk filter:
  Get rid of an assertion which assumed that HTTP_IN is the filter
  below us.  Some other filter may play the same role.
ap_setup_client_block():
  Get rid of a commented-out hack which was used to allow chunked
  transport encoding of a request body received by mod_cgi[d].
ap_get_client_block():
  Get rid of special handling for zero-length buckets...  The main
  loop handles that fine.
Submitted by: Ryan Bloom

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

24 years agoinput filtering changes:
Jeff Trawick [Mon, 16 Oct 2000 19:11:53 +0000 (19:11 +0000)]
input filtering changes:
  get dechunking working
  verify that infrastructure for input filters works
    (use existing AddInputFilter directive)

Unlike with my previous patch, ap_get_client_block() saves state between
calls in the core's per-request dir config.

Unlike with my previous patch, HTTP_IN keeps a count of remaining bytes
in the conn_rec.  Code that needs to prod it to deliver a certain amount
of request body plays with conn_rec->remain directly.

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

24 years agoGet rid of some old code related to the way that character set translation
Jeff Trawick [Mon, 16 Oct 2000 18:00:49 +0000 (18:00 +0000)]
Get rid of some old code related to the way that character set translation
of protocol data and bodies was performed in the past.

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

24 years ago Fix compile break in Win32
William A. Rowe Jr [Mon, 16 Oct 2000 13:50:40 +0000 (13:50 +0000)]
  Fix compile break in Win32

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

24 years ago Nice to see we build again on Win32
William A. Rowe Jr [Mon, 16 Oct 2000 06:38:42 +0000 (06:38 +0000)]
  Nice to see we build again on Win32

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