/[Apache-SVN]/httpd/httpd/trunk/modules/dav/main/util.c
ViewVC logotype

Log of /httpd/httpd/trunk/modules/dav/main/util.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 1914439 - (view) (download) (annotate) - [select for diffs]
Modified Thu Dec 7 18:29:15 2023 UTC (16 months, 1 week ago) by jorton
File length: 81972 byte(s)
Diff to previous 1907608 (colored)
* modules/dav/main/util.c (dav_validate_resource_state): Fix error
  message formatting if an unauthenticated user tries to use an
  authenticated user's lock token (cosmetic fix only).


Revision 1907608 - (view) (download) (annotate) - [select for diffs]
Modified Mon Feb 13 16:48:35 2023 UTC (2 years, 2 months ago) by manu
File length: 81950 byte(s)
Diff to previous 1906487 (colored)
Add MS-WDV support

MS-WDV specification:
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-wdv

The changes introduces the DAVMSext directive, which is used to 
enable MS-WDV: DAVMSext +WDV

dav_get_timeout_string() is introduced as a variant of dav_get_timeout().
The former parses a string, the later parse the Timeout HTTP header.



Revision 1906487 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jan 9 12:01:56 2023 UTC (2 years, 3 months ago) by jorton
File length: 81321 byte(s)
Diff to previous 1879888 (colored)
SECURITY: CVE-2006-20001 (cve.mitre.org)

Address a memory read, or write of single zero byte, past the end of the If header (heap memory).

* modules/dav/main/util.c (dav_process_if_header): Fix error
  path for "Not" prefix parsing.


Revision 1879888 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 15 13:16:19 2020 UTC (4 years, 9 months ago) by minfrin
File length: 80977 byte(s)
Diff to previous 1879149 (colored)
mod_dav: Add utility functions dav_validate_root_ns(),
dav_find_child_ns(), dav_find_next_ns(), dav_find_attr_ns() and 
dav_find_attr() so that other modules get to play too.


Revision 1879149 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 24 12:23:15 2020 UTC (4 years, 9 months ago) by ylavic
File length: 79374 byte(s)
Diff to previous 1879074 (colored)
Follow up to r1879074: don't let dav_process_if_header() go above root.

And fall through as "/".


Revision 1879074 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jun 22 10:29:27 2020 UTC (4 years, 9 months ago) by ylavic
File length: 79309 byte(s)
Diff to previous 1874144 (colored)
Add ap_normalize_path() to replace ap_getparents() (with options).

include/httpd.h: Declare ap_normalize_path() and flags.
    AP_NORMALIZE_ALLOW_RELATIVE:
        Don't require that the path be absolute as per RFC 7230.
        This is needed for lookup subrequests.
    AP_NORMALIZE_NOT_ABOVE_ROOT:
        Check that directory traversal ("..") don't go above root, or
        initial directory with relative paths.
    AP_NORMALIZE_DECODE_UNRESERVED:
        Decode unreserved characters (like '.') first since they have
        the same semantics encoded and decoded.
    AP_NORMALIZE_MERGE_SLASHES:
        Merge multiple slahes into a single one.
    AP_NORMALIZE_DROP_PARAMETERS:
        Ignore path parameters (";foo=bar"). Not used by httpd but since
        ap_normalize_path() is taken from mod_jk's jk_servlet_normalize()
        it can allow them to use the upstream version now.

server/util.c: Implement ap_normalize_path().

modules/dav/main/util.c: Replace call to ap_getparents() using
    ap_normalize_path() with AP_NORMALIZE_DECODE_UNRESERVED flag since
    the path comes from an obsolute URL (thus potentially %-encoded).
    
modules/generators/mod_autoindex.c: Replace call to ap_getparents() using
    ap_normalize_path() with AP_NORMALIZE_ALLOW_RELATIVE and
    AP_NORMALIZE_NOT_ABOVE_ROOT flags to be consistent with original code.

include/ap_mmn.h: MINOR bump for ap_normalize_path().



Revision 1874144 - (view) (download) (annotate) - [select for diffs]
Modified Mon Feb 17 17:18:57 2020 UTC (5 years, 2 months ago) by jorton
File length: 79017 byte(s)
Diff to previous 1862270 (colored)
* module/dav/main/util.c (dav_check_bufsize): Don't call
  memcpy(,NULL,0) if the buffer is uninitialized, to avoid tripping
  UBSan.  (Unclear if this is valid for this API.)
  

