1
0
mirror of https://github.com/apache/httpd.git synced 2026-10-25 10:59:28 +03:00
Commit Graph

933 Commits

Author SHA1 Message Date
Jim Jagielski
30f4e49aaf Merge r732832, r733134, r733218 from trunk:
Translate locally generated "100-Continue" message to
ASCII on EBCDIC systems.


EBCDIC fix for ap_send_interim_response()



simplifications per niq's review comments

Submitted by: covener
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@733759 13f79535-47bb-0310-9956-ffa450edef68
2009-01-12 14:03:38 +00:00
Jim Jagielski
d066ba3e92 Merge r729586, r732504 from trunk:
CGI: return 504 (Gateway timeout) rather than 500 when a script
times out before returning status line/headers.
PR 42190


Improve canned 504 error message in the light of r729586 and covener's comment.

Submitted by: niq
Reviewed/backported by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@733757 13f79535-47bb-0310-9956-ffa450edef68
2009-01-12 13:59:56 +00:00
Eric Covener
47168163bd Merge r722213,r722081, and r721679 from trunk:
* Avoid sending no answer at all if a custom error page causes an
  AP_FILTER_ERROR.

* allow ap_invoke_handler() to pass-through AP_FILTER_ERROR as if it were
  a reserved status code (OK/DECLINED/SUSPENDED). Prevents ap_die() from seeing a
  500 error when the http header filter has already taken care of the proper
  error response

* To be safe, consume the entire brigade after processing an error bucket in
  the HTTP output filter.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@722642 13f79535-47bb-0310-9956-ffa450edef68
2008-12-02 22:28:21 +00:00
Jim Jagielski
60ba8573a6 Merge r693120, r720250 from trunk:
Add in useful feature. %k which logs the keepalives
value.
PR: 45762
        Dan Poirier <poirier@pobox.com>


Make %k work as it should. No regression noted in perl
test framework.

Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@721033 13f79535-47bb-0310-9956-ffa450edef68
2008-11-26 23:24:20 +00:00
Jim Jagielski
a101104c2f Merge r660726 from trunk:
*  mod_proxy_http.c
   Ensure that the EOC bucket is inserted BEFORE an EOS bucket in bb as
   some resource filters like mod_deflate pass everything up to the EOS
   down the chain immediately and sent the remainder of the brigade later
   (or even never). But in this case the ap_http_header_filter does not
   get out of our way soon enough.

   http_filters.c
   Remove all data buckets that are in a brigade after an EOC bucket
   was seen, as an EOC bucket tells us that no (further) resource
   and protocol data should go out to the client. OTOH meta buckets
   are still welcome as they might trigger needed actions down in
   the chain (e.g. in network filters like SSL).
   Remark 1: It is needed to dump ALL data buckets in the brigade
             since an filter in between might have inserted data
             buckets BEFORE the EOC bucket sent by the original
             sender and we do NOT want this data to be sent.
   Remark 2: Dumping all data buckets here does not necessarily mean
             that no further data is send to the client as:
             1. Network filters like SSL can still be triggered via
                meta buckets to talk with the client e.g. for a
                clean shutdown.
             2. There could be still data that was buffered before
                down in the chain that gets flushed by a FLUSH or an
                EOS bucket.

PR: 37770

Submitted by: rpluem
Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@660936 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 12:58:29 +00:00
Eric Covener
5636d8eb11 Merge r659560, r660485 from trunk:
The response to the TRACE method is partially garbled on an EBCDIC platform.
Send the request line and trailing CRLF in ASCII.

Submitted by:           David Jones <oscaremma gmail.com>
Reviewed and tested by: gregames



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@660728 13f79535-47bb-0310-9956-ffa450edef68
2008-05-27 21:43:39 +00:00
Ruediger Pluem
ad229c108e Merge r657933 from trunk:
* Only send 100-continue if the status code so far indicates success.

PR: 43711

