copyparty/tests
ed 2ce8233921 webdav: auth-challenge clients correctly:
* return 403 instead of 404 in the following sitations:
  * viewing an RSS feed without necessary auth
  * accessing a file with the wrong filekey
  * accessing a file/folder without necessary auth
     (would previously 404 for intentional ambiguity)

* only allow PROPFIND if user has either read or write;
   previously a blank response was returned if user has
   get-access, but this could confuse webdav clients into
   skipping authentication (for example AuthPass)

* return 401 basic-challenge instead of 403 if the client
   appears to be non-graphical, because many webdav clients
   do not provide the credentials until they're challenged.
   There is a heavy bias towards assuming the client is a
   browser, because browsers must NEVER EVER get a 401
   (tricky state that is near-impossible to deal with)

* return 401 basic-challenge instead of 403 if a PUT
   is attempted without any credentials included; this
   should be safe, as graphical browsers never do that

this fixes the interoperability issues mentioned in
https://github.com/authpass/authpass/issues/379
where AuthPass would GET files without providing the
password because it expected a 401 instead of a 403;
AuthPass is behaving correctly, this is not a bug
2024-11-27 22:07:53 +00:00
..
res/idp idp: precise expansion of ${u} (fixes #79); 2024-03-21 20:10:27 +00:00
__init__.py fix write-only volumes + add regression test 2021-04-24 02:48:41 +02:00
ptrav.py make linters happier 2023-11-30 17:33:07 +00:00
run.py make linters happier 2023-11-30 17:33:07 +00:00
test_cp.py tests/debug: plug some resource leaks 2024-11-22 22:21:43 +00:00
test_dedup.py tests/debug: plug some resource leaks 2024-11-22 22:21:43 +00:00
test_dots.py webdav: auth-challenge clients correctly: 2024-11-27 22:07:53 +00:00
test_dxml.py make linters happier 2023-11-30 17:33:07 +00:00
test_hooks.py tests/debug: plug some resource leaks 2024-11-22 22:21:43 +00:00
test_httpcli.py tests/debug: plug some resource leaks 2024-11-22 22:21:43 +00:00
test_idp.py fix tests on windows 2024-04-25 22:25:38 +00:00
test_metrics.py tests/debug: plug some resource leaks 2024-11-22 22:21:43 +00:00
test_mv.py tests/debug: plug some resource leaks 2024-11-22 22:21:43 +00:00
test_utils.py sqlite and misc optimizations: 2024-09-15 13:18:43 +00:00
test_vfs.py cleanup: strip trailing whitespace 2024-07-26 19:33:56 +00:00
util.py exclude search results by regex (#120) 2024-11-26 23:57:01 +00:00