Revision 1862270 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jun 28 08:50:31 2019 UTC (5 years, 9 months ago) by rpluem
File length: 78821 byte(s)
Diff to previous 1756038 (colored)
* Replace apr_psprintf with apr_pstrcat where the format strings only
  contain %s to improve efficiency. Leave out error messages as they
  are not on a crtical code path and error message become less readable
  when taking out the format specifiers.


Revision 1756038 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 11 19:50:02 2016 UTC (8 years, 8 months ago) by rjung
File length: 78813 byte(s)
Diff to previous 1747469 (colored)
Fix spelling in comments and text files.
No functional change.
PR 59990


Revision 1747469 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 9 00:06:42 2016 UTC (8 years, 10 months ago) by wrowe
File length: 78813 byte(s)
Diff to previous 1715880 (colored)
Rename ap_casecmpstr[n]() to ap_cstr_casecmp[n](), update with APR doxygen

Revision 1715880 - (view) (download) (annotate) - [select for diffs]
Modified Mon Nov 23 16:48:35 2015 UTC (9 years, 4 months ago) by ylavic
File length: 78811 byte(s)
Diff to previous 1701717 (colored)
More ap_casecmpstr[n]() usages (follow up to r1715876).


Revision 1701717 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 8 03:14:34 2015 UTC (9 years, 7 months ago) by jailletc36
File length: 78808 byte(s)
Diff to previous 1677462 (colored)
In order to save a few cycles, delay a hash table lookup which is not necessary needed

Revision 1677462 - (view) (download) (annotate) - [select for diffs]
Modified Sun May 3 18:02:33 2015 UTC (9 years, 11 months ago) by breser
File length: 78803 byte(s)
Diff to previous 1588862 (colored)
mod_dav: Avoid doing the walk on a COPY source for handling preconditions if
there are no preconditions provided.

* modules/dav/main/util.c:
  (dav_validate_request): avoid validating locks and ETags when there are
    no If headers providing them on a resource we aren't modifying.


Revision 1588862 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 21 09:33:41 2014 UTC (11 years ago) by jailletc36
File length: 78652 byte(s)
Diff to previous 1556428 (colored)
Typo in comment

Revision 1556428 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 8 02:40:38 2014 UTC (11 years, 3 months ago) by breser
File length: 78651 byte(s)
Diff to previous 1528718 (colored)
SECURITY: CVE-2013-6438 (cve.mitre.org)
mod_dav: Keep track of length of cdata properly when removing leading spaces.

* modules/dav/main/util.c
  (dav_xml_get_cdata): reduce len variable when increasing cdata pointer.

Submitted by: Amin Tora <Amin.Tora neustar.biz>


Revision 1528718 - (view) (download) (annotate) - [select for diffs]
Modified Thu Oct 3 05:29:35 2013 UTC (11 years, 6 months ago) by breser
File length: 78620 byte(s)
Diff to previous 1497588 (colored)
mod_dav: Fix PR 55306.

Makes mod_dav no longer require that the lock token be provided when the
source of a COPY is locked.  The prior behavior was in violating of
RFC 4918 which says that the lock token is only required on resources
that may be modified by the method.

* modules/dav/main/mod_dav.h
  (DAV_VALIDATE_NO_MODIFY): New flag to be passed to dav_validate_* functions.

* modules/dav/main/mod_dav.c
  (dav_method_copymove): Use the new flag when calling dav_validate_request()
    on the COPY source.

* modules/dav/main/util.c
  (dav_validate_resource_state): Use the flag to decide to ignore if the lock
    token is not provided.


Revision 1497588 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jun 27 22:25:56 2013 UTC (11 years, 9 months ago) by rjung
File length: 78418 byte(s)
Diff to previous 1477530 (colored)
Fix indentation (plus now needed line-wrap).
Followup to r1470940.


Revision 1477530 - (view) (download) (annotate) - [select for diffs]
Modified Tue Apr 30 10:15:23 2013 UTC (11 years, 11 months ago) by minfrin
File length: 78352 byte(s)
Diff to previous 1470940 (colored)
mod_dav: Make sure the URI length is calculated correctly.


Revision 1470940 - (view) (download) (annotate) - [select for diffs]
Modified Tue Apr 23 13:14:34 2013 UTC (11 years, 11 months ago) by minfrin
File length: 78335 byte(s)
Diff to previous 1464241 (colored)
mod_dav: Make sure that when we prepare an If URL for Etag comparison,     
we compare unencoded paths. PR 53910
Patch submitted by Timothy Wood <tjw omnigroup com>
Tested by William Lewis <wiml omnigroup com>