Submitted by: rpluem
Reviewed by: rpluem, niq, trawick


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@660569 13f79535-47bb-0310-9956-ffa450edef68
2008-05-27 15:54:31 +00:00
Ruediger Pluem
1e8c308735 Merge r645813 from trunk:
* In the case that we fail to read the response line from the backend and if
  we are a reverse proxy request shutdown the connection WITHOUT ANY response
  to trigger a retry by the client if allowed (as for idempotent requests).
  BUT currently we should not do this if the request is the first request on
  a keepalive connection as browsers like seamonkey only display an empty page
  in this case and do not do a retry.

Related to PR 37770

Submitted by: rpluem
Reviewed by: rpluem, jim, fielding


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@657443 13f79535-47bb-0310-9956-ffa450edef68
2008-05-17 19:47:38 +00:00
Jim Jagielski
5b4a0d935f Merge r644391 from trunk:
close PR 44381

Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@649116 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 14:07:25 +00:00
Jim Jagielski
e50a060015 Merge r611475 from trunk:
Don't add bogus duplicate Content-Language header entries.
PR 11035

Submitted by: niq
Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@631363 13f79535-47bb-0310-9956-ffa450edef68
2008-02-26 19:52:29 +00:00
Nick Kew
6e41dbfad6 Backport r628644
http_filters: Don't returm 100-continue on client error
PR 43711


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@630366 13f79535-47bb-0310-9956-ffa450edef68
2008-02-23 00:34:47 +00:00
Jim Jagielski
d2f338f25c Various memory, code cleanup and edge case optimizations for
ap_http_filter (HTTP_INPUT) filter


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@610510 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 18:48:58 +00:00
Ruediger Pluem
56da3b4a78 Merge r609394, r609538, r609540 from trunk:
* Fix cases with non blocking reads from the ap_http_filter input filter where
  chunk size lines or empty lines after a chunk are read incomplete. This can
  lead to a corruption inside the dechunking algorithm.
  This patch has an issue with larger chunk-extensions which need to get thrown
  away since we ignore them anyway.

PR: 19954, 41056
Tested by: niq

* Optimize solution from r609394 and remove chunk-extensions restriction that
  was in r609394.

* Optimize alignment.

Submitted by: rpluem
Reviewed by: rpluem, jim, niq


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@610119 13f79535-47bb-0310-9956-ffa450edef68
2008-01-08 19:59:48 +00:00
William A. Rowe Jr
b4012130c3 Two type mismatch fixes previously committed to trunk\
and forgotten from backports

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@605073 13f79535-47bb-0310-9956-ffa450edef68
2007-12-18 03:46:48 +00:00
Jim Jagielski
9aa8b50784 Merge r603346 from trunk:
http_protocol: Escape request method in 405 error reporting.
This has no security impact since the browser cannot be tricked
into sending arbitrary method strings.

(words from jorton)

Submitted by: trawick
Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@604192 13f79535-47bb-0310-9956-ffa450edef68
2007-12-14 13:46:43 +00:00
Nick Kew
7421bb2ee1 Backport r602735 and r602735
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@603732 13f79535-47bb-0310-9956-ffa450edef68
2007-12-12 20:43:04 +00:00
Ruediger Pluem
f1e3ed6dca Merge r480135, r480193, r504559, r602349, r602657, r503863 from trunk:
* Apply patch for PR 41056 (19954) to fix chunk
  filter. Now flushes work better.

* Protect against any sort of non-block read that
  would block. If ap_get_brigade() shows that, return
  EAGAIN.

* Further refinement for PR41056 / PR 19954 (mostly-fixed in r480135.)
  We assume that a successful read but an empty brigade
  is NOT cause for EAGAIN. Testing may or may not
  confirm this assumption, in which case that test
  may be required as well.

* If no data is available at this point of time we need to switch into the
  BODY_CHUNK_PART state like we do several lines later in the code in the
  same situation.

* Case statements should go on their own line.  (No functional change.)

* modules/http/http_filters.c
  (ap_http_filter): Put case on its own line.

* Add missing Changelog entry for PR41056 / PR 19954. This was fixed in r480135.

PR: 41056 / 19954
Submitted by: jfclere, jim
Reviewed by: rpluem, jim, jerenkrantz


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@602679 13f79535-47bb-0310-9956-ffa450edef68
2007-12-09 14:54:23 +00:00
Ruediger Pluem
522bc21938 Merge r517238, r517654 from trunk:
Generate etags consistently across 32-bit and 64-bit platforms:

* modules/http/http_etag.c (etag_uint64_to_hex): Renamed from
etag_ulong_to_hex; take an apr_uint64_t argument.
(ap_make_etag): Adjust to use new function and macro names.
Pass arguments directly to etag_uint64_to_hex without casting
down to unsigned long.

* modules/http/http_etag.c (etag_uint64_to_hex): Fix maximum shift
size, thanks to Ruediger.

PR: 40064
Submitted by: jorton
Reviewed by: rpluem, jim, niq


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@602503 13f79535-47bb-0310-9956-ffa450edef68
2007-12-08 16:50:12 +00:00
Jim Jagielski
ba019f4ad3 Merge r600645 from trunk:
http_protocol: Escape request method in 413 error reporting.
Determined to be not generally exploitable, but a flaw in any case.

PR: 44014
Submitted by: Victor Stinner <victor.stinner inl.fr>



Submitted by: wrowe
Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@602473 13f79535-47bb-0310-9956-ffa450edef68
2007-12-08 14:08:32 +00:00
Jim Jagielski
7f4abd76ec * http_filters: Fix handling of unrecognised Transfer Encodings
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@602470 13f79535-47bb-0310-9956-ffa450edef68
2007-12-08 14:04:34 +00:00
Ruediger Pluem
0ed9165497 Merge 557837, 557972 from trunk:
Multiple trivial fixes from Christophe JAILLET
PR 38699, 39518, 42005, 42006, 42007, 42008, 42009
The patches are all his, and are sufficiently trivial to review
at a glance.

Fix clash between r557837 and r427780

PR: 38699, 39518, 42005, 42006, 42007, 42008, 42009
Submitted by: Christophe Jaillet <christophe.jaillet wanadoo.fr>
Reviewed by: rpluem, trawick, niq


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@599569 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 20:21:10 +00:00
Jim Jagielski
8b3716cc16 Merge r594839 from trunk:
core: Avoid some unexpected connection closes by telling the client
that the connection is not persistent if the MPM process handling
the request is already exiting when the response header is built.

Submitted by: trawick
Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@596677 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 14:04:47 +00:00
Jim Jagielski
3813732dbc Apply backport... fix "conflicts" with CHANGES and ap_mmn.h
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@595474 13f79535-47bb-0310-9956-ffa450edef68
2007-11-15 22:08:30 +00:00
Jim Jagielski
c1013685e8 Merge r579991, r580502, r584842 from trunk:
Add "DefaultType None" option
PR 13986 and PR 16139


Document "DefaultType None" option (PR 13986)


Improve documentation of "DefaultType None"

Submitted by: niq
Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@589616 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 13:11:42 +00:00
Jim Jagielski
25ec583cec Merge r582795 from trunk:
Note PR 43519 is closed...

Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@583150 13f79535-47bb-0310-9956-ffa450edef68
2007-10-09 13:16:49 +00:00
Jim Jagielski
10402055f4 Merge r507526 from trunk:
Return METHOD_NOT_ALLOWED, not FORBIDDEN, to a TRACE request when
TraceEnable is Off.  This agrees with our documentation, and with
our Allow: header in response to OPTIONS.

Submitted by: niq
Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@576514 13f79535-47bb-0310-9956-ffa450edef68
2007-09-17 16:48:30 +00:00
Jim Jagielski
9f181478b1 Merge r574240 from trunk:
Don't send spurious "100 Continue" response lines.
PR 38014 [Basant Kumar Kukreja]


