]> granicus.if.org Git - apache/log
apache
23 years agoAdd the first draft of the http_filter. In time this filter will split
Ryan Bloom [Fri, 6 Oct 2000 06:07:07 +0000 (06:07 +0000)]
Add the first draft of the http_filter.  In time this filter will split
the bucket brigade between the headers and the body.  Right now it just
converts \r\n to \n\0.

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

23 years agoBe a little more explicit about the consequences of
Joshua Slive [Fri, 6 Oct 2000 00:56:48 +0000 (00:56 +0000)]
Be a little more explicit about the consequences of
ErrorDocument xxx http://....

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

23 years agoModify ap_get_client_block to use the bucket brigades instead of BUFF.
Ryan Bloom [Thu, 5 Oct 2000 22:40:28 +0000 (22:40 +0000)]
Modify ap_get_client_block to use the bucket brigades instead of BUFF.
I'm pretty sure this isn't complete, but it has worked in my tests with
a very simple CGI.

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

23 years agoPort over the config directory stuff...
Jim Jagielski [Thu, 5 Oct 2000 22:35:08 +0000 (22:35 +0000)]
Port over the config directory stuff...

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

23 years agoBack out some more of build changes from last night so that Apache
Jeff Trawick [Thu, 5 Oct 2000 21:48:38 +0000 (21:48 +0000)]
Back out some more of build changes from last night so that Apache
builds on FreeBSD 3.4 again.

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

23 years agoInstall APXS if it is built.
Ryan Bloom [Thu, 5 Oct 2000 18:21:34 +0000 (18:21 +0000)]
Install APXS if it is built.

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

23 years ago The lots of little ones... APR_IS_STATUS_condition(rv) conditional macros
William A. Rowe Jr [Thu, 5 Oct 2000 17:33:14 +0000 (17:33 +0000)]
  The lots of little ones... APR_IS_STATUS_condition(rv) conditional macros
  replacing the majority of fallible rv == APR_condition tests.  But there
  are lots more to fix, these are the obvious ones that already did proper
  canonical error conversion.

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

23 years agoBack out the build changes I added last night. This was causing libtool
Ryan Bloom [Thu, 5 Oct 2000 17:28:45 +0000 (17:28 +0000)]
Back out the build changes I added last night.  This was causing libtool
commands to be sent to gcc.  It worked on some platforms, but not all of
them.

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

23 years agoAdd a bit of infrastructure which will be needed for input filtering:
Jeff Trawick [Thu, 5 Oct 2000 16:55:10 +0000 (16:55 +0000)]
Add a bit of infrastructure which will be needed for input filtering:

1) separate filter lists hanging off the r and the c

   requests start off with the same filter list as the connection

   the input filter list is not initialized for subrequests

   internal redirects start off with the same filter list as the
   connection

2) AddInputFilter directive (blatant rip-off of Ryan's AddOutputFilter
   directive); as with AddOutputFilter, the network is implicitly to the
   right of the specified filter list; this may not be the most
   intuitive way to specify the filters; not sure yet

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

23 years agoDisable the buffer_filter because it may be masking bugs in the bucket brigade
Bill Stoddard [Thu, 5 Oct 2000 14:00:59 +0000 (14:00 +0000)]
Disable the buffer_filter because it may be masking bugs in the bucket brigade
code.

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

23 years agoNow that we have ap_add_input_filter(), rename ap_add_filter() to
Jeff Trawick [Thu, 5 Oct 2000 12:01:48 +0000 (12:01 +0000)]
Now that we have ap_add_input_filter(), rename ap_add_filter() to
ap_add_output_filter().

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

23 years agoGet rid of much of the old implementation of translating the
Jeff Trawick [Thu, 5 Oct 2000 11:21:26 +0000 (11:21 +0000)]
Get rid of much of the old implementation of translating the
charset of response bodies.

ap_checkconv() is removed, except for in os/bs2000 and os/tpf.
(Anything there is questionable for 2.0 anyway.)

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

23 years agoMultiple build and configuration fixes
Ryan Bloom [Thu, 5 Oct 2000 05:42:06 +0000 (05:42 +0000)]
Multiple build and configuration fixes

Build process:

  -add datadir and localstatedir substitutions
  -fix layout name
  -fix logfilename misspelling
  -fix evaluation of installation dir variables and
  -replace $foobar by $(foobar) to be usefull in the makefile