Revision 1464241 - (view) (download) (annotate) - [select for diffs]
Modified Thu Apr 4 00:22:52 2013 UTC (12 years ago) by trawick
File length: 78002 byte(s)
Diff to previous 1397320 (colored)
mod_dav: Improve error handling in dav_method_put(), add new
dav_join_error() function.

PR: 54145

Submitted by: Ben Reser <ben reser.org>
Reviewed by: trawick


Revision 1397320 - (view) (download) (annotate) - [select for diffs]
Modified Thu Oct 11 21:27:18 2012 UTC (12 years, 6 months ago) by jailletc36
File length: 77443 byte(s)
Diff to previous 1174751 (colored)
[Test] First try : remove extra ';'



Revision 1174751 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 23 13:39:32 2011 UTC (13 years, 6 months ago) by jim
File length: 77444 byte(s)
Diff to previous 966348 (colored)
Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change



Revision 966348 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 21 18:25:01 2010 UTC (14 years, 9 months ago) by pquerna
File length: 77446 byte(s)
Diff to previous 882274 (colored)
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


Revision 882274 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 19 20:09:27 2009 UTC (15 years, 5 months ago) by trawick
File length: 77410 byte(s)
Diff to previous 607838 (colored)
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


Revision 607838 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 1 13:20:22 2008 UTC (17 years, 3 months ago) by rpluem
File length: 77235 byte(s)
Diff to previous 607472 (colored)
* Avoid SEGFAULT as hooks->set_headers can be NULL. Furthermore do not set the
  ETag header permanently as setting it may not be desired for all responses.

Submitted by: niq, rpluem


Revision 607472 - (view) (download) (annotate) - [select for diffs]
Modified Sat Dec 29 20:28:57 2007 UTC (17 years, 3 months ago) by rpluem
File length: 76867 byte(s)
Diff to previous 607466 (colored)
* Style police. No functional changes.


Revision 607466 - (view) (download) (annotate) - [select for diffs]
Modified Sat Dec 29 19:38:51 2007 UTC (17 years, 3 months ago) by niq
File length: 76836 byte(s)
Diff to previous 420983 (colored)
mod_dav: Fix evaluation of If-Match * and If-None-Match * conditionals.
PR 38034
Patch by Paritosh Shah
Explanation by Werner Baumann


Revision 420983 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 11 20:33:53 2006 UTC (18 years, 9 months ago) by fielding
File length: 75315 byte(s)
Diff to previous 395228 (colored)
update license header text

Revision 395228 - (view) (download) (annotate) - [select for diffs]
Modified Wed Apr 19 12:11:27 2006 UTC (19 years ago) by colm
File length: 75168 byte(s)
Diff to previous 332306 (colored)
Update the copyright year in all .c, .h and .xml files


Revision 332306 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 10 15:11:44 2005 UTC (19 years, 5 months ago) by jim
File length: 75168 byte(s)
Diff to previous 329562 (colored)
No functional Change: Removing trailing whitespace. This also
means that "blank" lines consisting of just spaces or
tabs are now really blank lines


Revision 329562 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 30 13:25:28 2005 UTC (19 years, 5 months ago) by jorton
File length: 75388 byte(s)
Diff to previous 155345 (colored)
Fix handling of unknown state tokens in If headers:

* modules/dav/main/mod_dav.h: Add dav_if_unknown to dav_if_state_type
enum.

* modules/dav/main/util.c (dav_add_if_state): Set returned type to
dav_if_unknown for an unknown state token.
(dav_validate_resource_state): Evaluate dav_if_unknown to fail
match unless in a Not condition.

PR: 37288


Revision 155345 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 25 16:57:14 2005 UTC (20 years, 1 month ago) by jerenkrantz
File length: 74836 byte(s)
Diff to previous 151408 (colored)
* modules/dav/main/mod_dav.h: Wrap all public functions in
  DAV_DECLARE or DAV_DECLARE_NONSTD.
* modules/dav/main/liveprop.c, modules/dav/main/props.c,
  modules/dav/main/util_lock.c, modules/dav/main/mod_dav.c,
  modules/dav/main/std_liveprop.c, modules/dav/main/util.c:
  Update function definitions.

Submitted by: Branko Čibej <brane xbc.nu>
Reviewed by:  Justin Erenkrantz


Revision 151408 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 4 20:28:49 2005 UTC (20 years, 2 months ago) by jerenkrantz
File length: 74326 byte(s)
Diff to previous 123882 (colored)
Update copyright year to 2005 and standardize on current copyright owner line.


