1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-07-23 17:48:30 +00:00
Commit graph

1534 commits

Author SHA1 Message Date
Unrud
d5f5eeeddf from_file rights: Replace config parser interpolation 2020-04-22 19:20:24 +02:00
Unrud
aef58bd55c Minimize accesses to rights backend 2020-04-22 19:20:07 +02:00
Unrud
f6a3a19680 Simplify Rights plugin interface 2020-04-09 22:02:03 +02:00
Unrud
8ca01a4989 Fix integrated server on android 2020-04-09 22:01:55 +02:00
Unrud
9c622b57d5 Allow callable in configuration for plugin.type
Example:

```python3
\# Load default configuration
my_config = config.load()

\# Pass a class directly
my_config.update({"auth": {"type": MyAuth}})

\# Pass an object directly
my_rights = MyRights()
my_config.update({"rights": {"type": lambda config: my_rights}})

app = Application(my_config)
````
2020-04-09 22:01:35 +02:00
Unrud
bd71c04973 Use correct delimiter 2020-02-20 18:29:08 +01:00
Unrud
f46a3e3d24 Fix test on MacOS (3) 2020-02-20 11:27:26 +01:00
Unrud
ee984b49d4 Fix test on MacOS (2) 2020-02-20 10:55:00 +01:00
Unrud
363dd79833 Fix test on MacOS 2020-02-20 10:42:50 +01:00
Unrud
d3b632e123 Remove unused code 2020-02-20 10:41:33 +01:00
Unrud
8890a4c030 Handle disabled IPv6 support and workaround for PyPy 2020-02-20 07:57:39 +01:00
Unrud
9603aa3496 Tests: Replace gunicorn with waitress (works on Windows too) 2020-02-20 07:57:39 +01:00
Unrud
941bb157cc Cosmetic changes 2020-02-19 10:01:39 +01:00
Unrud
d8f1565f5b Remove journald support 2020-02-19 09:50:45 +01:00
Unrud
6b46b01fcb Include time in log messages 2020-02-19 09:50:40 +01:00
Unrud
180e96b332 Move internal options to other sections 2020-02-19 09:50:36 +01:00
Unrud
8e3465b5d4 Specify option type in _allow_extra 2020-02-19 09:50:30 +01:00
Unrud
5371be2b39 Mark internal configuration options and sections with underscore 2020-02-19 09:50:27 +01:00
Unrud
0bda1f4c16 Improve error messages 2020-02-19 09:50:25 +01:00
Unrud
66fabbead9 Use socket pairs to communicate with client threads 2020-02-19 09:50:19 +01:00
Unrud
698980d7be Remove forking support
* Third-party plugins have to be fork-safe
* Not supported on Windows
2020-02-19 09:50:02 +01:00
Unrud
3b99d64935 Cosmetic changes 2020-02-19 09:50:00 +01:00
Unrud
cc22927353 Bind sockets for IPv4 and IPv6 2020-02-19 09:49:56 +01:00
Unrud
36483670d4 Refactor: Remove class attributes and subclassing 2020-02-19 09:49:44 +01:00
Unrud
a872b633fb Refactor: Remove method Configuration.log_config_sources 2020-02-19 09:48:42 +01:00
Unrud
11ea3cc7a4 Remove settings for TLS protocol and ciphers
Use the recommended default settings instead.
2020-02-19 09:48:38 +01:00
Unrud
4a43b17840 Remove reverse DNS lookup
It wasn't working for years because the functionality was removed from http.server.
Nobody complained.
2020-02-19 09:48:34 +01:00
Unrud
db7587c593 Cosmetic changes 2020-01-21 19:40:02 +01:00
Unrud
fc180266d5 Improve tests
- Parse and verify XML responses
- Extract methods for common requests
2020-01-20 09:47:51 +01:00
Unrud
d3776e55fb Rework XML helpers functions
- Merge make_tag, tag_from_clark and tag_from_human into make_clark and make_human
- Don't use RegEx for parsing
2020-01-19 21:07:54 +01:00
Unrud
262d76cc87 Don't return empty PROPSTAT elements in PROPFIND responses
This should not have any impact on clients.
2020-01-19 21:07:54 +01:00
Unrud
e11661ff3e Protect against XML DOS attacks
Only XML content from authenticated users is parsed.
2020-01-19 21:07:54 +01:00
Unrud
562d3aacec Add unicode support to htpasswd 2020-01-19 21:07:54 +01:00
Unrud
6108d8d759 Remove unsecure methods from htpasswd and make md5 default 2020-01-19 21:07:54 +01:00
Unrud
0a5fd94577 Tests: Improve whitespace tests for htpasswd 2020-01-19 21:07:54 +01:00
Unrud
866aa34f54 Cosmetic changes 2020-01-19 21:07:54 +01:00
Unrud
e07df9fd1d Prefix internal attributes with underscore 2020-01-19 21:07:54 +01:00
Unrud
0fb02cd026 Cosmetic changes (pylint) 2020-01-17 12:59:14 +01:00
Unrud
7aca052859 Remove unused variable 2020-01-17 05:00:31 +01:00
Unrud
b4230c4249 Extract method prepare 2020-01-17 05:00:31 +01:00
Unrud
8f55ab858c Improve documentation 2020-01-17 05:00:30 +01:00
Unrud
f844bbacda Web: Show startup loading message 2020-01-16 04:39:22 +01:00
Unrud
1ef067c7e9 Web: Replace attribute name with data-name 2020-01-16 03:58:31 +01:00
Unrud
d7c7d694e0 Web: Use class "hidden" instead of overwriting style 2020-01-16 03:58:30 +01:00
Unrud
1e27581afd Web: Remove unnecessary tags 2020-01-16 03:58:30 +01:00
Unrud
60de01870e Web: Use let and const instead of var 2020-01-16 03:58:29 +01:00
Unrud
ed72e697de Tests: Use absolute imports 2020-01-15 18:44:00 +01:00
Unrud
428e4be0b8 Workaround for bug in Lightning (fixes #985) 2020-01-15 11:22:52 +01:00
Unrud
c99a1f53df Switch from md5 to sha256 for UIDs and tokens 2020-01-15 11:20:48 +01:00
Unrud
1bd93a2947 Fix filesystem folder creation 2020-01-15 06:39:59 +01:00