Cross compile:

  -add rules for cross-compiling in rules.mk. Okay, rule to check for
   $CC_FOR_BUILD is still missing
  -use CHECK_TOOL instead of CHECK_PROG for ranlib
  -add missing "AR=@AR@" to severaly Makefile.in's
  -cache result for "struct rlimit"
  -compile all helper programs with native and cross compiler
   and use the native version to generate header file

PR: 6384
Submitted by: "R�diger" Kuhlmann <Tadu@gmx.de>
Reviewed by: Ryan Bloom

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

23 years agoPrepare our autoconf setup for autoconf 2.14a and for cross-compiling
Ryan Bloom [Thu, 5 Oct 2000 04:41:47 +0000 (04:41 +0000)]
Prepare our autoconf setup for autoconf 2.14a and for cross-compiling
PR: 6379
Submitted by: "R�diger" Kuhlmann <Tadu@gmx.de>
Reviewed by: Ryan Bloom

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

23 years agoFix a bug where a client which only sends \n to delimit header
Greg Ames [Thu, 5 Oct 2000 03:55:12 +0000 (03:55 +0000)]
Fix a bug where a client which only sends \n to delimit header
lines (netcat) gets a strange looking HTTP_NOT_IMPLEMENTED message.

While I'm in there, start working on ebcdic co-existance with input
filtering.

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

23 years agoIf mod_so is compiled into the server, we need to create libexec, even
Ryan Bloom [Thu, 5 Oct 2000 03:44:22 +0000 (03:44 +0000)]
If mod_so is compiled into the server, we need to create libexec, even
if there are no shared modules compiled.  This is in keeping with what
we did with Apache 1.3, and it allows APXS to work, even if there were no
shared modules installed initially.

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

23 years agoUpdate the call to ap_add_filter() to include the new
Jeff Trawick [Thu, 5 Oct 2000 02:36:55 +0000 (02:36 +0000)]
Update the call to ap_add_filter() to include the new
conn_rec parameter.

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

23 years agoThe new request_rec set up for redirects needs to pick up the
Jeff Trawick [Thu, 5 Oct 2000 02:11:11 +0000 (02:11 +0000)]
The new request_rec set up for redirects needs to pick up the
output filter chain from the conn_rec.  Any required request
filters will be inserted later.

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

23 years agoConnection oriented filters are now stored in the conn_rec instead of the
Ryan Bloom [Wed, 4 Oct 2000 23:19:33 +0000 (23:19 +0000)]
Connection oriented filters are now stored in the conn_rec instead of the
request_rec.  This means that a conn_rec must be supplied when calling
ap_add_filter.  The reason for this change is that we need to be able to
add the core_filter (whether or SSL or not) before we try to read the
request.  This way, if a request fails, we can actually send the error
page back to the client.  With this change, we add the core filter to the
conn_rec during the pre-connection phase.
Submitted by: Ryan Bloom, Jeff Trawick, and Greg Ames

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

23 years agoIn core_output_filter(), reset nbytes to zero after calling
Jeff Trawick [Wed, 4 Oct 2000 22:09:46 +0000 (22:09 +0000)]
In core_output_filter(), reset nbytes to zero after calling
writev_it_all() in case we have another brigade to process.
Otherwise, nbytes is bogus for the second brigade and
writev_it_all() doesn't know when to quit (it loops).

In writev_it_all(), when compensating for bytes already sent
don't go beyond the number of iovs we were passed on input.

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

23 years agoUse a handler rather than a magic mime type in mod_asis.
Joshua Slive [Wed, 4 Oct 2000 21:51:14 +0000 (21:51 +0000)]
Use a handler rather than a magic mime type in mod_asis.

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

23 years agoTake another shot at reimplementing core_output_filter. This implementation buffers
Bill Stoddard [Wed, 4 Oct 2000 19:11:03 +0000 (19:11 +0000)]
Take another shot at reimplementing core_output_filter. This implementation buffers
brigades across multiple calls until MAX_IOVEC_TO_WRITE or
MIN_SIZE_TO_WRITE thresholds are hit. This implementation does not attempt
to coalesce bytes. Moving a bit further down the filter learning curve...

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

23 years agoBack out a patch that should never have been committed
Ryan Bloom [Wed, 4 Oct 2000 19:08:34 +0000 (19:08 +0000)]
Back out a patch that should never have been committed

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