Revision 123882 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jan 2 05:33:44 2005 UTC (20 years, 3 months ago) by wrowe
File length: 74290 byte(s)
Diff to previous 106103 (colored)
  FINALLY Correct ap_http_method()!  It is NOT a method, it's a SCHEME!

  Bumped mmn, and ap module cookie, for this function rename.

  It's not a deprecation, as ap_http_method would be a lovely function
  name sometime in the future: to determine what the function name implies.


Revision 106103 - (view) (download) (annotate) - [select for diffs]
Modified Sun Nov 21 18:50:36 2004 UTC (20 years, 5 months ago) by nd
File length: 74290 byte(s)
Diff to previous 102958 (colored)
general property cleanup


Revision 102958 - (view) (download) (annotate) - [select for diffs]
Modified Sun Mar 14 19:51:08 2004 UTC (21 years, 1 month ago) by jorton
File length: 74290 byte(s)
Diff to previous 102618 (colored)
Forward-port from mod_dav 1.0:

* modules/dav/main/util.c (dav_validate_resource_state): Fix a 2617
violation: if the lock user validation fails, rather than giving a 401
without a WWW-Authenticate header, give a 403.


Revision 102618 - (view) (download) (annotate) - [select for diffs]
Modified Mon Feb 9 20:31:03 2004 UTC (21 years, 2 months ago) by nd
File length: 74293 byte(s)
Diff to previous 102523 (colored)
fix name of The Apache Software Foundation


Revision 102523 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 6 22:13:20 2004 UTC (21 years, 2 months ago) by nd
File length: 74289 byte(s)
Diff to previous 102135 (colored)
apply Apache License, version 2.0


Revision 102135 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 1 13:26:26 2004 UTC (21 years, 3 months ago) by nd
File length: 76315 byte(s)
Diff to previous 101991 (colored)
update license to 2004.


Revision 101991 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 5 00:59:29 2003 UTC (21 years, 4 months ago) by trawick
File length: 76315 byte(s)
Diff to previous 101884 (colored)
stop using apr_sockaddr_port_get() accessor function, as it will
disappear from APR 1.0 API shortly


Revision 101884 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 25 13:54:39 2003 UTC (21 years, 4 months ago) by jorton
File length: 76332 byte(s)
Diff to previous 99524 (colored)
* modules/dav/main/util.c (dav_validate_resource_state): Simplify weak
etag comparison to avoid unnecessary tests and pstrdup calls.


Revision 99524 - (view) (download) (annotate) - [select for diffs]
Modified Tue Apr 22 21:52:46 2003 UTC (22 years ago) by jerenkrantz
File length: 76628 byte(s)
Diff to previous 98573 (colored)
Fix a typo in the weak entity check.  The prefix is W/" not "W/.


Revision 98573 - (view) (download) (annotate) - [select for diffs]
Modified Mon Feb 3 17:53:28 2003 UTC (22 years, 2 months ago) by nd
File length: 76706 byte(s)
Diff to previous 98557 (colored)
finished that boring job:
update license to 2003.

Happy New Year! ;-))


Revision 98557 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jan 31 14:13:28 2003 UTC (22 years, 2 months ago) by trawick
File length: 76706 byte(s)
Diff to previous 98536 (colored)
fix misuse of const in a recent commit
warnings with recent gcc
compile break with native compiler for AIX


Revision 98536 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 29 17:24:38 2003 UTC (22 years, 2 months ago) by jerenkrantz
File length: 76604 byte(s)
Diff to previous 98524 (colored)
Allow mod_dav to do weak entity comparison function rather than a strong
entity comparison function.  (i.e. it will optionally strip the W/ prefix.)

PR: 14921 (kinda, but not really)


Revision 98524 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 29 05:07:18 2003 UTC (22 years, 2 months ago) by jerenkrantz
File length: 75635 byte(s)
Diff to previous 98187 (colored)
Fix If header parsing when a non-mod_dav lock token is passed to it.  We'll
now just skip over it rather than aborting.

PR: 16452


Revision 98187 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 7 21:08:03 2003 UTC (22 years, 3 months ago) by gstein
File length: 75354 byte(s)
Diff to previous 97342 (colored)
When unlocking, the auto-checkin code does not need to refer to the
parent resource. We want to (possibly) check in only the resource
identified by the params.

Bug found by David Waite <mass@akuma.org>


Revision 97342 - (view) (download) (annotate) - [select for diffs]
Modified Tue Oct 29 06:16:42 2002 UTC (22 years, 5 months ago) by wrowe
File length: 75409 byte(s)
Diff to previous 95993 (colored)
  Detabbify.  With extreme prejudice.


Revision 95993 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 10 06:01:14 2002 UTC (22 years, 9 months ago) by orlikowski
File length: 66813 byte(s)
Diff to previous 95966 (colored)
Continue the Bill Rowe apr_size_t crusade.


Revision 95966 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jul 6 20:04:38 2002 UTC (22 years, 9 months ago) by ianh
File length: 66797 byte(s)
Diff to previous 95862 (colored)
Renames Pending:
 This clears the list of renames pending in apr-util.
 Parts of this list was alreadu done, but the pending list hadn't been updated.

 apr_hook_debug_current     from apr_current_hooking_module
 apr_hook_debug_show        from apr_show_hook

 apr_hook_global_pool       from apr_global_hook_pool
 apr_hook_sort_all          from apr_sort_hooks

 apr_uri_port_of_scheme     from apr_uri_default_port_for_scheme
 apr_uri_unparse            from apr_uri_unparse_components
 apr_uri_parse              from apr_uri_parse_components
 apr_uri_parse_hostinfo     from apr_uri_parse_hostinfo_components

 apr_uri_t                  from apr_uri_components

 All APR_URI_*              from all APU_URI_* symbols
 All APR_UNP_*              from all UNP_* symbols

PR:
Obtained from:
Submitted by:	 Thom May
Reviewed by:


Revision 95862 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jun 23 06:42:13 2002 UTC (22 years, 10 months ago) by wrowe
File length: 66806 byte(s)
Diff to previous 93918 (colored)
  The real pain.  ap->apr xml and text types.


Revision 93918 - (view) (download) (annotate) - [select for diffs]
Modified Wed Mar 13 20:48:07 2002 UTC (23 years, 1 month ago) by fielding
File length: 66795 byte(s)
Diff to previous 93651 (colored)
Update our copyright for this year.


Revision 93651 - (view) (download) (annotate) - [select for diffs]
Modified Fri Mar 1 03:25:49 2002 UTC (23 years, 1 month ago) by gstein
File length: 66795 byte(s)
Diff to previous 92971 (colored)
Give mod_dav the ability to output both standard and customized
<D:error> responses.  It's crucial for marshalling svn error messages
back over to the client; and someday it will be needed to return
specific <DAV:> errors as dictated by the DeltaV spec.

* mod_dav.h (dav_error): add two new fields -- an optional error
    namespace, and an error-tag-name.  Remove the 'delayed computation'
    function and cxt ptrs in this struct;  they were never used.

  (dav_new_error_tag):  new alternative constructor that takes new
    fields.

* util.c (dav_new_error_tag):  implement constructor.

* mod_dav.c (dav_error_response_tag):  new function to output
    'standard' xml error response based on error struct.

  (dav_handle_err): if no multistatus response is passed in, and if an
    error-tag is defined, then call our new xml-output routine.

Submitted by: Ben Collins-Sussman <sussman@collab.net>


Revision 92971 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jan 22 19:00:22 2002 UTC (23 years, 3 months ago) by gstein
File length: 66376 byte(s)
Diff to previous 91063 (colored)
dav_xml_get_cdata() is an exported function, so mark it as such with
the DAV_DECLARE macro. [ Barry Pederson <barryp@yahoo.com> ]

Apache's handling of ports is broken. Temporarily disable the port
checking in the Destination: header. [ Greg Stein ]


Revision 91063 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 18 03:46:13 2001 UTC (23 years, 7 months ago) by gstein
File length: 66259 byte(s)
Diff to previous 91004 (colored)
Need to store the pool into the xmlns structure.


Revision 91004 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 11 12:29:28 2001 UTC (23 years, 7 months ago) by gstein
File length: 66238 byte(s)
Diff to previous 90361 (colored)
Add an opaque datatype for managing a set of XML namespace declarations.
Part of an upcoming propdb API improvement.


Revision 90361 - (view) (download) (annotate) - [select for diffs]
Modified Sun Aug 19 16:01:05 2001 UTC (23 years, 8 months ago) by dougm
File length: 64207 byte(s)
Diff to previous 90359 (colored)
adjust to apr_uri_ rename


Revision 90359 - (view) (download) (annotate) - [select for diffs]
Modified Sun Aug 19 15:52:59 2001 UTC (23 years, 8 months ago) by dougm
File length: 64258 byte(s)
Diff to previous 89198 (colored)
adjust to UNP_ -> APR_URI_UNP_ rename


Revision 89198 - (view) (download) (annotate) - [select for diffs]
Modified Tue May 22 01:31:12 2001 UTC (23 years, 11 months ago) by fielding
File length: 64250 byte(s)
Diff to previous 88968 (colored)
Moved util_uri to apr-util/uri/apr_uri, which means adding the apr_
prefix to all of the uri functions (yuck), changing some includes,
and using APR error codes instead of HTTP-specific error codes.

