Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to create events in calendar #73

Open
bhanuvrat opened this issue May 17, 2021 · 0 comments
Open

unable to create events in calendar #73

bhanuvrat opened this issue May 17, 2021 · 0 comments

Comments

@bhanuvrat
Copy link

The traceback

[7fd8bf292700] ERROR: An exception occurred during REPORT request on '/[email protected]/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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant