Commit Graph

446 Commits

Author SHA1 Message Date
deffed8f14 Do SSL handshake in request thread (fixes #674)
The handshake could block the main thread, especially since the socket timeout was not set at that point.
2017-07-27 01:46:27 +02:00
b3957bc2c7 Bump version to 2.1.2 2017-07-24 04:22:57 +02:00
1f4fb9e306 Use repr(...) instead of "%r" % ... 2017-07-22 23:32:26 +02:00
d0aacd3dcf Check uploaded data for more than one VCALENDAR 2017-07-22 23:32:26 +02:00
05b1e8296c Check collection properties 2017-07-22 23:32:26 +02:00
863c70f35f Improve validation of uploaded items and stored items
This reverts commit 4533f76df9.
2017-07-22 23:32:26 +02:00
4f831de006 Verify number of components in items 2017-07-15 09:42:01 +02:00
f4a9399a97 Change HTTP response 303 to 302 2017-07-01 04:20:13 +02:00
08919510cb Bump version to 2.1.1 2017-07-01 01:25:16 +02:00
2b3fd1fb9b Add missing UIDs instead of failing 2017-07-01 01:24:53 +02:00
c135dc026d Fix uploading of whole address books 2017-07-01 01:24:53 +02:00
5576cb38eb Bump version to 2.1.0 2017-06-25 09:55:39 +02:00
6bf7aa2b3c Bump version to 2.1.0rc3 2017-06-23 22:04:37 +02:00
df5565f237 Only send timeout responses for client timeouts
A timeout could happen in an custom storage backend.
2017-06-23 21:55:44 +02:00
746cd9feb1 Include exception in timeout log message 2017-06-23 21:55:42 +02:00
65a1b572e3 Bump version to 2.1.0rc2 2017-06-21 09:57:52 +02:00
68184858b4 Add request method and path to error message 2017-06-21 09:54:33 +02:00
db93d969ab Bump version to 2.1.0rc1 2017-06-17 01:45:53 +02:00
39a11bc7b7 Change "answer" to "response" in log message 2017-06-17 01:41:33 +02:00
cf9129f6db Name web plugin as the other plugins 2017-06-16 23:28:15 +02:00
9ce8e9d94d Include path in access denied log message 2017-06-16 23:28:15 +02:00
0cb6642ec3 Don't overwrite environment variables
The original PATH_INFO is required for redirects.
2017-06-16 23:28:15 +02:00
5669433f58 Let rights plugins decide if access to item is granted 2017-06-16 23:28:15 +02:00
04c51d2ced Check if item is collection with storage.BaseCollection
The same as in xmlutils.py
2017-06-16 23:12:08 +02:00
f1f94dffbd Output raw collection path
The same as everywhere else.
2017-06-15 23:44:35 +02:00
02371685bd Respond with bad request when MKCOL, MCALENDAR or MOVE fails 2017-06-09 02:59:29 +02:00
a4fc123286 Use last_modified attribute of item 2017-06-09 02:59:29 +02:00
3753364fc8 XML error message for invalid sync-token 2017-06-07 14:17:57 +02:00
2860c664d0 Check that vobject_item have a UID 2017-06-06 20:01:09 +02:00
fe97741f08 Better reporting of errors in PUT requests 2017-06-06 20:01:07 +02:00
78a62aee86 Merge pull request #565 from Unrud/synctoken
Support for sync-token and sync-collection
2017-06-02 13:01:54 +02:00
f2b415c4a6 Initial sync-token and sync-collection support
Use the etag of the collection as the sync token and tell the client that the token is invalid when the collection changed.
2017-06-02 12:44:23 +02:00
3af5809d71 Add option for CA certificate for validating clients
This can be used to secure TCP traffic between Radicale and a reverse proxy
2017-06-02 12:41:03 +02:00
ab9e9b2d7c Add web interface module 2017-05-31 13:18:40 +02:00
edaf21561d Don't strip SCRIPT_NAME from PATH_INFO 2017-05-31 12:01:37 +02:00
5704b5021b PATH_INFO might not exist if it's empty 2017-05-31 12:01:35 +02:00
c9664137a5 Improve error handling
* Check the configuration file for errors (check option names and basic type checking).
  * Perform basic type checking on command line arguments.
  * Only print stack traces in debug mode.
  * Include much more information in error messages (e.g. include the path of invalid files).
  * Send Bad Request to clients for invalid XML requests or iCalendar data.
  * Change the log level of some messages.
2017-05-31 11:31:54 +02:00
09bde14e50 Allow auth backends to provide login and password
This is used to implement an auth backend that takes the credentials from an HTTP header (e.g. accounts are managed by an reverse proxy)
2017-05-31 02:07:49 +02:00
8536ffee44 Preserve empty PATH_INFO from WSGI and strip base prefix from destination 2017-05-30 22:58:57 +02:00
11c5dfdb53 Improve handling of XML requests and responses
* Move parsing/serialization of XML requests/responses from ``xmlutils.py`` to ``__init__.py``.
  * Log XML requests/responses in pretty-printed form.
      * Previously only the responses were logged in readable form. This is useful for debugging.
      * The XML documents are only converted for pretty-printing if debugging is enabled (it's expensive)
  * Send XML responses in minimized form to clients.
  * Add **encoding** attribute to XML declaration in XML response.
  * Only decode XML requests once. (Previously they were decoded, encoded and decoded again.)
2017-05-30 09:15:51 +02:00
f1a9cf7694 Allow already encoded answers 2017-05-30 09:02:37 +02:00
a94a3bc7c2 Version 2.0.0 2017-05-27 18:10:46 +02:00
3e0c8cf285 Update copyright years 2017-05-27 17:28:07 +02:00
577d9317d2 Strip script name from path 2017-05-26 11:02:07 +02:00
cf78a23856 Improve logging
Log failed login attempts more clearly and also log access violations of authenticated users.
2017-05-23 04:16:52 +02:00
f2fb07fa84 Move authentication delay into __init__.py and add config
Use the delay for all backends (not only htpasswd).
Add configuration option to configure the delay.
2017-05-23 04:07:32 +02:00
fb970246e0 Only query auth backend when a user is set 2017-05-23 04:07:32 +02:00
dcb0638538 Version 2.0.0rc2 2017-04-19 14:10:02 +02:00
7e2406c778 Version 2.0.0rc1 2017-04-15 15:51:05 +02:00
864eb5931a Merge setup.cfg and pytest.ini, fix tests 2017-04-15 10:51:00 +02:00