Other notes to test this patch:
- You need to delete the util_uri.h file - exports picks up on this.
- I'd like to remove the apr_uri.h from httpd.h, but that might
  increase the complexity of this patch even further.  Once this patch
  is accepted (in some form), then I can focus on removing apr_uri.h
  from httpd.h entirely.  I need baby steps (heh) right now.
- I imagine that this might break a bunch of stuff in Win32 or other OS
  builds with foreign dependency files.  Any help here is appreciated.

This is a start...  -- justin

Submitted by:	Justin Erenkrantz
Reviewed by:	Roy Fielding


Revision 88968 - (view) (download) (annotate) - [select for diffs]
Modified Tue May 1 11:17:07 2001 UTC (23 years, 11 months ago) by trawick
File length: 64226 byte(s)
Diff to previous 88943 (colored)
Initialize a local variable to prevent a gcc warning about
possible use before set.  The code was fine but it is best
to keep gcc quiet lest we stop paying attention.


Revision 88943 - (view) (download) (annotate) - [select for diffs]
Modified Fri Apr 27 05:27:00 2001 UTC (23 years, 11 months ago) by gstein
File length: 64181 byte(s)
Diff to previous 88876 (colored)
fast-path some cases, primarily to avoid an allocation when it isn't needed.
for a "nice" piece of cdata which is in one chunk, this can usually avoid an
allocation.


Revision 88876 - (view) (download) (annotate) - [select for diffs]
Modified Tue Apr 17 11:07:09 2001 UTC (24 years ago) by gstein
File length: 63647 byte(s)
Diff to previous 88856 (colored)
allow non-absolute URIs to occur in some of the requests. RFC 2518 states
that the Destination: header (used in MOVE/COPY) must be an absolute URI, so
it keeps that constraint.


Revision 88856 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 14 13:10:23 2001 UTC (24 years ago) by gstein
File length: 62719 byte(s)
Diff to previous 88762 (colored)
Fix up the auto-versioning stuff. The new scheme more closely matches the
intent of DeltaV draft 14, simplifying some previous assumptions.

Includes some heavy fixes to MOVE/COPY in a versioning world.

Fix to CHECKOUT when a working resource is not created (checkout in place)

Submitted by: John Vasta <jvasta@rational.com>


Revision 88762 - (view) (download) (annotate) - [select for diffs]
Modified Sun Apr 8 07:13:42 2001 UTC (24 years ago) by orlikowski
File length: 58280 byte(s)
Diff to previous 88718 (colored)
Backing my earlier change out; There exists the possibility for
ap_parse_uri_components to not fill in the port field in certain cases,
i.e. wherein the uri begins with /


Revision 88718 - (view) (download) (annotate) - [select for diffs]
Modified Wed Apr 4 07:33:30 2001 UTC (24 years ago) by orlikowski
File length: 58139 byte(s)
Diff to previous 88599 (colored)
Since ap_parse_uri_components() now guarantees port will be filled in,
this is no longer needed in dav.


Revision 88599 - (view) (download) (annotate) - [select for diffs]
Modified Wed Mar 28 07:37:25 2001 UTC (24 years ago) by gstein
File length: 58273 byte(s)
Diff to previous 88508 (colored)
Patch to sync with some changes to mod_dav 1.1:

*) revamp the set_target stuff -- latest draft calls this UPDATE
*) update the CHECKIN method handling
*) liveprop providers can catch/define "core" properties before the core
   gets a chance.

Submitted by: John Vasta <jvasta@rational.com>
Reviewed by: Greg Stein


Revision 88508 - (view) (download) (annotate) - [select for diffs]
Modified Tue Mar 13 02:13:55 2001 UTC (24 years, 1 month ago) by gstein
File length: 58141 byte(s)
Diff to previous 88304 (colored)
*) mod_dav.c: allow PUT to a WORKING resource (this actually the only valid
   place to do a PUT(!))

*) util.c: add a comment. allow validation to proceed without a lock
   database (the rest of the code supported it; one erroneous check disabled
   that work)

*) util_lock.c: allow dav_unlock() to be a no-op when a lock provide isn't
   present; this allows DELETE to work.


Revision 88304 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 24 21:27:29 2001 UTC (24 years, 1 month ago) by trawick
File length: 58181 byte(s)
Diff to previous 88184 (colored)
include apr_lib.h for apr_isspace() definition


