Results 1 to 8 of 8

Thread: Zarafa not honoring 'time-range' filter in CalDAV?

  1. #1
    Junior Member
    Join Date
    Nov 2011
    Posts
    11

    Zarafa not honoring 'time-range' filter in CalDAV?

    Hi guys!

    I'm a bit puzzled. I'm not quite sure wether it's Zarafa's fault, the client's or mine.

    Here's what I'm worrying about: I got my calendar holding 1900+ elements. Now I want to use a client library to fetch some of them into my php script. So I'm using the time-range filter to get only the events within my desired time span. Here's what the client sends as a request to the server:

    Code:
    REPORT /caldav/ HTTP/1.1
    Authorization: Basic WW91IHJlYWxseSB3YW5uYSBrbm93LCBodW0/IDsp
    Host: zarafa.example.com:443
    Content-type: text/xml
    Content-Length: 411
    User-Agent: DAViCalClient
    Connection: close
    
    <?xml version="1.0" encoding="utf-8" ?>
    <C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
      <D:prop>
        <C:calendar-data/>
        <D:getetag/>
      </D:prop>  <C:filter>
        <C:comp-filter name="VCALENDAR">
          <C:comp-filter name="VEVENT">
            <C:time-range start="20120501T000000Z" end="20120507T000000Z"/>
          </C:comp-filter>
        </C:comp-filter>
      </C:filter>
    </C:calendar-query>
    But what's returned? All of the 1900+ events in my calendar. Not just those matching the given time span.

    As I'm new to the CalDAV protocol, my question is now: who's doing what wrong? Am I mistaken with this filter, is the client doing something wrong or is it Zarafa not correctly responding to this request?

    Looking forward to reading your thoughts!


    Regards, mh166

  2. #2
    Zarafa QA
    Robin's Avatar
    Join Date
    Jul 2009
    Location
    Delft, Netherlands
    Posts
    4,671
    Hello mh166,

    What version of Zarafa are you using? It can be the we do not respond correctly. I think the main reason for this is that none of the supported caldav clients use this feature.

    Greetings,
    Robin
    Zarafa IRC chat: irc.freenode.com > #zarafa
    Zarafa documentation: http://www.zarafa.com/content/documentation
    Zarafa Community webpage: http://community.zarafa.com

  3. #3
    Junior Member
    Join Date
    Nov 2011
    Posts
    11
    Oh sorry, I forgot to mention.

    Code:
    [email protected]:~# zarafa-server -V
    Product version:        7,0,7,34256
    File version:           34256
    [email protected]:~#
    If it is too complicated to include that CalDAV time-range filtering, I'd be happy using MAPI in my PHP scripts too. But after taking some look at all the MAPI stuff one would need to simply get some calendar events... I thought it would be quite more easy to just use CalDAV as it's easier to understand. At least for me.

    Anyway, I guess it wouldn't harm to support this filter. Whereas I wonder, why no client is using that feature? Stange world ...

    Regards, mh166

  4. #4
    Zarafa QA
    Robin's Avatar
    Join Date
    Jul 2009
    Location
    Delft, Netherlands
    Posts
    4,671
    Hello mh166,

    It is not likely that we implement this feature soon. You can use PHP with examples from the webaccess code or python.

    Greetings,
    Robin
    Zarafa IRC chat: irc.freenode.com > #zarafa
    Zarafa documentation: http://www.zarafa.com/content/documentation
    Zarafa Community webpage: http://community.zarafa.com

  5. #5
    Junior Member
    Join Date
    Nov 2011
    Posts
    11
    Too bad to hear, but if none of the commonly used clients is using this feature ... it's probably something I should expect. In any case: maybe one could drop a note here if it's gonna be implemented one day?

    Meanwhile I think I've got to fiddle around with the MAPI classes. Of course, the webaccess is a starting point I was already having a look at. It was just that I saw it and thought "Nah, CalDAV's gonna be easier".

  6. #6
    Junior Member
    Join Date
    Mar 2013
    Posts
    3
    Quote Originally Posted by Robin View Post
    Hello mh166,

    It is not likely that we implement this feature soon. You can use PHP with examples from the webaccess code or python.

    Greetings,
    Robin
    Funny enough, I just tried this too, and I can confirm that filter isn't working.

    What I'm trying to do is to write a simple program to retrieve the calendar events for a date (today) and email me a reminder list. Python would be my language of choice. PHP is fine too. I'd appreciate if someone could give me a hint or two to get going. Thank you.

  7. #7
    Junior Member
    Join Date
    Jun 2011
    Posts
    2
    I tried the same thing with zarafa-ical 7.2.4 too. It seems that the time range option over caldav ist still not implemented. A pity. The time range element is ignored and all VEVENT elements are transmitted.

    Here my query string:
    "<c:calendar-query xmlns:c=""urn:ietfarams:xml:ns:caldav""><drop xmlns:d=""DAV:""><d:getetag/><c:calendar-data/></drop><c:filter><c:comp-filter name=""VCALENDAR""><c:comp-filter name=""VEVENT""><c:time-range start=""20170209T000000"" end=""20170214T000000""/></c:comp-filter></c:comp-filter></c:filter></c:calendar-query>"

  8. #8
    Zarafa

    Join Date
    Jan 2009
    Location
    Hanover, Germany
    Posts
    1,891
    Hello Robs,

    based on the amount of requests we get CalDav is no real priority for us. For Kopano we recently lowered the barrier for community contributions, so if you may want to work on this let me know.
    Regards Felix

    How to get Kopano

    Zarafa ALPHA/BETA/RC feedback in BETA forum please.
    Zarafa IRC chat: irc.freenode.com > #zarafa
    Zarafa documentation: http://documentation.zarafa.com/

    No support via PM! Please contact our sales team for an offer if you want my full attention.

Similar Threads

  1. Filter Rules Zarafa Webapp 1.0
    By hitvx in forum WebApp
    Replies: 2
    Last Post: 16-04-2012, 03:46 PM
  2. Z-Push Trunk: Zarafa Caldav is not Caldav?
    By florianoverkamp in forum Z-Push when using Kopano/Zarafa
    Replies: 1
    Last Post: 13-09-2011, 10:47 AM
  3. SQL Failed: Out of range value adjusted for column 'type'
    By alex in forum Installation and Configuration Archives
    Replies: 13
    Last Post: 15-11-2010, 09:32 AM
  4. [SOLVED] spam filter with zarafa on Centos
    By vadimc in forum Installation and Configuration Archives
    Replies: 3
    Last Post: 25-06-2009, 03:53 PM
  5. Appointment time linked to system time?
    By arthur in forum Outlook usage Archives
    Replies: 6
    Last Post: 05-08-2008, 01:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •