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

Alarm search not yet supported #228

Open
tobixen opened this issue Oct 24, 2022 · 0 comments
Open

Alarm search not yet supported #228

tobixen opened this issue Oct 24, 2022 · 0 comments

Comments

@tobixen
Copy link
Contributor

tobixen commented Oct 24, 2022

Sorry to pester you again :-)

I have this REPORT query (as per https://www.rfc-editor.org/rfc/rfc4791#section-7.8.5):

<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:prop>
    <C:calendar-data/>
  </D:prop>
  <C:filter>
    <C:comp-filter name="VCALENDAR">
      <C:comp-filter name="VEVENT">
        <C:comp-filter name="VALARM">
          <C:time-range start="20151010T060100Z" end="20151010T060700Z"/>
        </C:comp-filter>
      </C:comp-filter>
    </C:comp-filter>
  </C:filter>
</C:calendar-query>

And this event on the calendar:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//python-caldav//caldav//en_DK
BEGIN:VEVENT
SUMMARY:This is a test event
DTSTART;VALUE=DATE-TIME:20151010T080706
DTEND;VALUE=DATE-TIME:20161010T090807
DTSTAMP;VALUE=DATE-TIME:20221024T143714Z
UID:96d4e74a-5398-11ed-a1df-a0510ba5c65c
BEGIN:VALARM
ACTION:AUDIO
TRIGGER:-PT15M
END:VALARM
END:VEVENT
END:VCALENDAR

I see that no timezone information given for the DTSTART and DTEND, though I assume from the NotImplementedError that this is not the reason for the 500 ...

  File "/home/tobias/caldav/tests/test_caldav.py", line 2224, in xandikos_handler
    return await mainapp.aiohttp_handler(request, "/")
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/webdav.py", line 2152, in aiohttp_handler
    response = await self._handle_request(request, environ)
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/webdav.py", line 2108, in _handle_request
    return await do.handle(request, environ, self)
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/webdav.py", line 1764, in handle
    return await reporter.report(
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/webdav.py", line 353, in wrapper
    async for resp in req_fn(self, environ, *args, **kwargs):
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/caldav.py", line 566, in report
    async for (href, resource) in webdav.traverse_resource(
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/webdav.py", line 1205, in traverse_resource
    for (child_name, child_resource) in members_fn(resource):
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/web.py", line 637, in calendar_query
    for (name, file, etag) in self.store.iter_with_filter(filter=filter):
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/store/__init__.py", line 314, in _iter_with_filter_naive
    if filter.check(name, file):
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/icalendar.py", line 822, in check
    if not child_filter.match(file.calendar, self.tzify):
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/icalendar.py", line 603, in match
    if not any(child.match(c, tzify) for c in comp.subcomponents):
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/icalendar.py", line 603, in <genexpr>
    if not any(child.match(c, tzify) for c in comp.subcomponents):
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/icalendar.py", line 603, in match
    if not any(child.match(c, tzify) for c in comp.subcomponents):
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/icalendar.py", line 603, in <genexpr>
    if not any(child.match(c, tzify) for c in comp.subcomponents):
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/icalendar.py", line 596, in match
    and not self.time_range.match(comp, tzify)):
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/icalendar.py", line 453, in match
    return component_handler(self.start, self.end, comp, tzify)
  File "/usr/lib/python3.10/site-packages/xandikos-0.2.8-py3.10.egg/xandikos/icalendar.py", line 378, in apply_time_range_valarm
    raise NotImplementedError(apply_time_range_valarm)
NotImplementedError: <function apply_time_range_valarm at 0x7fccbb9bc940>
@jelmer jelmer changed the title Alarm search giving 500 internal server error Alarm search giving 500 not yet supported Oct 24, 2022
@jelmer jelmer changed the title Alarm search giving 500 not yet supported Alarm search not yet supported Oct 24, 2022
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