23 years agoFix a small typo that was keeping us from copying os-inline.c to the
Ryan Bloom [Wed, 4 Oct 2000 19:00:36 +0000 (19:00 +0000)]
Fix a small typo that was keeping us from copying os-inline.c to the
include directory

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

23 years agoClean up md5 digest support in default_handler() a bit:
Jeff Trawick [Wed, 4 Oct 2000 17:14:00 +0000 (17:14 +0000)]
Clean up md5 digest support in default_handler() a bit:
1) don't compute md5 if we have a content filter; it is almost always wrong
2) add note about adding md5 filter in the future; this can be done
3) delete some APACHE_XLATE/CHARSET_EBCDIC baggage associated with md5
   digest support; part of this deleted baggage is a segfault on
   subrequests referencing r->rrx (which is not allocated for subrequests)

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

23 years agoFix spelling mistake.
Bill Stoddard [Wed, 4 Oct 2000 13:44:28 +0000 (13:44 +0000)]
Fix spelling mistake.

Submitted by: Chris Pepper
PR: 6623

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

23 years ago Hey... didn't know these were hanging around. Time to file and forget.
William A. Rowe Jr [Wed, 4 Oct 2000 05:53:28 +0000 (05:53 +0000)]
  Hey... didn't know these were hanging around.  Time to file and forget.

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

23 years agoChange ap_send_fd() so that it returns a proper apr_status_t value
Jeff Trawick [Tue, 3 Oct 2000 22:08:38 +0000 (22:08 +0000)]
Change ap_send_fd() so that it returns a proper apr_status_t value
instead of the number of bytes sent.

default_handler() ignores the ap_send_fd() return code, but
mod_file_cache doesn't.  When mod_file_cache's handler called
ap_send_fd(), the client would get the desired file plus an
error document (500 internal server error), which was delivered
because mod_file_cache's handler returned an error since
ap_send_fd() returned non-zero.

Also in this commit is a hack to be able to compile when APACHE_XLATE
is defined.

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

23 years agoChange core_input_filter() so that it returns an empty brigade upon
Jeff Trawick [Tue, 3 Oct 2000 21:56:43 +0000 (21:56 +0000)]
Change core_input_filter() so that it returns an empty brigade upon
FIN/EOF or error.  This meshes with what getline() looks for.  It isn't
perfect, but it avoids some nasty loops consuming all available storage
on http/1.1 connections.  In keepalive state, we call getline to read the
next request...  getline() calls core_input_filter() (indirectly)...
core_input_filter() calls apr_recv() which returns APR_SUCCESS/0 bytes
to signal FIN/EOF.  But core_input_filter() returned a bucket with length
zero to getline(), so getline() called core_input_filter() again.

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

23 years agoFix some bad calls to ap_log_error(); some of these neglected to
Jeff Trawick [Tue, 3 Oct 2000 21:48:31 +0000 (21:48 +0000)]
Fix some bad calls to ap_log_error(); some of these neglected to
turn on APLOG_NOERRNO even though no syscall failure was being
reported; others passed errno instead of the APR retcode.

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

23 years agoThe previous commit pointed out an unfortunate problem with the
Jeff Trawick [Tue, 3 Oct 2000 15:05:26 +0000 (15:05 +0000)]
The previous commit pointed out an unfortunate problem with the
ap_os_case_canonical_filename() interface: It returns const char * on
platforms where no mapping is ever performed but char * on platforms
where mapping can occur.  Such a discrepancy seems to be a good choice,
as no platform is penalized with extra pathlength.

This tweak gets rid of a const misuse warning on systems where
ap_os_case_canonical_filename() returns const char *.

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

23 years ago Definately need a canonical name, so comparison succeeds at run time.
William A. Rowe Jr [Tue, 3 Oct 2000 13:11:25 +0000 (13:11 +0000)]
  Definately need a canonical name, so comparison succeeds at run time.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years ago Fix a few colliding modules
William A. Rowe Jr [Tue, 3 Oct 2000 06:55:06 +0000 (06:55 +0000)]
  Fix a few colliding modules

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

23 years ago Ok... I've been waiting to find out what happens when we commit to two
William A. Rowe Jr [Tue, 3 Oct 2000 06:08:36 +0000 (06:08 +0000)]
  Ok... I've been waiting to find out what happens when we commit to two
  trees at once.  To that end, this is the caching and rather stable 2.0
  mod_isapi, with the docs brought over from 1.3 and freshened a bit.

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