Submitted by: niq
Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@574950 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 13:20:42 +00:00
Ruediger Pluem
e8f3efee97 Merge r483633 from trunk:
* Do not replace a Date header set by a proxied backend server.

PR: 40232

Submitted by: rpluem
Reviewed by: rpluem, jim, niq 


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@572272 13f79535-47bb-0310-9956-ffa450edef68
2007-09-03 10:05:16 +00:00
William A. Rowe Jr
003a033071 Add .manifest post-processing to the httpd build for users of VC 8
(Studio 2005, 'free' Express or full edition) command line builds.

Backports 495126, adjusted for debugging/debug path change between
trunk and 2.2 branch.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@495130 13f79535-47bb-0310-9956-ffa450edef68
2007-01-11 05:44:54 +00:00
Jeff Trawick
492e695c40 merge from trunk (but preserve ap_get_server_version()):
*) The full server version information is now included in the error log at
     startup as well as server status reports, irrespective of the setting
     of the ServerTokens directive.  ap_get_server_version() is now 
     deprecated, and is replaced by ap_get_server_banner() and 
     ap_get_server_description().

Reviewed by: rpluem, jim



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@446606 13f79535-47bb-0310-9956-ffa450edef68
2006-09-15 13:19:25 +00:00
William A. Rowe Jr
50d63a7fe6 Sync to httpd/trunk where we've reverted the /d "LONG_NAME=foo bar" syntax,
which confuses the ability of MS VS 6 to export makefiles.

  Also syncs the fix to some debug/release targets observed by hunter.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@429039 13f79535-47bb-0310-9956-ffa450edef68
2006-08-05 20:19:08 +00:00
Ruediger Pluem
855ef76388 Merge r399947, r406697 from trunk:
* Add optional 'scheme://' prefix to ServerName directive.  For
  'https', mod_http returns "https" for the ap_hook_http_scheme and
  DEFAULT_HTTPS_PORT for ap_hook_default_port.  This fixes Redirect
  responses to requests for directories without a trailing slash
  when httpd runs behind a proxy or offload device that processes
  SSL.  It also enables support for Subversion in that
  configuration.  This change is completely backwards compatible
  and passes the perl-framework.  Minor mmn bump because I add a
  field to server_rec.

* Document r399947, addition of optional scheme:// to ServerName directive

PR: 33398
Submitted by: sctemme
Reviewed by: sctemme, rpluem, wrowe


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@425051 13f79535-47bb-0310-9956-ffa450edef68
2006-07-24 13:34:19 +00:00
Roy T. Fielding
ae1748a99f update license header text
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@421103 13f79535-47bb-0310-9956-ffa450edef68
2006-07-12 03:38:44 +00:00
William A. Rowe Jr
913de3b472 This resource /D syntax was pretty horridly imported into VS 2005,
change the quotation to ensure a peaceful transition to sln/vcproj files.

Backports: 397647

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@397651 13f79535-47bb-0310-9956-ffa450edef68
2006-04-27 21:51:48 +00:00
William A. Rowe Jr
967c94daee Remove all /machine:I386 references, these are getting in the way
of switching linkers from the x86 (default linker) to x64 or other
  possible target platforms.  (Also this commit cleans up lingering
  /GX switches from the 'BASE' options that are supposed to be unused.)

Backports: 397407

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@397649 13f79535-47bb-0310-9956-ffa450edef68
2006-04-27 21:47:41 +00:00
William A. Rowe Jr
9b1b56ab68 After appropriate time sitting on trunk, and some review by our
win32 builders, eliminate platform-specific use of 'awk' to create
  our .rc resources.  (Deliberately waited until a clean 2.2.2 was
  pulled from the branch.)  The end goal is to make building simpler
  for our 'free' VisualStudio 2005 Express users, to encourage more
  end users to explore the source code.  Eliminating thousands of
  lines of build-script is a nice side effect.