Revision 88184 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 16 04:26:53 2001 UTC (24 years, 2 months ago) by fielding
File length: 58160 byte(s)
Diff to previous 88060 (colored)
Update copyright to 2001


Revision 88060 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 10 13:05:29 2001 UTC (24 years, 2 months ago) by gstein
File length: 58155 byte(s)
Diff to previous 88019 (colored)
Clean up some of the includes:
- explicitly include apr_lib.h since ap_config.h doesn't
- use apr_want.h where possible
- use APR_HAVE_ where possible
- remove some unneeded includes


Revision 88019 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 8 07:45:33 2001 UTC (24 years, 2 months ago) by dougm
File length: 58107 byte(s)
Diff to previous 88007 (colored)
renaming various functions for consistency sake
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by:


Revision 88007 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 7 12:33:17 2001 UTC (24 years, 2 months ago) by gstein
File length: 58098 byte(s)
Diff to previous 87852 (colored)
Revamp the CHECKOUT method handling and various support functions for it.
Basically, the original CHECKOUT was based on a really old draft of the
DeltaV specification. This brings it up to date.

*) get_resource hook now takes an optional label name and/or a flag on
   whether to use the DAV:checked-in property; if either one is provided,
   then a version resource is looked up and returned.

   WARNING: the parameter types are now the same, but have very different
	    semantics. this means you won't get a compile error to figure
	    out that something needs to be changed here.

*) mod_dav.c::dav_get_resource no longer cahces the fetched resource in the
   request userdata. Some requests will call this function multiple times,
   for different resources -- we don't want to keep returning the same
   resource (no idea how this ended up working).

*) dav_get_resource()'s parameters have been updated. target_allowed is old
   terminology; it is now label_allowed. The target paramter is obsoleted by
   the simple use_checked_in flag.

*) dav_get_target_selector() is obsolete. XML element processing is done
   within the CHECKOUT method (i.e. only where it occurs). The other half of
   the old function was to simply fetch the Label: header.

*) DAV_TARGET_SELECTOR_HDR is now DAV_LABEL_HDR

*) dav_method_checkout() now processes all the various options for a
   CHECKOUT method and either modifies the initial resource lookup, or
   passes the data to the checkout hook function.

*) the checkout hook grew a bunch of new parameters

*) new utility function: dav_xml_get_cdata() to gather up all the CDATA from
   an XML element. this is used to extract DAV:href values.
   (probably move to util_xml.c at some point)


Revision 87852 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jan 26 11:44:51 2001 UTC (24 years, 2 months ago) by gstein
File length: 58026 byte(s)
Diff to previous 87342 (colored)
Provide a way to allow get_resource and get_parent_resource to return errors
that might occur during the parsing of the URI and/or the lookup of the
resource in the repository.

Specifically: return a dav_error* and move the returned dav_resource* to an
"out" parameter of the hook function.


Revision 87342 - (view) (download) (annotate) - [select for diffs]
Modified Thu Dec 14 18:47:30 2000 UTC (24 years, 4 months ago) by trawick
File length: 57841 byte(s)
Diff to previous 87072 (colored)
The local_addr and remote_addr fields in the conn_rec are now
apr_sockaddr_t * instead of sockaddr_in.  This is a small step
towards IPv6 support.


Revision 87072 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 23 10:08:19 2000 UTC (24 years, 5 months ago) by gstein
File length: 57837 byte(s)
Diff to previous 86972 (colored)
*) fix subtle crasher in COPY method
*) update sub-request-creation calls to include new "next filter" arg


Revision 86972 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 15 02:05:12 2000 UTC (24 years, 5 months ago) by gstein
File length: 57831 byte(s)
Diff to previous 86887 (colored)
Apply a patch from John Vasta for adding (some/more) DeltaV support to
mod_dav. The patch applied and compiled cleanly, so I'm committing. Any
necessary changes from a review will come later, so that we can easily track
what needed to change (and can be back-ported to mod_dav 1.1).

Submitted by: John Vasta <jvasta@rational.com>


Revision 86887 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 9 13:08:06 2000 UTC (24 years, 5 months ago) by gstein
File length: 58994 byte(s)
Diff to previous 86884 (colored)
final round of walker cleanup: fix the provider API to match what is Right.


Revision 86884 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 9 11:23:39 2000 UTC (24 years, 5 months ago) by gstein
File length: 58940 byte(s)
Diff to previous 86542 (colored)
first round whack at cleaning up the walker interface


Revision 86542 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 11 17:23:55 2000 UTC (24 years, 6 months ago) by wrowe
File length: 58914 byte(s)
Diff to previous 86424 (colored)
  Here it is, mod_dav should build quite nicely on Win32 (two last mild
  warnings to contend with.)


Revision 86424 - (view) (download) (annotate) - [select for diffs]
Modified Sat Oct 7 00:50:42 2000 UTC (24 years, 6 months ago) by gstein
File length: 58442 byte(s)
Diff to previous 86186 (colored)
forward-port John Vasta's checkin to mod_dav 1.1.x (on Sep 25, 2000). this
begins some work to upgrade the versioning support to some of the more
recent drafts.

- get_resource hook has new params
- create_collection hook no longer takes a pool
- new dav_auto_version_info structure to group up autoversion
  rollback/commit handling data
- new functions for getting workspace, target-selector, etc
- supportedlock hook now takes the resource in question (since different
  resources may have different locks)
- new resource types; tweaks in props.c to support them
- some tweaks with resource creation, Location header, etc.


Revision 86186 - (view) (download) (annotate) - [select for diffs]
Modified Sat Sep 9 09:25:22 2000 UTC (24 years, 7 months ago) by gstein
File length: 54728 byte(s)
Diff to previous 86029 (colored)
update the WebDAV versioning support:
- recognize and dispatch the latest set of DeltaV methods
- refine the CHECKOUT provider hook
- add avail_reports provider hook
- fix the "target" resolution mechanism


Revision 86029 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 8 20:03:52 2000 UTC (24 years, 8 months ago) by stoddard
File length: 54879 byte(s)
Diff to previous 85976 (colored)
Updated patch to fix compile warnings from not including apr_strings.h

Submitted by:	Joe Orton <joe@orton.demon.co.uk>
Reviewed by:	Bill Stoddard


Revision 85976 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 2 05:27:38 2000 UTC (24 years, 8 months ago) by dougm
File length: 54854 byte(s)
Diff to previous 85878 (colored)
prefix libapr functions and types with apr_


Revision 85878 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 25 01:06:32 2000 UTC (24 years, 9 months ago) by wrowe
File length: 54812 byte(s)
Diff to previous 85761 (colored)
  Add APR_EOL_STR for a platform specific text delimiter, provided by
  apr.h (defined in apr.h.in and apr.hw).  This is needed -only- in APR
  created files (true raw files) such as logs.  It is not required in any
  splat to screen (stderr/stdout) formatting, nor any html markup.

  Some other modules slipped through in the prior apr_strings.h commit.
  Sorry 'bout that.

PR:
Obtained from:
Submitted by:
Reviewed by:


Revision 85761 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 3 22:51:03 2000 UTC (24 years, 9 months ago) by gstein
File length: 54773 byte(s)
Diff to previous 85751 (colored)
Joe Orton writes:

This updates mod_dav for the util_xml changes posted previously:

* dav_xml -> ap_xml, and dav_text -> ap_text renaming
* Add 'dav_elem_private' to hook mod_dav-specific info up to the
  parsed XML tree. Initialize this in several places, I think I got
  all necessary?  [gjs: yes, you did]
* Removal of the old "gross_hack", and all the XML code that was
  moved into util_xml

Submitted by: Joe Orton <joe@orton.demon.co.uk>
Reviewed by: Greg Stein


Revision 85751 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 3 08:54:54 2000 UTC (24 years, 9 months ago) by gstein
File length: 65593 byte(s)
Diff to previous 85720 (colored)
misc const cleanups and others issues found using maintainer-mode
    (initial errors found by Ryan Bloom).
also switch to use new command table initializer macros.


Revision 85720 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 28 11:23:53 2000 UTC (24 years, 9 months ago) by gstein
File length: 65589 byte(s)
Diff to previous 85718 (colored)
get the DAV stuff to compile for Apache 2.0. some unpleasantries are in
    there, but it *does* compile.


Revision 85718 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 28 09:21:40 2000 UTC (24 years, 9 months ago) by gstein
File length: 65525 byte(s)
Diff to previous 85717 (colored)
first, obvious step: alter the license/copyright on all mod_dav files.


Revision 85717 - (view) (download) (annotate) - [select for diffs]
Added Wed Jun 28 08:55:58 2000 UTC (24 years, 9 months ago) by gstein
File length: 63376 byte(s)
initial checkin of the new Apache DAV code. this is a pristine copy of
mod_dav 1.0.1 (tag "V1_0_1" in the mod_dav CVS repository).

For historical information about these files, see the (old) mod_dav web
site at http://www.webdav.org/mod_dav/. CVS repository information can
be located from those pages.


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26