Stefan Fritsch
a3ffb7e3df
Remove some ap_add_version_component() calls that don't provide any information
...
because the modules don't have separate version numbers anymore
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199532 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 23:37:13 +00:00
Stefan Fritsch
ebfb6ac9c9
Don't send a 500 if there is a timeout
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199444 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 20:36:03 +00:00
Stefan Fritsch
ccc76d4e43
Change default FileETag to be "size mtime", i.e. remove the inode. Adjust the
...
etag generation in mod_dav_fs to the new default.
PR 49623.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1199086 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 03:06:08 +00:00
Stefan Fritsch
1951a037bf
More cleanup: Expand tabs and some more indentation fixes
...
No functional change
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174929 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 18:08:42 +00:00
Jim Jagielski
427c85bd23
Cleanup effort in prep for GA push:
...
Trim trailing whitespace... no func change
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174751 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 13:39:32 +00:00
Eric Covener
c45e14b246
refactor to pull setting of Accept-Ranges header into http_protocol.c which
...
had been copied to other handlers.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1166663 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 12:56:08 +00:00
Stefan Fritsch
32d9e326ef
adjustments of build priorities of modules without special dependencies
...
all -> most:
- mod_sed
reallyall -> most:
- mod_log_debug
reallyall -> all:
- mod_dav_lock
- mod_echo
- mod_charset_lite
- mod_slotmem_plain
- mod_dialup
few -> all:
- mod_data
- mod_reflector
- mod_asis
most -> all:
- mod_heartbeat
- mod_heartmonitor
- mod_watchdog
most -> reallyall:
- mod_imagemap
- mod_cern_meta
- mod_ident
See thread at
http://mail-archives.apache.org/mod_mbox/httpd-dev/201107.mbox/%3C201107052321.56063.sf@sfritsch.de%3E
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1146227 13f79535-47bb-0310-9956-ffa450edef68
2011-07-13 18:59:28 +00:00
Stefan Fritsch
51692222f6
Various code cleanup
...
PR: 51398
Submitted by: Christophe Jaillet <christophe jaillet wanadoo fr>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1138627 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 20:45:34 +00:00
Stefan Fritsch
48345b21d0
Avoid some memory allocations by using apr_table_setn where the string arguments
...
are allocated from the request pool and not modified later on.
Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr>
PR: 51358
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1135084 13f79535-47bb-0310-9956-ffa450edef68
2011-06-13 11:04:29 +00:00
Stefan Fritsch
c67e7d5dd0
Log the proper module name on errors
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1133163 13f79535-47bb-0310-9956-ffa450edef68
2011-06-07 20:58:45 +00:00
Stefan Fritsch
afe7630907
Log a more obvious message if apr cannot load its dbm shared library.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1133158 13f79535-47bb-0310-9956-ffa450edef68
2011-06-07 20:55:56 +00:00
Stefan Fritsch
c405eb5299
Don't return an undefined value if opening of a read-only database fails.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1133152 13f79535-47bb-0310-9956-ffa450edef68
2011-06-07 20:40:21 +00:00
Stefan Fritsch
51226bdcca
Fix various "variable 'x' set but not used" warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1125877 13f79535-47bb-0310-9956-ffa450edef68
2011-05-22 07:42:18 +00:00
Stefan Fritsch
2014acf62f
Improvements found by cppcheck:
...
remove some unused variables and dead assignments, reduce the scope of some
variables, add some parens to improve readability
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1103459 13f79535-47bb-0310-9956-ffa450edef68
2011-05-15 16:58:45 +00:00
Guenter Knauf
10b8e04753
Create dav.imp dynamically from header to catch all exports.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1083540 13f79535-47bb-0310-9956-ffa450edef68
2011-03-20 19:14:45 +00:00
Guenter Knauf
db1cf0ac7f
Removed dav_get_limit_xml_body() from mod_dav.h.
...
This was a forgotten prototype hanging around for close
to 11 years where no code for existed (see r85816);
now removed from all branches per wrowe's permission.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1083536 13f79535-47bb-0310-9956-ffa450edef68
2011-03-20 18:58:27 +00:00
Guenter Knauf
7c1e9bf7c9
More NetWare build fixes.
...
Sorted some makefile dependencies; fixed DAV makefiles.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1083478 13f79535-47bb-0310-9956-ffa450edef68
2011-03-20 15:56:39 +00:00
Guenter Knauf
888ec80125
Use a var INSTALLBASE to simplify NetWare installation rules.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1082821 13f79535-47bb-0310-9956-ffa450edef68
2011-03-18 04:56:06 +00:00
Guenter Knauf
bab978c56e
Use var for prelude so its possible to change it at one place.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1082811 13f79535-47bb-0310-9956-ffa450edef68
2011-03-18 03:09:27 +00:00
Guenter Knauf
2dc89e951b
NetWare build overhaul in order to compile on Linux.
...
Some more fixes ...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1079614 13f79535-47bb-0310-9956-ffa450edef68
2011-03-09 00:19:31 +00:00
Guenter Knauf
e8a8becc0f
NetWare build overhaul in order to compile on Linux.
...
Removed absolute paths to imp files.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1079487 13f79535-47bb-0310-9956-ffa450edef68
2011-03-08 18:59:02 +00:00
Guenter Knauf
46b7e1d210
NetWare build overhaul in order to compile on Linux.
...
Take 1.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1079407 13f79535-47bb-0310-9956-ffa450edef68
2011-03-08 16:04:40 +00:00
Stefan Fritsch
2e8f78ee92
revert r1026746:
...
If an unknown Content-* header is received for a PUT request, we must not
ignore it but reply with 501 per RFC 2616 9.6.
PR: 42978
Vetoed by Roy T. Fielding:
http://mail-archives.apache.org/mod_mbox/httpd-dev/201102.mbox/%3C9A5A8B62-ED16-4BD3-97DA-8475026BB81D@gbiv.com%3E
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1070061 13f79535-47bb-0310-9956-ffa450edef68
2011-02-12 12:16:18 +00:00
Daniel Earl Poirier
4485859b81
Remove mis-placed period.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1029935 13f79535-47bb-0310-9956-ffa450edef68
2010-11-02 01:15:19 +00:00
Daniel Earl Poirier
4c477008d4
Add to modules' help text (displayed by ./configure -h) more
...
information that will be useful in deciding whether to enable
them or not.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1029814 13f79535-47bb-0310-9956-ffa450edef68
2010-11-01 20:02:51 +00:00
Stefan Fritsch
a1662e0f41
If an unknown Content-* header is received for a PUT request, we must not
...
ignore it but reply with 501 per RFC 2616 9.6.
PR: 42978
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1026746 13f79535-47bb-0310-9956-ffa450edef68
2010-10-24 08:32:10 +00:00
Stefan Fritsch
25ef3c1325
If a malformed Content-Range header is received for a PUT request, we
...
must not use the supplied content per RFC 2616 14.16. Send 400 response
instead of ignoring the Content-Range.
PR: 49825
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1026743 13f79535-47bb-0310-9956-ffa450edef68
2010-10-24 08:17:26 +00:00
Rainer Jung
6e66831b4a
Fix broken "creationdate" property in mod_dav_fs and
...
remove remaining uses of sprintf() in the dav modules.
This is a regression in 2.3.7 introduced by r931434.
It calls sizeof() for a function parameter, which only returns the
pointer size, not the size of the char array. Thus the
"creationdate" property got truncated to three characters.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@987484 13f79535-47bb-0310-9956-ffa450edef68
2010-08-20 12:55:42 +00:00
Jeff Trawick
0ce133f8a8
Intel's compiler warns about assigning the non-enum value 0 to the
...
enumeration apr_finfo_t.filetype, which is done when forgetting
the previously-derived file type
use the appropriate enum value APR_NOFILE instead
Also change comparisons of the field with 0 to use APR_NOFILE instead,
as is the practice of some existing code.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@983065 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 17:36:52 +00:00
Stefan Fritsch
aa576071af
- Remove a load of unused variables (or variables that are set but never read).
...
- Move some declarations into the correct #ifdef scope.
I couldn't compile/test netware, but the changes look obvious enough.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@982016 13f79535-47bb-0310-9956-ffa450edef68
2010-08-03 19:45:21 +00:00
Guenter Knauf
5e8988e256
Removed obsolete include paths from NetWare makefiles.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@966904 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 23:38:58 +00:00
Paul Querna
ad53d4dcbd
CVE-2010-1452: Fix handling of missing path segments in the parsed URI structure.
...
If a specially crafted request was sent, it is possible to crash mod_dav,
mod_cache or mod_session, as they accessed a field that is set to NULL
by the URI parser, assuming that it always put in a valid string.
PR: 49246
Submitted by: Mark Drayton
Patch by: Jeff Trawick
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@966348 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 18:25:01 +00:00
Stefan Fritsch
ed451e94d1
re-order many struct members for better alignment on 64bit
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@959464 13f79535-47bb-0310-9956-ffa450edef68
2010-06-30 22:34:05 +00:00
Stefan Fritsch
ebb62867fb
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
...
advantage of per-module loglevels
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951895 13f79535-47bb-0310-9956-ffa450edef68
2010-06-06 16:59:50 +00:00
William A. Rowe Jr
d887351498
Look ma, portable code.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@931434 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 04:40:36 +00:00
Ruediger Pluem
68603b126b
* Fix compiler warning on 64 bit environments
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@929022 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 07:12:58 +00:00
Stefan Fritsch
592cb37b2a
Create new files with APR_OS_DEFAULT permissions.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@928403 13f79535-47bb-0310-9956-ffa450edef68
2010-03-28 14:19:49 +00:00
Guenter Knauf
03a066c10a
more NetWare makefile cleanups.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@885781 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 15:00:11 +00:00
Jeff Trawick
540ceccf45
Remove errno from dav_error interface. Calls to dav_new_error()
...
and dav_new_error_tag() must be adjusted to add an apr_status_t parameter.
Reviewed by: jorton
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@882274 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 20:09:27 +00:00
Stefan Fritsch
d06145f959
When moving a file over device boundaries and unlinking the source file fails
...
because it does not exist anymore, don't unlink the destination file.
While it is unclear to me how/when this can happen, at least one user
encountered the problem:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=273476
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834697 13f79535-47bb-0310-9956-ffa450edef68
2009-11-10 22:13:50 +00:00
Stefan Fritsch
aa875cfd7f
Revert removal of the key_type byte in the lock key. There is no need to break
...
the format on systems without inodes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834533 13f79535-47bb-0310-9956-ffa450edef68
2009-11-10 16:32:57 +00:00
Stefan Fritsch
953abd3453
mod_dav_fs: Include uri when logging a PUT error due to connection abort.
...
PR: 38149
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834245 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09 21:32:10 +00:00
Stefan Fritsch
710003318f
Return 409 instead of 500 for a LOCK request if the parent resource does not
...
exist or is not a collection.
PR: 43465
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834230 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09 21:04:28 +00:00
Stefan Fritsch
2cefaf3c32
Fix compiler warning
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834079 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09 14:27:45 +00:00
Stefan Fritsch
69cae4bd3f
Fix litmus warning: According to RFC2518, COPY to non-existant collection
...
should give 409 CONFLICT.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834073 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09 14:10:31 +00:00
Stefan Fritsch
539b5f666c
Don't delete the whole file if a PUT with content-range failed.
...
PR: 42896
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834062 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09 13:50:21 +00:00
Stefan Fritsch
071c3e84f9
Make PUT with DAV_MODE_WRITE_TRUNC create a temporary file first and, when the
...
transfer has been completed successfully, move it over the old file.
Since this would break inode keyed locking, switch to filename keyed locking
exclusively.
PR: 39815
Submitted by: Paul Querna, Stefan Fritsch
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834049 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09 13:14:07 +00:00
Stefan Fritsch
734abfb1fa
Instead of checking device ids, try rename first and in case of EXDEV,
...
fallback to copy.
From rename(2) on Linux: Linux permits a file system to be mounted at multiple
points, but rename() does not work across different mount points, even
if the same file system is mounted on both.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@834019 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09 11:17:01 +00:00
Guenter Knauf
a7c17df337
fixed dav_hooks_repository_fs struct member order, fixed comments.
...
Submitted by brian brianfrance.com.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@830284 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27 18:36:26 +00:00
Graham Leggett
9a107e738e
mod_dav: Provide a mechanism to obtain the request_rec and pathname
...
from the dav_resource.
Submitted by: Jari Urpalainen <jari.urpalainen nokia.com>,
Brian France <brian brianfrance.com>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@823703 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 21:41:31 +00:00