Backports: 395418

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@396974 13f79535-47bb-0310-9956-ffa450edef68
2006-04-25 20:24:55 +00:00
Paul Querna
786089eef9 Revert r395231 from the 2.2.x branch. This gets us back to the old place with regard to the copyright statements.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@396056 13f79535-47bb-0310-9956-ffa450edef68
2006-04-22 01:53:06 +00:00
William A. Rowe Jr
84871ce3fe Backport 395419, replace /GX win32 compile flag with /EHsc to match.
Reviewed by all active win32 contributors, and committed as an arch
  maintenance fix.  This permits Win32 VisualStudio 2005 users to build
  httpd without extranious 'deprectated option' emits.

Reviewed by: wrowe, colm

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@395961 13f79535-47bb-0310-9956-ffa450edef68
2006-04-21 17:47:19 +00:00
Colm MacCarthaigh
8ffd8c554b Update the last year of copyright for the 2.2.x branch
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@395231 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 12:33:16 +00:00
Mark J. Cox
a5dd65b626 http_protocol: Fix escaping of Expect error message
+1: mjc, trawick, rpluem, jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@395173 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 08:33:19 +00:00
Paul Querna
79c679c6b6 Merge r354630 from trunk:
If a connection aborts while waiting for a chunked line, flag the connection as
errored out and send errors upwards.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@390595 13f79535-47bb-0310-9956-ffa450edef68
2006-04-01 06:18:02 +00:00
Jim Jagielski
b2a530354a Merge accepted backport...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@390190 13f79535-47bb-0310-9956-ffa450edef68
2006-03-30 17:46:44 +00:00
Jeff Trawick
6ac9799c75 merge from trunk:
core: Fix up botched status lines (mismatch with r->status or
         just badly formatted)

reviewed by: jerenkrantz, jorton



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@385581 13f79535-47bb-0310-9956-ffa450edef68
2006-03-13 16:14:34 +00:00
Jim Jagielski
da919f7e28 Trivial backport of r366374 - Use AP_BUCKET_IS_ERROR macro
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@366378 13f79535-47bb-0310-9956-ffa450edef68
2006-01-06 01:06:36 +00:00
Ruediger Pluem
2f178b001e Merge r357328 from trunk:
* Fix ap_http_chunk_filter to create correct chunks in the case that a
  flush bucket is pre- and postfixed by data buckets in the brigade.

Submitted by: Ruediger Pluem
Reviewed by: Justin Erenkrantz, Joe Orton, Jim Jagielski


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@357456 13f79535-47bb-0310-9956-ffa450edef68
2005-12-18 11:21:05 +00:00
Nick Kew
44037b372c Backport fix for recursive errordocuments (PR 36090)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@355454 13f79535-47bb-0310-9956-ffa450edef68
2005-12-09 11:58:51 +00:00
Jim Jagielski
0f7b6563e8 Merge r345053 from trunk:
No functional change: remove "internal" tab spacing/formatting.



Reviewed by: jim


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@345239 13f79535-47bb-0310-9956-ffa450edef68
2005-11-17 13:39:15 +00:00
Jim Jagielski
0a93716a36 No functional change: more indenting/formatting changes due to
tabbing



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@332318 13f79535-47bb-0310-9956-ffa450edef68
2005-11-10 16:05:09 +00:00
Jim Jagielski
b3181bddae No functional change: remove trailing whitespace. This also means
that "blank" lines, which had consisted of just spaces
and/or tabs are now truly blank lines


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@332309 13f79535-47bb-0310-9956-ffa450edef68
2005-11-10 15:20:05 +00:00
Jim Jagielski
ec2468d2ae No functional change: detab all indenting to be consistent
with our formatting standards.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@332307 13f79535-47bb-0310-9956-ffa450edef68
2005-11-10 15:15:41 +00:00