23 years agoReplace ap_get_data_from_filter and ap_save_data_to_filter with
Ryan Bloom [Tue, 3 Oct 2000 00:44:00 +0000 (00:44 +0000)]
Replace ap_get_data_from_filter and ap_save_data_to_filter with
ap_save_brigade.  This function does not try to save the actual brigade to
a specific location.  If just traverses the brigade, calls setaside if
it is available and concatenates it with a previously setaside brigade.

The resulting brigade is returned to the caller for them to save it to
the appropriate location.

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

23 years ago Whoops... that there was a handle I left hanging (and growing).
William A. Rowe Jr [Mon, 2 Oct 2000 22:52:20 +0000 (22:52 +0000)]
  Whoops... that there was a handle I left hanging (and growing).

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

23 years ago Downgrade warnings, stop changing errors from something meaningless to
William A. Rowe Jr [Mon, 2 Oct 2000 22:34:07 +0000 (22:34 +0000)]
  Downgrade warnings, stop changing errors from something meaningless to
  something unrelated, and solve a bug in arg passing.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years ago Choices. Choose -X, -DONE_PROCESS or set ONE_PROCESS=token for the
William A. Rowe Jr [Mon, 2 Oct 2000 22:32:57 +0000 (22:32 +0000)]
  Choices.  Choose -X, -DONE_PROCESS or set ONE_PROCESS=token for the
  diagnostic behavior.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years ago _not_ up to 100%, but some structural changes to make the rest easier.
William A. Rowe Jr [Mon, 2 Oct 2000 22:29:18 +0000 (22:29 +0000)]
  _not_ up to 100%, but some structural changes to make the rest easier.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoFix two problems. First we are setting aside the wrong bucket brigade. Second, we...
Bill Stoddard [Mon, 2 Oct 2000 22:00:59 +0000 (22:00 +0000)]
Fix two problems. First we are setting aside the wrong bucket brigade. Second, we need to
check that a setaside routine is defined for the bucket before attempting to call it.  Not sure
at all if we even want to keep this routine as it does not allow using filter->ctx for other
purposes.

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

23 years agoMove where the CORE_IN filter is added to the server. We used to do this
Ryan Bloom [Mon, 2 Oct 2000 19:52:37 +0000 (19:52 +0000)]
Move where the CORE_IN filter is added to the server.  We used to do this
in ap_new_connection, but that is bogus, because then other modules can't
put their own filter in.  Now, we do this in a new pre-connection hook
function.  Later, we will want to add some checking to make sure that this
is really an HTTP request that we are adding the filter for.

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

23 years ago Cleaned out empty symbols... preparing for some real order, al la
William A. Rowe Jr [Mon, 2 Oct 2000 19:17:06 +0000 (19:17 +0000)]
  Cleaned out empty symbols... preparing for some real order, al la
  FirstBill's efforts on aprlib.def

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoClean up some const-ness warnings in getsfunc_STRING().
Jeff Trawick [Mon, 2 Oct 2000 18:40:25 +0000 (18:40 +0000)]
Clean up some const-ness warnings in getsfunc_STRING().

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

23 years ago Just Typos.
William A. Rowe Jr [Mon, 2 Oct 2000 15:49:41 +0000 (15:49 +0000)]
  Just Typos.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years ago Forward port 1.3 overhaul of isapi to 2.0.
William A. Rowe Jr [Mon, 2 Oct 2000 15:38:59 +0000 (15:38 +0000)]
  Forward port 1.3 overhaul of isapi to 2.0.

  Yes - it's blatently obvious that this should be 'bucketized', but the
  sequence I will follow is:

    *) compatibility of sources
    *) extension to async + transmitfile emulated support
    *) localization of ISAPI* directives to Directory, File blocks
    *) addition of ISAPI caching
    *) recode for buckets.

  I'm actually looking forward to the mod_cgi bucketization as a model.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoImplement input filtering. This is definately not completely correct, but
Ryan Bloom [Mon, 2 Oct 2000 00:47:28 +0000 (00:47 +0000)]
Implement input filtering.  This is definately not completely correct, but
it is a good first step.  It is possible to add filters when reading from
the client with this change.

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

