Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

unable to create events in calendar #73

@bhanuvrat

Description

@bhanuvrat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions