~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/include/mod_dav_svn.h

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2015-08-07 21:32:47 UTC
  • mfrom: (0.2.15) (4.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20150807213247-ozyewtmgsr6tkewl
Tags: 1.9.0-1
* Upload to unstable
* New upstream release.
  + Security fixes
    - CVE-2015-3184: Mixed anonymous/authenticated path-based authz with
      httpd 2.4
    - CVE-2015-3187: svn_repos_trace_node_locations() reveals paths hidden
      by authz
* Add >= 2.7 requirement for python-all-dev Build-Depends, needed to run
  tests.
* Remove Build-Conflicts against ruby-test-unit.  (Closes: #791844)
* Remove patches/apache_module_dependency in favor of expressing the
  dependencies in authz_svn.load/dav_svn.load.
* Build-Depend on apache2-dev (>= 2.4.16) to ensure ap_some_authn_required()
  is available when building mod_authz_svn and Depend on apache2-bin (>=
  2.4.16) for runtime support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
/**
41
41
   Given an apache request @a r, a @a uri, and a @a root_path to the svn
42
42
   location block, process @a uri and return many things, allocated in
43
 
   @a r->pool:
 
43
   @a pool:
44
44
 
45
45
   - @a cleaned_uri:    The uri with duplicate and trailing slashes removed.
46
46
 
74
74
     - @a relative_path:  /!svn/blah/13/A/B/alpha
75
75
     - @a repos_path:     A/B/alpha
76
76
     - @a trailing_slash: FALSE
 
77
 
 
78
   NOTE: The returned dav_error will be also allocated in @a pool, not
 
79
         in @a r->pool.
 
80
 
 
81
   @since New in 1.9
77
82
*/
 
83
AP_MODULE_DECLARE(dav_error *) dav_svn_split_uri2(request_rec *r,
 
84
                                                  const char *uri_to_split,
 
85
                                                  const char *root_path,
 
86
                                                  const char **cleaned_uri,
 
87
                                                  int *trailing_slash,
 
88
                                                  const char **repos_basename,
 
89
                                                  const char **relative_path,
 
90
                                                  const char **repos_path,
 
91
                                                  apr_pool_t *pool);
 
92
 
 
93
/**
 
94
 * Same as dav_svn_split_uri2() but allocates the result in @a r->pool.
 
95
 */
78
96
AP_MODULE_DECLARE(dav_error *) dav_svn_split_uri(request_rec *r,
79
97
                                                 const char *uri,
80
98
                                                 const char *root_path,
87
105
 
88
106
/**
89
107
 * Given an apache request @a r and a @a root_path to the svn location
90
 
 * block, set @a *repos_path to the path of the repository on disk.  */
 
108
 * block, set @a *repos_path to the path of the repository on disk.
 
109
 * Perform all allocations in @a pool.
 
110
 *
 
111
 * NOTE: The returned dav_error will be also allocated in @a pool, not
 
112
 *       in @a r->pool.
 
113
 *
 
114
 * @since New in 1.9
 
115
 */
 
116
AP_MODULE_DECLARE(dav_error *) dav_svn_get_repos_path2(request_rec *r,
 
117
                                                       const char *root_path,
 
118
                                                       const char **repos_path,
 
119
                                                       apr_pool_t *pool);
 
120
 
 
121
/**
 
122
 * Same as dav_svn_get_repos_path2() but allocates the result in@a r->pool.
 
123
 */
91
124
AP_MODULE_DECLARE(dav_error *) dav_svn_get_repos_path(request_rec *r,
92
125
                                                      const char *root_path,
93
126
                                                      const char **repos_path);