cozy / cozy-sync

webdav server for cozy
20 stars 19 forks source link

Trouble getting today events with CalDav #89

Closed JbIPS closed 8 years ago

JbIPS commented 9 years ago

Hi,

I'm trying to write an application that get today events from my CozyCloud calendar with CalDav.

I'm writing NodeJS code and I'm using https://github.com/gaye/dav as a connector, but the time-range filters do not seem to be taken into account. I tried https://github.com/jachwe/node-caldav but I get

{ declaration: { attributes: { version: '1.0', encoding: 'utf-8' } },
  root: 
   { name: 'd:error',
     attributes: { 'xmlns:d': 'DAV:', 'xmlns:a': 'http://ajax.org/2005/aml' },
     children: 
      [ { name: 'a:exception',
          attributes: {},
          children: [],
          content: 'ReportNotImplemented' },
        { name: 'a:message',
          attributes: {},
          children: [],
          content: 'ReportNotImplemented' },
        { name: 'a:jsdav-version',
          attributes: {},
          children: [],
          content: '0.3.2' },
        { name: 'd:supported-report', attributes: {}, children: [] } ],
     content: '' } }

So I'm wondering if this functionality has been implemented server side or if I'm the one doing something wrong.

Thank you for your help,

Jb

frankrousseau commented 8 years ago

Sorry we have never answered to your issue. Do you still face the problem @JbIPS?

JbIPS commented 8 years ago

Never made it work, so I'm currently filtering after my request. Did you do anything that might fix that?

frankrousseau commented 8 years ago

There were many fixes. So, I don't know if it was fixed. @aenario or @clochix any idea about that?

clochix commented 8 years ago

I just had a quick look at the code of the jsDAV library and time-range seems to be implemented. But the error you get means that this particular REPORT query seems not implemented. Could you have a look at the logs of the Sync application, they probably contains some error message?

JbIPS commented 8 years ago

Sorry I forgot about this issue, it's old now, I'm closing it. Thank you