Radicale 3.9.1__tar.gz → 3.9.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {radicale-3.9.1 → radicale-3.9.2}/CHANGELOG.md +10 -0
- {radicale-3.9.1 → radicale-3.9.2}/DOCUMENTATION.md +11 -4
- {radicale-3.9.1 → radicale-3.9.2}/PKG-INFO +3 -1
- {radicale-3.9.1 → radicale-3.9.2}/README.md +2 -0
- {radicale-3.9.1 → radicale-3.9.2}/Radicale.egg-info/PKG-INFO +3 -1
- {radicale-3.9.1 → radicale-3.9.2}/pyproject.toml +10 -4
- {radicale-3.9.1 → radicale-3.9.2}/radicale/app/base.py +10 -5
- {radicale-3.9.1 → radicale-3.9.2}/radicale/app/delete.py +5 -2
- {radicale-3.9.1 → radicale-3.9.2}/radicale/app/get.py +3 -1
- {radicale-3.9.1 → radicale-3.9.2}/radicale/app/move.py +3 -1
- {radicale-3.9.1 → radicale-3.9.2}/radicale/app/propfind.py +50 -25
- {radicale-3.9.1 → radicale-3.9.2}/radicale/app/proppatch.py +15 -7
- {radicale-3.9.1 → radicale-3.9.2}/radicale/app/put.py +2 -1
- {radicale-3.9.1 → radicale-3.9.2}/radicale/app/report.py +42 -22
- {radicale-3.9.1 → radicale-3.9.2}/radicale/auth/ldap.py +29 -21
- {radicale-3.9.1 → radicale-3.9.2}/radicale/auth/pam.py +3 -1
- {radicale-3.9.1 → radicale-3.9.2}/radicale/group/htgroup.py +3 -1
- {radicale-3.9.1 → radicale-3.9.2}/radicale/hook/email/__init__.py +7 -4
- {radicale-3.9.1 → radicale-3.9.2}/radicale/item/__init__.py +67 -33
- {radicale-3.9.1 → radicale-3.9.2}/radicale/item/filter.py +71 -52
- {radicale-3.9.1 → radicale-3.9.2}/radicale/log.py +23 -11
- {radicale-3.9.1 → radicale-3.9.2}/radicale/pathutils.py +11 -5
- {radicale-3.9.1 → radicale-3.9.2}/radicale/rights/from_file.py +3 -1
- {radicale-3.9.1 → radicale-3.9.2}/radicale/rights/owner_only.py +12 -5
- {radicale-3.9.1 → radicale-3.9.2}/radicale/server.py +8 -4
- {radicale-3.9.1 → radicale-3.9.2}/radicale/server_cheroot.py +8 -4
- {radicale-3.9.1 → radicale-3.9.2}/radicale/sharing/__init__.py +158 -108
- {radicale-3.9.1 → radicale-3.9.2}/radicale/sharing/common.py +13 -6
- {radicale-3.9.1 → radicale-3.9.2}/radicale/sharing/csv.py +39 -19
- {radicale-3.9.1 → radicale-3.9.2}/radicale/sharing/files.py +31 -15
- {radicale-3.9.1 → radicale-3.9.2}/radicale/sharing/none.py +5 -2
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/__init__.py +23 -11
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem/discover.py +25 -10
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem/get.py +7 -3
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem/lock.py +1 -1
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem/sync.py +3 -1
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem/upload.py +0 -1
- {radicale-3.9.1 → radicale-3.9.2}/COPYING.md +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/MANIFEST.in +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/Radicale.egg-info/SOURCES.txt +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/Radicale.egg-info/dependency_links.txt +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/Radicale.egg-info/entry_points.txt +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/Radicale.egg-info/requires.txt +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/Radicale.egg-info/top_level.txt +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/config +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/__init__.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/__main__.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/app/__init__.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/app/head.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/app/mkcalendar.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/app/mkcol.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/app/options.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/app/post.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/auth/__init__.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/auth/denyall.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/auth/dovecot.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/auth/htpasswd.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/auth/http_remote_user.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/auth/http_x_remote_user.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/auth/imap.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/auth/none.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/auth/oauth2.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/auth/remote_user.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/config.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/group/__init__.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/group/from_auth.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/group/none.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/hook/__init__.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/hook/email/scheduling.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/hook/none.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/hook/rabbitmq/__init__.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/httputils.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/py.typed +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/rights/__init__.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/rights/authenticated.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/rights/owner_write.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem/__init__.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem/base.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem/cache.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem/create_collection.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem/delete.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem/history.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem/meta.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem/move.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem/verify.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/storage/multifilesystem_nolock.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/tests/custom/__init__.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/tests/custom/auth.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/tests/custom/rights.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/tests/custom/storage_simple_sync.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/tests/custom/web.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/types.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/utils.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/__init__.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/icon.png +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/icons/check-circle.svg +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/icons/delete.svg +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/icons/download.svg +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/icons/edit.svg +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/icons/eye.svg +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/icons/key.svg +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/icons/minus-circle.svg +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/icons/new.svg +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/icons/repeat.svg +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/icons/share.svg +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/icons/upload.svg +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/loading.svg +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/logo.svg +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/css/main.css +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/index.html +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/api/api.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/api/common.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/api/sharing.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/config.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/constants.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/main.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/models/collection.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/scenes/CollectionsScene.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/scenes/CreateEditCollectionScene.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/scenes/CreateEditShareScene.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/scenes/DeleteConfirmationScene.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/scenes/LoadingScene.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/scenes/LoginScene.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/scenes/ShareCollectionScene.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/scenes/UploadCollectionScene.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/scenes/scene_manager.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/utils/collection_utils.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/utils/collections_cache.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/utils/error.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/utils/form_validator.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/utils/misc.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/utils/permissions.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/internal_data/js/utils/url_text.js +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/web/none.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale/xmlutils.py +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/radicale.wsgi +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/rights +0 -0
- {radicale-3.9.1 → radicale-3.9.2}/setup.cfg +0 -0
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.9.2
|
|
4
|
+
* Fix: [server] report an inactive SSL protocol before assigning version 0
|
|
5
|
+
* Fix: [auth] keep the LDAP server hostname as SNI when a CA file is set
|
|
6
|
+
* Fix: propfind CS:getctag: use the sync-token so the value never repeats
|
|
7
|
+
* Fix: [auth]: add server hostname as SNI option (ldap3+tls) for proper validation did not strip non-standard port
|
|
8
|
+
* Fix: propfind: honor [storage] skip_broken_item=True (uncatched after changes in 3.9.1)
|
|
9
|
+
* Fix: report: use [reporting] max_expand_occurrence also for unbounded RRULE enumeration
|
|
10
|
+
* Performance: remove not required `_clean_history` in upload
|
|
11
|
+
* Performance: guard trace logging with isEnabledFor and use lazy formatting for logger calls
|
|
12
|
+
|
|
3
13
|
## 3.9.1
|
|
4
14
|
* Add: [sharing] permit_create_map = self: permit map-based sharing to self only (e.g. birthday calendar) without sharing with other users
|
|
5
15
|
* Add: [rights] permission `S`: permit map-based sharing to self only, whatever permit_create_map is
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
* [Telugu](https://github.com/Kozea/Radicale/blob/master/docs/translations/DOCUMENTATION.te.md)
|
|
6
6
|
|
|
7
|
+
## Developer documentation
|
|
8
|
+
|
|
9
|
+
This file is the operator manual. The source layout, the on-disk data, the packages, CI, and the release steps are in [docs/README.md](docs/README.md).
|
|
10
|
+
|
|
7
11
|
## Getting started
|
|
8
12
|
|
|
9
13
|
#### About Radicale
|
|
@@ -1110,6 +1114,10 @@ Available types are:
|
|
|
1110
1114
|
|
|
1111
1115
|
User groups are supported _(>= 3.8.0)_
|
|
1112
1116
|
|
|
1117
|
+
When using the web UI with authentication handled by the browser or reverse proxy
|
|
1118
|
+
(e.g. header-based auth, OIDC redirects), set [`prefer_browser_login`](#prefer_browser_login)
|
|
1119
|
+
to `True` to skip the login page.
|
|
1120
|
+
|
|
1113
1121
|
Default: `none` _(< 3.5.0)_ / `denyall` _(>= 3.5.0)_
|
|
1114
1122
|
|
|
1115
1123
|
##### cache_logins
|
|
@@ -1848,10 +1856,9 @@ Default: `internal`
|
|
|
1848
1856
|
|
|
1849
1857
|
_(>= 3.7.4)_
|
|
1850
1858
|
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
headers are configured correctly.s
|
|
1859
|
+
Includes browser credentials in the web UI's initial authentication probe, skipping
|
|
1860
|
+
the login page if the server accepts them. Useful when authentication involves
|
|
1861
|
+
redirects (e.g. OIDC) or header-based auth set by a reverse proxy.
|
|
1855
1862
|
|
|
1856
1863
|
Default: `False`
|
|
1857
1864
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Radicale
|
|
3
|
-
Version: 3.9.
|
|
3
|
+
Version: 3.9.2
|
|
4
4
|
Summary: CalDAV and CardDAV Server
|
|
5
5
|
Author-email: Guillaume Ayoub <guillaume.ayoub@kozea.fr>, Unrud <unrud@outlook.com>, Peter Bieringer <pb@bieringer.de>
|
|
6
6
|
License: GNU GPL v3
|
|
@@ -97,6 +97,8 @@ Radicale is a small but powerful CalDAV (calendars, to-do lists) and CardDAV
|
|
|
97
97
|
For the complete documentation, please visit
|
|
98
98
|
[Radicale master Documentation](https://radicale.org/master.html).
|
|
99
99
|
|
|
100
|
+
How the source tree is put together is in [docs/README.md](docs/README.md).
|
|
101
|
+
|
|
100
102
|
Additional hints can be found
|
|
101
103
|
* [Radicale Wiki](https://github.com/Kozea/Radicale/wiki)
|
|
102
104
|
* [Radicale Issues](https://github.com/Kozea/Radicale/issues)
|
|
@@ -19,6 +19,8 @@ Radicale is a small but powerful CalDAV (calendars, to-do lists) and CardDAV
|
|
|
19
19
|
For the complete documentation, please visit
|
|
20
20
|
[Radicale master Documentation](https://radicale.org/master.html).
|
|
21
21
|
|
|
22
|
+
How the source tree is put together is in [docs/README.md](docs/README.md).
|
|
23
|
+
|
|
22
24
|
Additional hints can be found
|
|
23
25
|
* [Radicale Wiki](https://github.com/Kozea/Radicale/wiki)
|
|
24
26
|
* [Radicale Issues](https://github.com/Kozea/Radicale/issues)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Radicale
|
|
3
|
-
Version: 3.9.
|
|
3
|
+
Version: 3.9.2
|
|
4
4
|
Summary: CalDAV and CardDAV Server
|
|
5
5
|
Author-email: Guillaume Ayoub <guillaume.ayoub@kozea.fr>, Unrud <unrud@outlook.com>, Peter Bieringer <pb@bieringer.de>
|
|
6
6
|
License: GNU GPL v3
|
|
@@ -97,6 +97,8 @@ Radicale is a small but powerful CalDAV (calendars, to-do lists) and CardDAV
|
|
|
97
97
|
For the complete documentation, please visit
|
|
98
98
|
[Radicale master Documentation](https://radicale.org/master.html).
|
|
99
99
|
|
|
100
|
+
How the source tree is put together is in [docs/README.md](docs/README.md).
|
|
101
|
+
|
|
100
102
|
Additional hints can be found
|
|
101
103
|
* [Radicale Wiki](https://github.com/Kozea/Radicale/wiki)
|
|
102
104
|
* [Radicale Issues](https://github.com/Kozea/Radicale/issues)
|
|
@@ -3,7 +3,7 @@ name = "Radicale"
|
|
|
3
3
|
# When the version is updated, a new section in the CHANGELOG.md file must be
|
|
4
4
|
# added too.
|
|
5
5
|
readme = "README.md"
|
|
6
|
-
version = "3.9.
|
|
6
|
+
version = "3.9.2"
|
|
7
7
|
authors = [{name = "Guillaume Ayoub", email = "guillaume.ayoub@kozea.fr"}, {name = "Unrud", email = "unrud@outlook.com"}, {name = "Peter Bieringer", email = "pb@bieringer.de"}]
|
|
8
8
|
license = {text = "GNU GPL v3"}
|
|
9
9
|
description = "CalDAV and CardDAV Server"
|
|
@@ -135,7 +135,9 @@ commands_pre = [
|
|
|
135
135
|
["sudo", "/usr/bin/mount", "-o", "loop,umask=000,utf8=no", "/tmp/vfat.img", "/tmp/vfat"],
|
|
136
136
|
]
|
|
137
137
|
setenv = { TEMP = "/tmp/vfat" }
|
|
138
|
-
|
|
138
|
+
# pytest refuses a base temporary directory it does not own. This mount
|
|
139
|
+
# reports one uid, so keep pytest's own tmp off it. Storage still uses TEMP.
|
|
140
|
+
commands = [["pytest", "-r", "s", "--basetemp=/tmp/pytest-basetemp-vfat", "."]]
|
|
139
141
|
commands_post = [
|
|
140
142
|
# umount image
|
|
141
143
|
["sudo", "/usr/bin/umount", "-d", "/tmp/vfat"],
|
|
@@ -163,7 +165,9 @@ commands_pre = [
|
|
|
163
165
|
["sudo", "/usr/bin/mount", "-o", "loop,umask=000,utf8", "/tmp/vfat-utf8.img", "/tmp/vfat-utf8"],
|
|
164
166
|
]
|
|
165
167
|
setenv = { TEMP = "/tmp/vfat-utf8" }
|
|
166
|
-
|
|
168
|
+
# pytest refuses a base temporary directory it does not own. This mount
|
|
169
|
+
# reports one uid, so keep pytest's own tmp off it. Storage still uses TEMP.
|
|
170
|
+
commands = [["pytest", "-r", "s", "--basetemp=/tmp/pytest-basetemp-vfat-utf8", "."]]
|
|
167
171
|
commands_post = [
|
|
168
172
|
# umount image
|
|
169
173
|
["sudo", "/usr/bin/umount", "-d", "/tmp/vfat-utf8"],
|
|
@@ -220,7 +224,9 @@ commands_pre = [
|
|
|
220
224
|
["sudo", "/usr/bin/mount", "-o", "loop,umask=0000", "/tmp/ntfs.img", "/tmp/ntfs"],
|
|
221
225
|
]
|
|
222
226
|
setenv = { TEMP = "/tmp/ntfs" }
|
|
223
|
-
|
|
227
|
+
# pytest refuses a base temporary directory it does not own. This mount
|
|
228
|
+
# reports one uid, so keep pytest's own tmp off it. Storage still uses TEMP.
|
|
229
|
+
commands = [["pytest", "-r", "s", "--basetemp=/tmp/pytest-basetemp-ntfs", "."]]
|
|
224
230
|
commands_post = [
|
|
225
231
|
# umount image
|
|
226
232
|
["sudo", "/usr/bin/umount", "-d", "/tmp/ntfs"],
|
|
@@ -57,7 +57,8 @@ def _check_format(self: storage.BaseStorage,
|
|
|
57
57
|
check_minimal = (validation_type == "minimal")
|
|
58
58
|
check_unicode_letter = (validation_type == "unicode-letter")
|
|
59
59
|
check_no_unicode = (validation_type == "no-unicode")
|
|
60
|
-
logger.
|
|
60
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
61
|
+
logger.trace("_check_format investigate %r (validation_type=%r check_minimal=%s check_unicode_letter=%s check_no_unicode=%s)", string, validation_type, check_minimal, check_unicode_letter, check_no_unicode)
|
|
61
62
|
if not self._supports_trailing_whitespace and string.endswith(' '):
|
|
62
63
|
return False
|
|
63
64
|
for c in string:
|
|
@@ -70,12 +71,14 @@ def _check_format(self: storage.BaseStorage,
|
|
|
70
71
|
return False
|
|
71
72
|
if check_minimal or not self._supports_problematic_chars:
|
|
72
73
|
if c in blacklist_minimal:
|
|
73
|
-
logger.
|
|
74
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
75
|
+
logger.trace("_check_format found %r", c)
|
|
74
76
|
return False
|
|
75
77
|
if check_unicode_letter:
|
|
76
78
|
if c not in whitelist_unicode:
|
|
77
79
|
if unicodedata.category(c)[0] != "L":
|
|
78
|
-
logger.
|
|
80
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
81
|
+
logger.trace("_check_format found %r (%r)", c, unicodedata.category(c)[0])
|
|
79
82
|
return False
|
|
80
83
|
if check_no_unicode:
|
|
81
84
|
if ord(c) > 255:
|
|
@@ -89,7 +92,8 @@ def _check_user_format(self: storage.BaseStorage,
|
|
|
89
92
|
urldecode_username: bool,
|
|
90
93
|
enforceUser: bool = True,
|
|
91
94
|
) -> bool:
|
|
92
|
-
logger.
|
|
95
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
96
|
+
logger.trace("_check_user_format investigate %r (urldecode_username=%r)", user, urldecode_username)
|
|
93
97
|
if urldecode_username:
|
|
94
98
|
user = unquote(user)
|
|
95
99
|
if (user.startswith(sharing.SHARING_SEPARATOR_GROUP) or user.startswith(sharing.SHARING_SEPARATOR_REALM)):
|
|
@@ -110,7 +114,8 @@ def _check_user_format(self: storage.BaseStorage,
|
|
|
110
114
|
# strip 1st char
|
|
111
115
|
user = user[1:]
|
|
112
116
|
for user_group in user.split(','):
|
|
113
|
-
logger.
|
|
117
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
118
|
+
logger.trace("_check_user_format investigate group %r", user_group)
|
|
114
119
|
if validation_type == "strict":
|
|
115
120
|
if re.search(USER_PATTERN_STRICT_RE, user_group) is None:
|
|
116
121
|
return False
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
# You should have received a copy of the GNU General Public License
|
|
19
19
|
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
|
|
21
|
+
import logging
|
|
21
22
|
import xml.etree.ElementTree as ET
|
|
22
23
|
from http import client
|
|
23
24
|
from typing import Optional, Union
|
|
@@ -48,12 +49,14 @@ def xml_delete(base_prefix: str, path: str, collection: storage.BaseCollection,
|
|
|
48
49
|
# backmap; quote so the encoded href and raw share path compare
|
|
49
50
|
mapped = quote(share['PathMapped'])
|
|
50
51
|
token = quote(str(share['PathOrToken']))
|
|
51
|
-
logger.
|
|
52
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
53
|
+
logger.trace("DELETE/xml_delete: href=%r (orig)", href_element.text)
|
|
52
54
|
if href_element.text.startswith(base_prefix + mapped):
|
|
53
55
|
href_element.text = base_prefix + token + href_element.text.removeprefix(base_prefix + mapped)
|
|
54
56
|
if not mapped.endswith('/') and href_element.text.endswith('/'):
|
|
55
57
|
href_element.text = href_element.text + mapped.rsplit('/', maxsplit=1)[1]
|
|
56
|
-
logger.
|
|
58
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
59
|
+
logger.trace("DELETE/xml_delete: href=%r (backmapped)", href_element.text)
|
|
57
60
|
response.append(href_element)
|
|
58
61
|
|
|
59
62
|
status = ET.Element(xmlutils.make_clark("D:status"))
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import contextlib
|
|
22
22
|
import datetime
|
|
23
|
+
import logging
|
|
23
24
|
import plistlib
|
|
24
25
|
import posixpath
|
|
25
26
|
import re
|
|
@@ -288,7 +289,8 @@ class ApplicationPartGet(ApplicationBase):
|
|
|
288
289
|
user = share['Owner']
|
|
289
290
|
permissions_filter = share['Permissions']
|
|
290
291
|
else:
|
|
291
|
-
logger.
|
|
292
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
293
|
+
logger.trace("GET/shares: skip overlap mapping: path=%r", path)
|
|
292
294
|
access = Access(self._rights, user, user_groups, path, permissions_filter)
|
|
293
295
|
if share_forces_freebusy_view(share):
|
|
294
296
|
query = parse_qs(environ.get("QUERY_STRING", ""), keep_blank_values=True)
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
|
|
21
21
|
import errno
|
|
22
|
+
import logging
|
|
22
23
|
import posixpath
|
|
23
24
|
import re
|
|
24
25
|
from http import client
|
|
@@ -66,7 +67,8 @@ class ApplicationPartMove(ApplicationBase):
|
|
|
66
67
|
user = share['Owner']
|
|
67
68
|
permissions_filter = share['Permissions']
|
|
68
69
|
else:
|
|
69
|
-
logger.
|
|
70
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
71
|
+
logger.trace("MOVE/shares: skip overlap mapping: path=%r", path)
|
|
70
72
|
access = Access(self._rights, user, user_groups, path, permissions_filter)
|
|
71
73
|
if not access.check("w"):
|
|
72
74
|
return httputils.NOT_ALLOWED
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import collections
|
|
22
22
|
import itertools
|
|
23
|
+
import logging
|
|
23
24
|
import posixpath
|
|
24
25
|
import socket
|
|
25
26
|
import xml.etree.ElementTree as ET
|
|
@@ -76,7 +77,8 @@ def xml_propfind(
|
|
|
76
77
|
# Writing answer
|
|
77
78
|
multistatus = ET.Element(xmlutils.make_clark("D:multistatus"))
|
|
78
79
|
|
|
79
|
-
logger.
|
|
80
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
81
|
+
logger.trace("PROPFIND/xml_propfind: shares=%r", shares)
|
|
80
82
|
|
|
81
83
|
for item, permission, raw_permissions, conversion in allowed_items:
|
|
82
84
|
write = "w" in permission
|
|
@@ -142,15 +144,19 @@ def xml_propfind_response(
|
|
|
142
144
|
|
|
143
145
|
# lookup share
|
|
144
146
|
share = None
|
|
145
|
-
logger.
|
|
147
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
148
|
+
logger.trace("PROPFIND/xml_propfind: conversion=%r item.path=%r", conversion, uri)
|
|
146
149
|
for entry in shares:
|
|
147
|
-
logger.
|
|
150
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
151
|
+
logger.trace("PROPFIND/xml_propfind: check entry=%r", entry)
|
|
148
152
|
if entry is not None:
|
|
149
|
-
logger.
|
|
153
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
154
|
+
logger.trace("PROPFIND/xml_propfind: PathMapped=%r uri=%r", shares[entry]['PathMapped'], uri)
|
|
150
155
|
if uri.startswith(shares[entry]['PathMapped']):
|
|
151
156
|
if conversion is not None and shares[entry]['Conversion'] == conversion:
|
|
152
157
|
share = shares[entry]
|
|
153
|
-
logger.
|
|
158
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
159
|
+
logger.trace("PROPFIND/xml_propfind: found share=%r", share)
|
|
154
160
|
break
|
|
155
161
|
|
|
156
162
|
share_bday_automap = False
|
|
@@ -342,7 +348,8 @@ def xml_propfind_response(
|
|
|
342
348
|
not share_bday_automap):
|
|
343
349
|
privileges.append("C:read-free-busy")
|
|
344
350
|
if not freebusy_only and share:
|
|
345
|
-
logger.
|
|
351
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
352
|
+
logger.trace("PROPFIND/xml_propfind_response/current-user-privilege-set: raw_permissions=%r share[Permissions]=%r permit_properties_overlay=%s", raw_permissions, share['Permissions'], self._sharing.permit_properties_overlay)
|
|
346
353
|
permit_write_content = False
|
|
347
354
|
if write:
|
|
348
355
|
if "w" in share['Permissions']:
|
|
@@ -358,13 +365,15 @@ def xml_propfind_response(
|
|
|
358
365
|
("p" in raw_permissions and "P" not in share['Permissions']) or
|
|
359
366
|
(not self._sharing.permit_properties_overlay and "P" not in raw_permissions and "P" not in share['Permissions'])):
|
|
360
367
|
if "l" not in raw_permissions and "l" not in share['Permissions']:
|
|
361
|
-
logger.
|
|
368
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
369
|
+
logger.trace("PROPFIND/xml_propfind_response/current-user-privilege-set: add D:write-properties")
|
|
362
370
|
privileges.append("D:write-properties")
|
|
363
371
|
# "write-content" + "write-properties" = "write" (rfc3744-3.2)
|
|
364
372
|
if permit_write_content:
|
|
365
373
|
privileges.append("D:write")
|
|
366
374
|
else:
|
|
367
|
-
logger.
|
|
375
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
376
|
+
logger.trace("PROPFIND/xml_propfind_response/current-user-privilege-set: skip D:write-properties because of permission 'l'")
|
|
368
377
|
elif not freebusy_only and write:
|
|
369
378
|
privileges.append("D:all")
|
|
370
379
|
privileges.append("D:write")
|
|
@@ -423,7 +432,8 @@ def xml_propfind_response(
|
|
|
423
432
|
elif not is_collection or is_leaf:
|
|
424
433
|
if collection.tag == "VADDRESSBOOK" and share_bday_automap:
|
|
425
434
|
if isinstance(item, storage.BaseCollection):
|
|
426
|
-
logger.
|
|
435
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
436
|
+
logger.trace("PROPFIND/xml_propfind_response/getcontentlength: start bday automap handling for collection")
|
|
427
437
|
length = 0
|
|
428
438
|
for entry in item.get_all():
|
|
429
439
|
item_ics = entry.convert_vcf_to_ics(ShareActions=share['Actions'])
|
|
@@ -432,7 +442,8 @@ def xml_propfind_response(
|
|
|
432
442
|
length += len(item_ics.vobject_item.serialize().encode(encoding))
|
|
433
443
|
element.text = str(length)
|
|
434
444
|
else:
|
|
435
|
-
logger.
|
|
445
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
446
|
+
logger.trace("PROPFIND/xml_propfind_response/getcontentlength: start bday automap handling for single item")
|
|
436
447
|
item_converted = item.convert_vcf_to_ics(ShareActions=share['Actions'])
|
|
437
448
|
if item_converted is not None:
|
|
438
449
|
element.text = str(len(item_converted.serialize()))
|
|
@@ -493,7 +504,8 @@ def xml_propfind_response(
|
|
|
493
504
|
displayname += " (BDAY)"
|
|
494
505
|
if share and 'Properties' in share and share['Properties'] is not None and "D:displayname" in share['Properties']:
|
|
495
506
|
displayname = share['Properties']["D:displayname"]
|
|
496
|
-
logger.
|
|
507
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
508
|
+
logger.trace("PROPFIND/xml_propfind_response/displayname: replace from share properties with %r", displayname)
|
|
497
509
|
if displayname is not None:
|
|
498
510
|
element.text = displayname
|
|
499
511
|
else:
|
|
@@ -502,7 +514,8 @@ def xml_propfind_response(
|
|
|
502
514
|
# Only for internal use by the web interface
|
|
503
515
|
if isinstance(item, storage.BaseCollection) and not collection.is_principal:
|
|
504
516
|
if collection.tag == "VADDRESSBOOK" and share_bday_automap:
|
|
505
|
-
logger.
|
|
517
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
518
|
+
logger.trace("PROPFIND/xml_propfind_response/getcontentcount: start bday automap handling")
|
|
506
519
|
items = []
|
|
507
520
|
for entry in item.get_all():
|
|
508
521
|
item_ics = entry.convert_vcf_to_ics(ShareActions=share['Actions'])
|
|
@@ -523,14 +536,15 @@ def xml_propfind_response(
|
|
|
523
536
|
displayname += " (BDAY)"
|
|
524
537
|
if share and 'Properties' in share and share['Properties'] is not None and "D:displayname" in share['Properties']:
|
|
525
538
|
displayname = share['Properties']["D:displayname"]
|
|
526
|
-
logger.
|
|
539
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
540
|
+
logger.trace("PROPFIND/xml_propfind_response/displayname: replace from share properties with %r", displayname)
|
|
527
541
|
if displayname is not None:
|
|
528
542
|
element.text = displayname
|
|
529
543
|
else:
|
|
530
544
|
is404 = True
|
|
531
545
|
elif tag == xmlutils.make_clark("CS:getctag"):
|
|
532
546
|
if is_leaf:
|
|
533
|
-
element.text = collection.
|
|
547
|
+
element.text, _ = collection.sync()
|
|
534
548
|
else:
|
|
535
549
|
is404 = True
|
|
536
550
|
elif tag == xmlutils.make_clark("D:sync-token"):
|
|
@@ -557,7 +571,8 @@ def xml_propfind_response(
|
|
|
557
571
|
# map/add from overlay
|
|
558
572
|
if share['Properties'][human_tag] is not None:
|
|
559
573
|
tag_text = share['Properties'][human_tag]
|
|
560
|
-
logger.
|
|
574
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
575
|
+
logger.trace("PROPFIND/xml_propfind_response/%s: replace from share properties with %r", human_tag, tag_text)
|
|
561
576
|
if tag_text is not None:
|
|
562
577
|
element.text = tag_text
|
|
563
578
|
else:
|
|
@@ -602,7 +617,8 @@ class ApplicationPartPropfind(ApplicationBase):
|
|
|
602
617
|
if isinstance(item, storage.BaseCollection):
|
|
603
618
|
path = pathutils.unstrip_path(item.path, True)
|
|
604
619
|
raw_permissions = self._rights.authorization(user, user_groups, path)
|
|
605
|
-
logger.
|
|
620
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
621
|
+
logger.trace("PROPFIND/_collect_allowed_items/BaseCollection: path=%r user=%r raw_permissions=%r", path, user, raw_permissions)
|
|
606
622
|
if item.tag:
|
|
607
623
|
permissions = rights.intersect(raw_permissions, "rw")
|
|
608
624
|
target = "collection with tag %r" % item.path
|
|
@@ -654,9 +670,11 @@ class ApplicationPartPropfind(ApplicationBase):
|
|
|
654
670
|
user = share['Owner']
|
|
655
671
|
permissions_filter = share['Permissions']
|
|
656
672
|
shares[share['PathOrToken']] = share
|
|
657
|
-
logger.
|
|
673
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
674
|
+
logger.trace("PROPFIND/shares: add mapping: PathOrToken=%r PathMapped=%r", share['PathOrToken'], share['PathMapped'])
|
|
658
675
|
else:
|
|
659
|
-
logger.
|
|
676
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
677
|
+
logger.trace("PROPFIND/shares: skip overlap mapping: path=%r", path)
|
|
660
678
|
access = Access(self._rights, user, user_groups, path, permissions_filter)
|
|
661
679
|
read_allowed = access.check("r")
|
|
662
680
|
freebusy_only = "r" not in access.permissions and access.allows_freebusy()
|
|
@@ -675,7 +693,8 @@ class ApplicationPartPropfind(ApplicationBase):
|
|
|
675
693
|
return httputils.REQUEST_TIMEOUT
|
|
676
694
|
collection_uris: dict = {}
|
|
677
695
|
with self._storage.acquire_lock("r", user):
|
|
678
|
-
logger.
|
|
696
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
697
|
+
logger.trace("PROPFIND: discover path=%r depth=%s", path, http_depth)
|
|
679
698
|
items_iter = iter(self._storage.discover(
|
|
680
699
|
path, http_depth,
|
|
681
700
|
None, user_groups))
|
|
@@ -723,13 +742,15 @@ class ApplicationPartPropfind(ApplicationBase):
|
|
|
723
742
|
allowed_items.append((item, permission, raw_permissions, share['Conversion']))
|
|
724
743
|
if isinstance(item, storage.BaseCollection):
|
|
725
744
|
uri = pathutils.unstrip_path(item.path, True)
|
|
726
|
-
logger.
|
|
745
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
746
|
+
logger.trace("PROPFIND: append collection (share+conversion): %r", uri)
|
|
727
747
|
collection_uris[uri] = 1
|
|
728
748
|
else:
|
|
729
749
|
allowed_items.append((item, permission, raw_permissions, None))
|
|
730
750
|
if isinstance(item, storage.BaseCollection):
|
|
731
751
|
uri = pathutils.unstrip_path(item.path, True)
|
|
732
|
-
logger.
|
|
752
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
753
|
+
logger.trace("PROPFIND: append collection: %r", uri)
|
|
733
754
|
collection_uris[uri] = 1
|
|
734
755
|
if self._sharing._enabled:
|
|
735
756
|
if http_depth == "1":
|
|
@@ -747,7 +768,8 @@ class ApplicationPartPropfind(ApplicationBase):
|
|
|
747
768
|
c_path = share['PathMapped']
|
|
748
769
|
c_user = share['Owner']
|
|
749
770
|
c_permissions_filter = share['Permissions']
|
|
750
|
-
logger.
|
|
771
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
772
|
+
logger.trace("PROPFIND: test shared collection: PathOrToken=%r PathMapped=%r Owner=%r Permissions=%r", c_share, c_path, c_user, c_permissions_filter)
|
|
751
773
|
c_access = Access(self._rights, c_user, set([]), c_path, c_permissions_filter)
|
|
752
774
|
share_freebusy_only = (
|
|
753
775
|
"f" in c_access.permissions and not c_access.check("r"))
|
|
@@ -767,7 +789,8 @@ class ApplicationPartPropfind(ApplicationBase):
|
|
|
767
789
|
if isinstance(item, storage.BaseCollection):
|
|
768
790
|
uri = pathutils.unstrip_path(item.path, True)
|
|
769
791
|
if share['Conversion'] != "bday" and uri in collection_uris:
|
|
770
|
-
logger.
|
|
792
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
793
|
+
logger.trace("PROPFIND: shared collection skipped (source existing): %r", uri)
|
|
771
794
|
continue
|
|
772
795
|
# backmap
|
|
773
796
|
if uri.startswith(share['PathMapped']):
|
|
@@ -776,10 +799,12 @@ class ApplicationPartPropfind(ApplicationBase):
|
|
|
776
799
|
uri = uri.removesuffix(".vcf") + ".ics"
|
|
777
800
|
if uri not in collection_uris:
|
|
778
801
|
allowed_items.append((item, permission, raw_permissions, share['Conversion']))
|
|
779
|
-
logger.
|
|
802
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
803
|
+
logger.trace("PROPFIND: shared collection append: %r", uri)
|
|
780
804
|
collection_uris[uri] = 2
|
|
781
805
|
else:
|
|
782
|
-
logger.
|
|
806
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
807
|
+
logger.trace("PROPFIND: shared collection skipped (backmapped already existing): %r", uri)
|
|
783
808
|
else:
|
|
784
809
|
allowed_items.append((item, permission, raw_permissions, share['Conversion']))
|
|
785
810
|
shares[c_share] = share
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
|
|
21
21
|
|
|
22
22
|
import errno
|
|
23
|
+
import logging
|
|
23
24
|
import re
|
|
24
25
|
import socket
|
|
25
26
|
import xml.etree.ElementTree as ET
|
|
@@ -65,14 +66,16 @@ def xml_proppatch(base_prefix: str, path: str,
|
|
|
65
66
|
props_with_remove = xmlutils.props_from_request(xml_request)
|
|
66
67
|
if share and share_overlay:
|
|
67
68
|
# PROPPATCH overlay adjustment
|
|
68
|
-
logger.
|
|
69
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
70
|
+
logger.trace("PROPPATCH/xml_proppatch: share+share_overlay is active: %r", share)
|
|
69
71
|
if share['Properties'] is not None:
|
|
70
72
|
all_props_with_remove = cast(Dict[str, Optional[str]], radicale_item.check_and_sanitize_props(share['Properties']))
|
|
71
73
|
else:
|
|
72
74
|
all_props_with_remove = {}
|
|
73
75
|
all_props_with_remove.update(props_with_remove)
|
|
74
76
|
all_props = radicale_item.check_and_sanitize_props(all_props_with_remove)
|
|
75
|
-
logger.
|
|
77
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
78
|
+
logger.trace("PROPPATCH/xml_proppatch: share+share_overlay result: %r", all_props)
|
|
76
79
|
else:
|
|
77
80
|
if collection is not None:
|
|
78
81
|
# always the case, but makes mypy happy
|
|
@@ -115,7 +118,8 @@ class ApplicationPartProppatch(ApplicationBase):
|
|
|
115
118
|
user = share['Owner']
|
|
116
119
|
permissions_filter = share['Permissions']
|
|
117
120
|
else:
|
|
118
|
-
logger.
|
|
121
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
122
|
+
logger.trace("PROPPATCH/shares: skip overlap mapping: path=%r", path)
|
|
119
123
|
access = Access(self._rights, user, user_groups, path, permissions_filter)
|
|
120
124
|
raw_permissions = self._rights.authorization(user, user_groups, path)
|
|
121
125
|
if "l" in raw_permissions:
|
|
@@ -125,10 +129,12 @@ class ApplicationPartProppatch(ApplicationBase):
|
|
|
125
129
|
logger.notice("PROPPATCH request on %r: write-access disabled by permission 'l'", path)
|
|
126
130
|
return httputils.NOT_ALLOWED
|
|
127
131
|
if not access.check("w"):
|
|
128
|
-
logger.
|
|
132
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
133
|
+
logger.trace("PROPPATCH/xml_proppatch: no native write-access: %r", path)
|
|
129
134
|
if share:
|
|
130
135
|
# priority share->rights->global
|
|
131
|
-
logger.
|
|
136
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
137
|
+
logger.trace("PROPPATCH/share: raw_permissions=%r share[Permissions]=%r permit_properties_overlay=%s enforce_properties_overlay=%s", raw_permissions, share['Permissions'], self._sharing.permit_properties_overlay, self._sharing.enforce_properties_overlay)
|
|
132
138
|
if ("P" in share['Permissions'] or
|
|
133
139
|
("P" in raw_permissions and "p" not in share['Permissions']) or
|
|
134
140
|
(self._sharing.permit_properties_overlay and "p" not in raw_permissions and "p" not in share['Permissions'])
|
|
@@ -149,7 +155,8 @@ class ApplicationPartProppatch(ApplicationBase):
|
|
|
149
155
|
else:
|
|
150
156
|
return httputils.NOT_ALLOWED
|
|
151
157
|
else:
|
|
152
|
-
logger.
|
|
158
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
159
|
+
logger.trace("PROPPATCH/xml_proppatch: write-access: %r", path)
|
|
153
160
|
if share:
|
|
154
161
|
if "p" in share['Permissions']:
|
|
155
162
|
logger.notice("PROPPATCH request on shared %r: write-permissions, but disabled by share permission 'p'", path_orig)
|
|
@@ -158,7 +165,8 @@ class ApplicationPartProppatch(ApplicationBase):
|
|
|
158
165
|
logger.notice("PROPPATCH request on shared %r: write-permissions, but disabled by rights permission 'p'", path_orig)
|
|
159
166
|
return httputils.NOT_ALLOWED
|
|
160
167
|
# write access -> check for enforced properties overlay
|
|
161
|
-
logger.
|
|
168
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
169
|
+
logger.trace("PROPPATCH/xml_proppatch: write-access/sharing: %r", path_orig)
|
|
162
170
|
if self._sharing.enforce_properties_overlay:
|
|
163
171
|
if permissions_filter is not None and "e" in permissions_filter:
|
|
164
172
|
logger.notice("PROPPATCH request on shared %r: write-permissions, overlay enforced, but disabled by share permission 'e'", path_orig)
|
|
@@ -196,7 +196,8 @@ class ApplicationPartPut(ApplicationBase):
|
|
|
196
196
|
user = share['Owner']
|
|
197
197
|
permissions_filter = share['Permissions']
|
|
198
198
|
else:
|
|
199
|
-
logger.
|
|
199
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
200
|
+
logger.trace("PUT/shares: skip overlap mapping: path=%r", path)
|
|
200
201
|
|
|
201
202
|
access = Access(self._rights, user, user_groups, path, permissions_filter)
|
|
202
203
|
if not access.check("w"):
|