23 years agoFix the default logformat and CLF description.
Joshua Slive [Sat, 30 Sep 2000 18:51:07 +0000 (18:51 +0000)]
Fix the default logformat and CLF description.
PR: 6556
Submitted by: Mike Abbott <mja@sgi.com>
Reviewed by: Joshua Slive

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

23 years agoFix link to RemoveHandler in the directives list.
Jeff Trawick [Fri, 29 Sep 2000 20:21:24 +0000 (20:21 +0000)]
Fix link to RemoveHandler in the directives list.

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

23 years agoDeprecate "Order Mutual-failure".
Joshua Slive [Fri, 29 Sep 2000 18:31:37 +0000 (18:31 +0000)]
Deprecate "Order Mutual-failure".

Submitted by:  lbayuk@mindspring.com (ljb) (via usenet)
Reviewed by: Joshua Slive

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

23 years agoFirst cut at a filter to buffer/coalesce multiple small buckets into a single large...
Bill Stoddard [Fri, 29 Sep 2000 18:12:14 +0000 (18:12 +0000)]
First cut at a filter to buffer/coalesce multiple small buckets into a single large bucket.
This implementation is limited to coalescing a single string of small (< MIN_BUCKET_SIZE)
buckets into one large bucket.  If a brigade contains a string of small buckets followed by a
large bucket followed by another string of small buckets, only the first string will be coalesced.

This implementation works very well with the output generated by mod_autoindex though.
The number of iovecs handled by http_core is reduced to three from over a thousand for my
test case.

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

23 years agoRemove compatibility info from index.
Joshua Slive [Thu, 28 Sep 2000 23:04:41 +0000 (23:04 +0000)]
Remove compatibility info from index.

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

23 years agoFix the lifetime of the autodata buffer used for the chunk header.
Jeff Trawick [Thu, 28 Sep 2000 22:57:17 +0000 (22:57 +0000)]
Fix the lifetime of the autodata buffer used for the chunk header.
Submitted by: Bill Stoddard
Reviewed by: Jeff Trawick

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

23 years agoLast of the module style changes (I hope).
Joshua Slive [Thu, 28 Sep 2000 22:43:31 +0000 (22:43 +0000)]
Last of the module style changes (I hope).

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

23 years agoStyle updates.
Joshua Slive [Thu, 28 Sep 2000 17:05:36 +0000 (17:05 +0000)]
Style updates.

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

23 years agoStyle update.
Joshua Slive [Thu, 28 Sep 2000 16:55:53 +0000 (16:55 +0000)]
Style update.

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

23 years agoA couple more tutorials.
Joshua Slive [Wed, 27 Sep 2000 23:22:27 +0000 (23:22 +0000)]
A couple more tutorials.

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

23 years agoStyle changes.
Joshua Slive [Wed, 27 Sep 2000 18:36:46 +0000 (18:36 +0000)]
Style changes.

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

23 years agoStyle update.
Joshua Slive [Wed, 27 Sep 2000 03:08:24 +0000 (03:08 +0000)]
Style update.

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

23 years agoCreate a helper function "get_canned_error_string" for use by
Greg Ames [Tue, 26 Sep 2000 23:01:55 +0000 (23:01 +0000)]
Create a helper function "get_canned_error_string" for use by
ap_send_error_response.  The new function simply returns the error response
string corresponding to given HTTP error core.  This makes it easier to
change the mechanism for sending these strings, because we no longer have
r[v]puts calls spread throughout the error string generation code.

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

23 years agoDebug messages in mod_charset_lite are now controlled by
Jeff Trawick [Tue, 26 Sep 2000 19:38:41 +0000 (19:38 +0000)]
Debug messages in mod_charset_lite are now controlled by
CharsetOptions DebugLevel=n instead of CharsetDebug on/off.  Use the debug
level to decide which debug messages to issue (if any).  Use ap_log_rerror()
instead of ap_log_error() when appropriate.
Describe CharsetOptions in the doc.

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

23 years agoStyle fixes. I've stopped removing 1.3 references.
Joshua Slive [Tue, 26 Sep 2000 19:21:09 +0000 (19:21 +0000)]
Style fixes.  I've stopped removing 1.3 references.
This will need to be done later.

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

23 years agoSanity-check the use of multiple instances of XLATEOUT in a
Jeff Trawick [Tue, 26 Sep 2000 15:08:26 +0000 (15:08 +0000)]
Sanity-check the use of multiple instances of XLATEOUT in a
filter chain.  If the translation performed by an instance
being run for the first time clashes with an instance already
in place, disable the new instance.

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

