1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00
Commit graph

1446 commits

Author SHA1 Message Date
Unrud
b65d49788a Type hints for tests 2021-12-20 21:21:20 +01:00
Unrud
0de8628952 Type hints for multifilesystem 2021-12-20 21:21:20 +01:00
Unrud
c93d7b8715 More type hints 2021-12-20 21:21:20 +01:00
Unrud
23a2989b77 Enable static type checking 2021-12-20 21:21:20 +01:00
Unrud
94a1181dc6 Fail when test file can't be read 2021-12-20 21:21:20 +01:00
Michael Stilkerich
23197e8d3e Fix is-not-defined filter in addressbook-query report 2021-12-20 21:21:20 +01:00
Tim Gates
1b7817f1d5 docs: fix simple typo, errornous -> erroneous (#1126)
* docs: fix simple typo, errornous -> erroneous

There is a small typo in radicale/storage/__init__.py.

Should read `erroneous` rather than `errornous`.

* Update __init__.py
2021-12-20 21:21:20 +01:00
Unrud
02a9d749a2 Allow float for server->timeout setting 2021-12-20 21:21:20 +01:00
Unrud
8f0de388cb Disallow abbreviated arguments 2021-12-20 21:21:20 +01:00
Unrud
be06b054c2 Use renameat2 on Linux for atomic exchanging of files 2021-12-20 21:21:20 +01:00
Unrud
43c1f2f05a Improve error messages for locking problems on Windows 2021-12-20 21:21:20 +01:00
Unrud
68be2b2bbd Cancel mkcalendar request on error 2021-12-20 21:21:20 +01:00
Unrud
21b1e356a0 Improve sanitization of collection properties 2021-12-20 21:21:20 +01:00
Unrud
547341642a Fix matching of date property 2021-12-20 21:21:20 +01:00
Unrud
40038d73c9 Internal server: Shutdown server via socket 2021-12-20 21:21:20 +01:00
Unrud
74b2f6148d Improve log messages 2021-12-20 21:21:20 +01:00
Unrud
d807fc7ff2 Workaround: defusedxml messes up subsequent imports of ElementTree
See https://github.com/tiran/defusedxml/issues/54
2021-12-20 21:21:20 +01:00
Unrud
fe796a6b7c Cosmetics 2021-12-20 21:21:20 +01:00
Unrud
ef947fe561 Improve log message 2021-12-20 21:21:20 +01:00
Unrud
447a9d91f3 Don't use assertion for expected error 2021-12-20 21:21:20 +01:00
Unrud
dd3a3b17d4 Don't modify global constants 2021-12-20 21:21:20 +01:00
Unrud
c89cd67065 Improve log messages
Log failed login attempts with remote host as warning (closes #1104)
Add component UID to log message about invalid recurrence rules (reference #602)
Use "forwarded for" instead of "forwarded by" for remote host
2021-12-20 21:18:32 +01:00
Unrud
9cc88eb4f6 More tests
for PROPPATCH, PROPFIND, MKCALENDAR and MKCOL
2021-12-20 21:18:32 +01:00
Unrud
d23a7365ba Allow multiple <D:set> and <D:remove> elements and consider order 2021-12-20 21:18:32 +01:00
Unrud
4ff3f545cc Single <D:propstat> element in PROPPATCH response
Instead of multiple elements with the same status
2021-12-20 21:18:32 +01:00
Unrud
7831ba3e37 Improve variable names 2021-12-20 21:18:32 +01:00
Unrud
8008b36f22 Fix exceptions raised by decode_request 2020-09-14 21:31:00 +02:00
Unrud
6f3a95245f Extract read*_request_body methods 2020-09-14 21:31:00 +02:00
Unrud
5aef41e691 Rename _write_xml_content to _xml_response 2020-09-14 21:31:00 +02:00
Unrud
f23b413cef Add more tests 2020-09-14 21:31:00 +02:00
Tom Hacohen
09b021f33e Web: add support for the POST HTTP method. (#1097)
* Web: add support for the POST HTTP method.

This patch adds support for POST in addition to the already supported GET.

This is needed for implementing more complex web modules that also
support configuration modifications and advanced queries.

* Base web: return METHOD_NOT_ALLOWED when method isn't implemenetd.

Co-authored-by: Unrud <Unrud@users.noreply.github.com>
2020-09-14 21:31:00 +02:00
Unrud
2dc7acda17 Respond 405 for unsupported methods instead of server error 2020-09-14 21:31:00 +02:00
Unrud
1cbdda6c87 Try to kill child processes of storage hook 2020-08-31 14:21:44 +02:00
Unrud
5225e9d017 Start storage hook in own process group
Prevents terminals from sending SIGINT etc.
2020-08-31 14:21:44 +02:00
Unrud
3a4a7eb3e4 Kill storage hook on error 2020-08-31 14:21:44 +02:00
Unrud
f570bb5738 Exit immediately after cleanup when signal is received
Waiting for clients introduces the risk that we exceed some timeout (e.g. from systemd) and get killed instead.
2020-08-31 14:21:44 +02:00
Unrud
e7a5d03dc2 Make shutdown_socket optional 2020-08-31 14:21:44 +02:00
Unrud
f9bd89c92a Fix internal server on FreeBSD 2020-08-18 23:01:11 +02:00
Unrud
c471ee5603 Fix isort test
Was broken by isort>=5
2020-07-23 19:41:37 +02:00
Unrud
bf6bc3ac86 Fix internal server on OpenBSD
On OpenBSD closed sockets are handled as exceptional conditions.
Fixes #1062
2020-06-06 21:13:15 +02:00
Unrud
46692548d7 Cosmetics 2020-05-24 13:42:56 +02:00
Unrud
88843770b8 Use 403 response for supported-report and valid-sync-token errors
Some clients don't handle 409
2020-05-24 13:42:56 +02:00
Unrud
6a29233737 Cosmetics 2020-05-24 13:42:56 +02:00
Unrud
6746aa97f3 Add tests for conflicting UIDs and overwriting of items 2020-05-24 13:42:56 +02:00
Unrud
f1f3cc5606 Test current-user-principal prop authentication workaround 2020-05-24 13:42:56 +02:00
Unrud
d76e247978 Handle missing IPv6 support by the kernel
This is different from disabled IPv6.

Fixes #1050
2020-05-24 13:42:56 +02:00
Unrud
4d08cab382 Shorter web interface title 2020-05-22 16:33:05 +02:00
Unrud
80bf7340f5 Fix XML error messages
Fixes #825
2020-05-22 16:33:04 +02:00
Unrud
ada9fa1cce Remove useless constant 2020-05-19 17:06:26 +02:00
Unrud
6158fb961b Trim all (ASCII) whitespace characters 2020-05-19 07:03:58 +02:00