mod_authz_svn_tests.py

Checkout Tools
  • last updated 32 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
* everywhere: Run tools/dev/remove-trailing-whitespace.sh to remove

trailing whitespace before we branch 1.14.

  1. … 105 more files in changeset.
* subversion/tests/cmdline/mod_authz_svn_tests.py: Add svn:executable.
Follow-up to r1782893

Restore previous debug noise level in mod_authz_svn_tests.

Suggested by: kotkov

* subversion/tests/cmdline/mod_authz_svn_tests.py

(verify_get): pass debuglevel 0 to the create_http_connection-call

Use the common function (which was introduced after this test was added) to

create http connections throughout the test suite.

Note: This also resolves test failures when running the mod_authz_svn

tests on certain set ups.

* subversion/tests/cmdline/mod_authz_svn_tests.py

(verify_get): use svn.test.create_http_connection rather than its separate

code to establish a http(s) connection

Make the mod_authz_svn tests pass with Python 3 and ra-dav.

* subversion/tests/cmdline/mod_authz_svn_tests.py

(verify_get): Fix the httplib import for py3. Conversion into base64

has bytes strings as input and output. Interpret server

responses as ascii strings, unless binary data was expected,

which currently is never the case.

Follow-up to r1742817: Another fix to the serf tests.

* subversion/tests/cmdline/mod_authz_svn_tests.py

(verify_get): We don't have the sys module loaded here; so use the

pythonic try/except block to handle version specifics.

In our build and test scripts, replace Python 2 -only imports by pairs

of Python 2 / 3 alternative imports.

* subversion/tests/cmdline/lock_tests.py

(dav_lock_refresh): The httplib module has been replaced in Python 3

by http.client.

* subversion/tests/cmdline/mod_dav_svn_tests.py

(): Same.

* subversion/tests/cmdline/mod_authz_svn_tests.py

(verify_get): Same, also for urlparse vs. urllib.parse.

* subversion/tests/cmdline/svntest/main.py

(): The urlparse module has been replaced by the urllib.parse in Python 3.

(create_http_connection): Remove redundant urlparse import and replace

the httplib import with the respective

alternative import pair.

* subversion/tests/cmdline/svntest/wc.py

(): The quote function has been moved to urllib.parse, so provide an

alias for it.

(svn_uri_quote): Use the function alias.

  1. … 4 more files in changeset.
Fix CVE-2015-3184: Have mod_authz_svn use ap_hook_force_authn where available.

* subversion/mod_authz_svn/mod_authz_svn.c

(access_checker): Support ap_force_authn_hook.

(force_authn): New.

(register_hooks): Register force_authn.

* build/ac-macros/apache.m4: Add --enable-broken-httpd-auth.

* subversion/tests/cmdline/mod_authz_svn_tests.py: New.

* subversion/tests/cmdline/svntest/main.py

(is_httpd_authz_provider_enabled): New.

* subversion/tests/cmdline/davautocheck.sh,

subversion/tests/cmdline/README,

win_tests.py: Add configuration for new tests.

  1. … 6 more files in changeset.