23 years agoSet BSD_MAKEFILE in configure.in. The macro APACHE_GEN_MAKEFILES is
Sascha Schumann [Tue, 26 Sep 2000 11:26:45 +0000 (11:26 +0000)]
Set BSD_MAKEFILE in configure.in. The macro APACHE_GEN_MAKEFILES is
executed in the context of config.status with variable substitution
already performed, so the check in the macro itself did not work.

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

23 years agoRedirect stderr to /dev/null to suppress error messages.
Sascha Schumann [Tue, 26 Sep 2000 11:24:56 +0000 (11:24 +0000)]
Redirect stderr to /dev/null to suppress error messages.

Submitted by: Ralf Engelschall <rse@engelschall.com>

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

23 years agoStyle updates.
Joshua Slive [Mon, 25 Sep 2000 23:59:28 +0000 (23:59 +0000)]
Style updates.

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

23 years agoStyle updates.
Joshua Slive [Mon, 25 Sep 2000 21:50:07 +0000 (21:50 +0000)]
Style updates.

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

23 years ago Cleaner feature tests and new -d -m -s -p options for crypt, MD5, SHA1
William A. Rowe Jr [Mon, 25 Sep 2000 19:06:40 +0000 (19:06 +0000)]
  Cleaner feature tests and new -d -m -s -p options for crypt, MD5, SHA1
  and plaintext password cyphers.  Not certain what the $^O tag for
  NETWARE really is, so this may need to be fixed.

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

23 years agoUpdate mod_actions.
Joshua Slive [Mon, 25 Sep 2000 19:04:46 +0000 (19:04 +0000)]
Update mod_actions.

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

23 years agoFix compile break. It should be apr_pstrcat.
Bill Stoddard [Mon, 25 Sep 2000 16:42:49 +0000 (16:42 +0000)]
Fix compile break. It should be apr_pstrcat.

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

