modoboa / modoboa-radicale

The Radicale frontend of Modoboa
MIT License
21 stars 14 forks source link

unable to create events in calendar #73

Open bhanuvrat opened 3 years ago

bhanuvrat commented 3 years ago

The traceback

[7fd8bf292700] ERROR: An exception occurred during REPORT request on '/anuvrat@xxxxxxxxx.email/test/': Error in section 'principal' of rights file '/etc/radicale/rights': 'user'
Traceback (most recent call last):
  File "/srv/radicale/env/lib/python3.8/site-packages/radicale/rights.py", line 160, in authorized
    r"(?:%s)\Z" % re_collection_pattern.format(
KeyError: 'user'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/srv/radicale/env/lib/python3.8/site-packages/radicale/__init__.py", line 332, in __call__
    status, headers, answers = self._handle_request(environ)
  File "/srv/radicale/env/lib/python3.8/site-packages/radicale/__init__.py", line 476, in _handle_request
    if self.Rights.authorized(user, principal_path, "w"):
  File "/srv/radicale/env/lib/python3.8/site-packages/radicale/rights.py", line 163, in authorized
    raise RuntimeError("Error in section %r of rights file %r: "
RuntimeError: Error in section 'principal' of rights file '/etc/radicale/rights': 'user'

rights file


$ cat /etc/radicale/rights 
# Rights management file for Radicale
# This file was generated by Modoboa on 2021-05-17 08:13:12.575161
# DO NOT EDIT MANUALLY!

# Allow reading and writing principal collection (same as user name)
[principal]
user = .+
collection = {user}
permissions = RW

# Allow reading and writing calendars and address books that are direct children of the principal collection
[calendars]
user = .+
collection = {user}/[^/]+
permissions = rw

Everything is up-to-date:

image