Hello Randy, 
"Depth: 1" did the trick and now I'm getting the right response. Thank you!
I've got a follow-up question though, after submitting this different request 
body:
{{{
<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-query xmlns:D="DAV:"
                  xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:prop>
    <D:getetag/>
    <C:calendar-data>
    </C:calendar-data>  
  </D:prop>
  <C:filter>
    <C:comp-filter name="VCALENDAR">
      <C:comp-filter name="VEVENT">
        <C:time-range   start="20080721T000000Z" 
                        end="20080721T190000Z"/>
      </C:comp-filter>
    </C:comp-filter>
  </C:filter>
</C:calendar-query>
}}}

I received an empty answer:
{{{
HTTP/1.1 207 Multi-Estado
Server: Apache-Coyote/1.1
X-Cosmo-Version: 0.16-SNAPSHOT
Set-Cookie: JSESSIONID=B69CFC76A87D0ACB8302EC71F34C4983; Path=/chandler
Content-Type: text/xml;charset=UTF-8
Content-Length: 71
Date: Wed, 16 Jul 2008 15:49:01 GMT

<?xml version="1.0" encoding="UTF-8"?>
<D:multistatus xmlns:D="DAV:"/>
}}}

I believe that's the right response but I have some doubts because CalDAV RFC 
states that if the time interval overlaps the original start and end times of 
an overridden instance, that instance should be returned in the response.
Here's the paragraph (http://tools.ietf.org/html/rfc4791#section-7.6):
{{{
   A CalDAV client that is only interested in the recurrence instances
   that overlap a specified time range can request to receive only the
   "master component", along with the "overridden components" that
   impact the specified time range, and thus, limit the data returned by
   the server (see CALDAV:limit-recurrence-set in Section 9.6.6).  An
   overridden component impacts a time range if its current start and
   end times overlap the time range, or if the original start and end
   times -- the ones that would have been used if the instance were not
   overridden -- overlap the time range, or if it affects other
   instances that overlap the time range.
}}}

What's the rationale behind this?

Thanks in advance.



> -----Mensaje original-----
> De: [EMAIL PROTECTED] [mailto:chandler-dev-
> [EMAIL PROTECTED] En nombre de Randy Letness
> Enviado el: miƩrcoles, 16 de julio de 2008 17:00
> Para: Chandler Project
> Asunto: Re: [Chandler-dev] Problems with calendar-query report.
> 
> Daniel Gomez Brito wrote:
> >
> > Hello,
> >
> > I'm trying to submit a calendar-query report to my local Cosmo
> > 0.16-snapshot installation:
> >
> > {{{
> >
> > curl -i -X REPORT -u user:useruser -H "Depth=1;" -H "Content-Type:
> > application/xml; charset='utf-8'"
> >
> > -d @calendar-query.xml
> > http://localhost:8080/chandler/dav/user/96bf2900-435e-11dd-96a6-
> b6c4808319e5/
> >
> > }}}
> >
> 
> Hi Daniel,
> 
> I'm pretty sure the problem is the "Depth=1", as it should be "Depth:1".
> 
> -Randy
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> 
> Open Source Applications Foundation "chandler-dev" mailing list
> http://lists.osafoundation.org/mailman/listinfo/chandler-dev

______________________
Este mensaje, y en su caso, cualquier fichero anexo al mismo,
 puede contener informacion clasificada por su emisor como confidencial
 en el marco de su Sistema de Gestion de Seguridad de la 
Informacion siendo para uso exclusivo del destinatario, quedando 
prohibida su divulgacion copia o distribucion a terceros sin la 
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje 
 erroneamente, se ruega lo notifique al remitente y proceda a su borrado. 
Gracias por su colaboracion.
______________________
This message including any attachments may contain confidential 
information, according to our Information Security Management System,
 and intended solely for a specific individual to whom they are addressed.
 Any unauthorised copy, disclosure or distribution of this message
 is strictly forbidden. If you have received this transmission in error,
 please notify the sender immediately and delete it.
______________________
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev

Reply via email to