23 years agomod_charset_lite no longer ignores subrequests. (Some logic in
Jeff Trawick [Mon, 25 Sep 2000 11:31:14 +0000 (11:31 +0000)]
mod_charset_lite no longer ignores subrequests.  (Some logic in
mod_charset_lite to avoid problems with subrequests is forthcoming.)

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

23 years ago Return a decent message, in keeping with conf parsing semantics.
William A. Rowe Jr [Sun, 24 Sep 2000 20:13:42 +0000 (20:13 +0000)]
  Return a decent message, in keeping with conf parsing semantics.

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

23 years agoClean up a few warnings in core_filter().
Jeff Trawick [Sun, 24 Sep 2000 13:04:31 +0000 (13:04 +0000)]
Clean up a few warnings in core_filter().

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

23 years agoWe don't have config.guess until later in the build cycle, so change the
David Reid [Sun, 24 Sep 2000 12:40:05 +0000 (12:40 +0000)]
We don't have config.guess until later in the build cycle, so change the
test to use uname.  with this change a clean CVS copy will build using
./buildconf;./configure;make exactly like it should.

Thanks Sascha.

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

23 years agoThe new core post_read_request hook needs to return something
Jeff Trawick [Sat, 23 Sep 2000 22:09:30 +0000 (22:09 +0000)]
The new core post_read_request hook needs to return something
(DECLINED).  This allows Apache to serve pages again (other than
the 500 Internal Server Error page, that is).

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

23 years agoConversion of mod_access.html to new format. Note that this includes
Joshua Slive [Sat, 23 Sep 2000 20:14:32 +0000 (20:14 +0000)]
Conversion of mod_access.html to new format.  Note that this includes
removal of all the "introduced in 1.x.x" stuff.

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

23 years agoCombine the calls to add the core_filter to one place. Basically, it is
Ryan Bloom [Sat, 23 Sep 2000 18:39:30 +0000 (18:39 +0000)]
Combine the calls to add the core_filter to one place.  Basically, it is
safe to add the core_filter during the post_read_request, and it means
that we only have to add the filter once in the code.  This should make
it easier to add an SSL module in the future.

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

23 years agoWorkaround for systems like BSD/OS without mktemp.
Sascha Schumann [Sat, 23 Sep 2000 13:55:37 +0000 (13:55 +0000)]
Workaround for systems like BSD/OS without mktemp.

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

23 years agoPedant of bsd_makefile. Reverses the include directives to SysV-style.
Sascha Schumann [Sat, 23 Sep 2000 08:39:34 +0000 (08:39 +0000)]
Pedant of bsd_makefile. Reverses the include directives to SysV-style.

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

23 years agoDon't use $0 for creating tmpfile as it will contain "/".
Sascha Schumann [Sat, 23 Sep 2000 08:37:23 +0000 (08:37 +0000)]
Don't use $0 for creating tmpfile as it will contain "/".

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

23 years agoFix a security problem that affects certain configurations of mod_rewrite.
Tony Finch [Sat, 23 Sep 2000 00:05:45 +0000 (00:05 +0000)]
Fix a security problem that affects certain configurations of mod_rewrite.
If the result of a RewriteRule is a filename that contains expansion
specifiers, especially regexp backreferences $0..$9 and %0..%9, then it
may be possible for an attacker to access any file on the web server.
The fix replaces a multi-pass string expander with a one-pass expander,
and includes the code quality improvements that were committed separately
to 1.3.

Message-Id: <E13OQB5-0004Xs-00@hand.dotat.at>

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

23 years agoMake the core_filter use apr_sendv and apr_sendfile as appropriate. This is still...
Bill Stoddard [Fri, 22 Sep 2000 20:36:20 +0000 (20:36 +0000)]
Make the core_filter use apr_sendv and apr_sendfile as appropriate. This is still a bit crufty
but it is an improvement over the previous implementation.

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

23 years agoDescription of terms used to describe modules in the new (not yet
Joshua Slive [Fri, 22 Sep 2000 19:58:17 +0000 (19:58 +0000)]
Description of terms used to describe modules in the new (not yet
implemented) format.

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

23 years agoAdd Convert-to-BSD-Makefiles-On-The-Fly system
Sascha Schumann [Fri, 22 Sep 2000 17:07:47 +0000 (17:07 +0000)]
Add Convert-to-BSD-Makefiles-On-The-Fly system

Note 1: Only needed for BSD/OS.
Note 2: Invent better heuristic (timestamp checks for build/*.mk).
Note 3: Conversion is currently one-way
Note 4: Don't package on BSD/OS.

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

23 years agomod_include now tweaks the subrequest output filter chain so that
Jeff Trawick [Fri, 22 Sep 2000 14:57:08 +0000 (14:57 +0000)]
mod_include now tweaks the subrequest output filter chain so that
only *subsequent* filters from the original request are inherited.
Previously, *all* filters from the original request were inherited.

Currently, any filter which runs a subrequest should do the same
thing (though a cleaner interface may be appropriate.)

With this change, subrequests are properly filtered much more often.

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

23 years agoProvide a socklen_t to the user of APR as a portability aid. Some
Jeff Trawick [Fri, 22 Sep 2000 11:37:05 +0000 (11:37 +0000)]
Provide a socklen_t to the user of APR as a portability aid.  Some
systems have unsigned sockaddr len parameters; others have signed.
When passing the length by address (as to accept()) a warning is
generated if the sign is not correct.

This patch assumes that, if no native socklen_t is provided,
apr_socklen_t is always signed; that can be easily tweaked for
certain platforms later.

Inside APR, apr_socklen_t is only used currently in the Unix
implementation.
Submitted by: Victor J. Orlikowski <v.j.orlikowski@gte.net>
Reviewed by: Jeff Trawick

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

23 years agoFix error in setting bytes_sent. Need more time to think about the other problem
Bill Stoddard [Thu, 21 Sep 2000 22:44:51 +0000 (22:44 +0000)]
Fix error in setting bytes_sent. Need more time to think about the other problem
noted in this commit. Thanks Jeff!

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

23 years agoSyntax docs. (Yes, I am essentially just documenting the shell
Joshua Slive [Thu, 21 Sep 2000 21:27:00 +0000 (21:27 +0000)]
Syntax docs.  (Yes, I am essentially just documenting the shell
syntax.  Oh well.)

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

23 years agoGet the call to find_string() out of a loop. find_string() loops
Jeff Trawick [Thu, 21 Sep 2000 16:32:48 +0000 (16:32 +0000)]
Get the call to find_string() out of a loop.  find_string() loops
across the buckets internally.  This gets rid of a compile warning
but doesn't change the behavior.
Inspired by: "Victor J. Orlikowski" <v.j.orlikowski@gte.net>

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

23 years agoFirst cut at a file bucket. Modify the core_filter to handle use
Bill Stoddard [Thu, 21 Sep 2000 16:22:13 +0000 (16:22 +0000)]
First cut at a file bucket. Modify the core_filter to handle use
of apr_sendfile(). Modify ap_send_fd() to use the new file bucket.

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

23 years agoFix the prior fix to the usage of ap_brigade_split()... The caller of
Jeff Trawick [Wed, 20 Sep 2000 21:50:50 +0000 (21:50 +0000)]
Fix the prior fix to the usage of ap_brigade_split()...  The caller of
send_parsed_content() needs to see the new brigade representing the
rest of the content.

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

23 years ago Overhaul of dbmmanage to allow a groups arg (as in Apache 1.2)
William A. Rowe Jr [Wed, 20 Sep 2000 20:09:59 +0000 (20:09 +0000)]
 Overhaul of dbmmanage to allow a groups arg (as in Apache 1.2)
     as well as a comment arg to the add, adduser and update cmds.
     update allows the user to clear or preserve pw/groups/comment.
     Fixed a bug in dbmmanage that prevented the check option from
     parsing a password followed by :group... text.  Corrected the
     seed calcualation for Win32 systems, and added -lsdbm support.
     PR: 3810, 5527

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

23 years agoFix mixup in call to ap_brigade_split().
Jeff Trawick [Wed, 20 Sep 2000 18:36:05 +0000 (18:36 +0000)]
Fix mixup in call to ap_brigade_split().

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

23 years agoAvoid a segfault when parsing .htaccess files. An
Jeff Trawick [Wed, 20 Sep 2000 17:35:59 +0000 (17:35 +0000)]
Avoid a segfault when parsing .htaccess files.  An
uninitialized tree pointer was passed to ap_build_config().

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

23 years ago Correct dbmmanage pwfile check behavior to ignore [:grp...] contents.
William A. Rowe Jr [Wed, 20 Sep 2000 17:12:42 +0000 (17:12 +0000)]
  Correct dbmmanage pwfile check behavior to ignore [:grp...] contents.
  Also add SDBM_File for -lsdbm.

PR:             4695
Submitted by: arnez@raleigh.ibm.com
Reviewed by: wrowe

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

23 years ago Never carried forward from 1.3.13
William A. Rowe Jr [Wed, 20 Sep 2000 15:53:00 +0000 (15:53 +0000)]
  Never carried forward from 1.3.13

PR:             4973
Submitted by: Andrew McRae <andrew@liquid.com>
Reviewed by: Ralf S. Engelschall

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

23 years ago could be bad - no dav here yet
William A. Rowe Jr [Wed, 20 Sep 2000 15:02:24 +0000 (15:02 +0000)]
  could be bad - no dav here yet

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoFix parameter list to ap_pcfg_openfile().
Jeff Trawick [Wed, 20 Sep 2000 14:11:22 +0000 (14:11 +0000)]
Fix parameter list to ap_pcfg_openfile().

(No, this doesn't get mod_info to compile...  No, I'm not working
on mod_info...  I happened to notice the bad call so I fixed it.)

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

23 years ago Transposed return values between conditions, oops.
William A. Rowe Jr [Wed, 20 Sep 2000 05:01:55 +0000 (05:01 +0000)]
  Transposed return values between conditions, oops.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years ago Get mod_auth_dbm building using Apache's sdbmlib under WinNT.
William A. Rowe Jr [Wed, 20 Sep 2000 04:54:06 +0000 (04:54 +0000)]
  Get mod_auth_dbm building using Apache's sdbmlib under WinNT.

  Bad conditional... need a better test to determine if we are using sdbm.

  Also - consistify linkage for expat-lite/sdmb to the same model as all
  the modules (no more nasty "conflicting linkage, use /nodefaultlib" msg.)

PR:
Obtained from:
Submitted by:
Reviewed by:

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

23 years agoGet internal redirects working by initializing the output_filters
Jeff Trawick [Tue, 19 Sep 2000 23:50:36 +0000 (23:50 +0000)]
Get internal redirects working by initializing the output_filters
list.  We start over with only core_filter just like a fresh request.
Processing of the new URI will determine what filters (if any) are
appropriate.

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