Unrud
ac616a78ce
Fix random href fallback
2022-04-20 17:55:59 +02:00
Unrud
136c8e4193
Improve error message
2022-04-20 17:55:59 +02:00
Unrud
a9688f21a8
Ignore NotADirectoryError for optional config files
...
Fixes #1234
2022-04-18 23:03:10 +02:00
Unrud
1bb1f37b3d
Replace pkg_resources with importlib for Python >= 3.9
...
Fixes #1184
2022-04-18 23:03:10 +02:00
Unrud
c3c0a7e73b
Check if files exist when uploading items non-atomic
2022-04-18 23:03:10 +02:00
Unrud
9e11ebfffc
Fix upload of calendars with colliding UIDs
2022-04-18 23:03:10 +02:00
Unrud
994b2a5b5b
Test calendar with case-sensitive-UIDs
2022-04-18 23:03:10 +02:00
Unrud
3591eacdc1
Windows: Block alternate data streams
2022-04-18 23:03:10 +02:00
Unrud
35f89fb64d
Refactor DisableRedirectHandler
2022-04-18 23:03:10 +02:00
Unrud
34b2602563
Ignore configuration file if access denied
...
Fixes #1215
Bug was introduced in 4c44940ec1
2022-02-08 16:40:12 +01:00
Unrud
b04938b088
Fix F_FULLFSYNC on PyPy + Fallback if unsupported
2022-02-08 16:40:12 +01:00
Unrud
496b629cb4
Revert "Assume F_FULLFSYNC on darwin"
2022-02-01 20:25:17 +01:00
Unrud
c5a917826b
Assume F_FULLFSYNC on darwin
2022-02-01 19:54:46 +01:00
Unrud
e9367a130a
Remove special cases for python < 3.6
2022-02-01 19:54:46 +01:00
Unrud
c50039e878
Use sys.platform instead of os.name
...
mypy only recognizes sys.platform
2022-02-01 19:54:46 +01:00
Unrud
066cefcc17
Fix Mypy error
2022-02-01 19:54:46 +01:00
Unrud
6eacd29acb
Fallback if RENAME_EXCHANGE not supported by fs
...
Fixes #1213
2022-02-01 19:54:46 +01:00
Unrud
c296dfd497
Warning instead of error when base prefix ends with '/'
...
Workaround for #1210
2022-01-26 22:08:22 +01:00
Unrud
785659aa26
Redirect …/.well-known/{caldav,carddav} to /
...
Closes #1200
2022-01-26 22:08:22 +01:00
Unrud
e5187f3704
Verify that base_prefix starts with '/'
2022-01-22 00:35:30 +01:00
Unrud
5bc2d8f919
Error if SCRIPT_NAME ends with '/'
2022-01-22 00:11:12 +01:00
Unrud
fbeeb6d520
Test X-Script-Name
2022-01-22 00:11:12 +01:00
Unrud
27cc79d029
Improve log message
2022-01-22 00:11:12 +01:00
Unrud
a4e0e21e86
Drop body for HEAD requests last
2022-01-22 00:11:12 +01:00
Unrud
f0b898a27b
Mark as deprecated
2022-01-18 22:49:08 +01:00
Unrud
b9e34005f8
Extract httputils.serve_folder
2022-01-18 22:47:39 +01:00
Unrud
8931b81934
Clarify handling of HEAD request
2022-01-18 22:47:39 +01:00
Unrud
cb2f237882
web.none: Redirect instead of 404
2022-01-18 22:47:39 +01:00
Unrud
9b76b70d06
web.internal: Use absolute path for redirect
2022-01-18 22:47:39 +01:00
Unrud
77a3ea7529
Only redirect to sanitized path under /web
2022-01-18 22:47:39 +01:00
Unrud
9e9f2bb780
Extract httputils.redirect
2022-01-18 22:47:39 +01:00
Unrud
113eeec847
Re-use variable
2022-01-18 22:47:39 +01:00
Unrud
901db46898
Tests: Check Location header and body for redirects
2022-01-18 22:47:39 +01:00
Unrud
88ff1b4c28
Tests: Simplify HTTP status check
2022-01-18 22:47:39 +01:00
Unrud
a4150c633a
Workaround for broken contact PHOTO from InfCloud
...
See issue #1205
2022-01-18 22:44:32 +01:00
Unrud
2a29ad6a17
Set Content-Length for HEAD requests
2022-01-18 22:44:32 +01:00
Unrud
a26dcf3188
Redirect GET and HEAD requests to sanitized path
2022-01-18 22:44:32 +01:00
Unrud
2b8befa5db
Don't sanitize WSGI script name
2022-01-18 22:44:32 +01:00
Unrud
8e0a933423
Cosmetics
2022-01-18 22:44:32 +01:00
Lauri Tirkkonen
035ff2b546
config & rights: use open() for better error messages
...
ConfigParser().read() doesn't differentiate between different types of
failure to read files, causing eg. "No such file" to be logged in all
cases, for example if permissions are insufficient. fix that by using
open() and ConfigParser().read_file() instead.
2022-01-18 22:44:32 +01:00
Unrud
63619e1ef7
Change "user name" to "username"
2022-01-18 22:43:24 +01:00
Unrud
4679700e28
Don't manually assemble origin
2022-01-18 22:43:24 +01:00
Unrud
019c972b9d
Fix dlopen on Android
2021-12-25 23:13:20 +01:00
Unrud
9fd715de37
Load no config file for --config without argument
2021-12-25 23:13:20 +01:00
Unrud
8942684542
Revert "Require argument for --config command-line option"
...
This reverts commit e629e9a2e1
.
2021-12-25 23:13:20 +01:00
Unrud
903f43e72e
Run TestBaseRequests only once
2021-12-21 00:00:54 +01:00
Unrud
d11a0b26b4
Replace all dates if any has the wrong type
2021-12-21 00:00:47 +01:00
Unrud
74340b8e7b
Assert waiters and waiter are still the same
2021-12-21 00:00:37 +01:00
Unrud
ef9a2fbab8
Convert EXDATE and RDATE to same type as DTSTART
...
Fixes #1146
Closes #1199
2021-12-20 21:30:02 +01:00
Unrud
dc3a733f04
Change type of stack_frame to Optional[...]
2021-12-20 21:30:02 +01:00