[OGo-Users] URLs Accessible from ZideStore

Adam Tauno Williams users@opengroupware.org
Fri, 04 Apr 2008 08:45:03 -0400


> I have obtained tasks, contacts and the calendar via webDAV. Thanks
> But the xml of this files doesn't have the data that I need, a
> appointment has last modified date but the tasks and contacts not. How
> can I access to this data?

As an aside: it is *MUCH* more stable and safe to sync based off object
version rather than any time stamp.  Time stamp based syncing is a bit
of a kludge.

Contacts and Enterprises do not have a last modified time stamp.  The
best you could do there, if you need a time stamp, is to check the
objects audit logs.  But audit logs are not presented via WebDAV.  [You
can get an objects audit entries via a zOGI XML-RPC call using a detail
level of 32.]

For tasks the davLastModified property might work.  Tasks via WebDAV are
rather odd;  they are both less supported [no write support] and offer
more DAVish features - the task properties are mapped to WebDAV
properties.  This is documented in the ZideStore chapter of WMOGAG in
the ZideStore URLs / Folder Hierarchy / Properties section.   Another
caveat is that until a task is modified the last modified time stamp is
null,  so a new [or never updated] task has an undefined last modified
time stamp.

>         I use Windows, Could you recommend me a WebDAV client for
>         Windows? I am going to test with Webdrive.
>         I am a bit of confused. I obtain an ics file when I put an url
>         (http://myserver:myport/zidestroe/dav/myuser/Calendar/ics) in
>         the browser. Can I obtain only appointments of this way? Can I
>         obtain tasks and contacts with a url also, or only with a
>         client?
>         Thanks,
>         2008/4/2, Adam Tauno Williams <adam@morrison-ind.com>: 
>                 > I can access to the appointments only with :
>                 >
>                 http://myserver:myport/zidestroe/dav/myuser/Calendar/ics and
>                 >
>                 http://myserver:myport/zidestroe/so/myuser/Calendar/ics
>                 Those are iCalendar URLs.  The container URL just
>                 "/dav/myuser/Calendar/" is a collection and not
>                 visible with a web
>                 browser, you need to explore it with a WebDAV client
>                 like cadaver.
>                 This, and the available URLs, are documented in
>                 WMOGAG,
>                 http://docs.opengroupware.org/Members/whitemice/wmogag/file_view
>                 > but I don't access to the contacts and tasks:
>                 > http://myserver:myport/zidestroe/so/myuser/Contacts/
>                 -->File Not Found
>                 > http://myserver/zidestore/so/myuser/Tasks/ -->It
>                 isn't appear

>                 > anything.
>                 You need to use a WebDAV client [like cadaver] or send
>                 a propfind
>                 request.  For the details see the GroupDAV spec
>                 <http://www.groupdav.org/draft-hess-groupdav-01.html>
>                 
>                 You can even do it with curl -
>                 curl -d "<xml>" -H "Content-Type: text/xml" -u
>                 adam:******* \
>                   -X
>                 PROPFIND  http://gourd-amber/zidestore/dav/adam/Contacts/
>                 
>                 You'll get a response like -
>                 <?xml version="1.0" encoding="utf-8"?>
>                 <D:multistatus xmlns:ap="http://apache.org/dav/props/"
>                 xmlns:D="DAV:">
>                   <D:response>
>                     <D:href>/zidestore/dav/adam/Contacts/830020.vcf?sn=Williams</D:href>
>                     <D:propstat>
>                         <D:status>HTTP/1.1 200 OK</D:status>
>                         <D:prop>
>                            <D:getetag>830020:47</D:getetag>
>                            <D:resourcetype></D:resourcetype>
>                            <D:getcontenttype>
>                              text/x-vcard; charset='utf-8'
>                             </D:getcontenttype>
>                            <D:displayname>Williams,
>                 Michelle</D:displayname>
>                            <D:href>
>                              /zidestore/dav/adam/Contacts/830020.vcf?sn=Williams
>                             </D:href>
>                          </D:prop>
>                      </D:propstat>
>                      <D:propstat>
>                        <D:status>HTTP/1.1 404 Resource Not
>                 Found</D:status>
>                        <D:prop>
>                          <D:creationdate/>
>                          <D:getcontentlength/>
>                          <D:getlastmodified/>
>                          <ap:executable/>
>                         </D:prop>
>                       </D:propstat>
>                    </D:response>
>                   <D:response>
>                 
>                 I suspect the second propstat is a bug as it looks to
>                 always be a 404
>                 and never contain any information.  Could be wrong as
>                 I haven't looked
>                 at GroupDAV or the spec in awhile.
>                 
>                 Then loop through the data and request the object -
>                 curl -u adam:***** \
>                   http://gourd-amber/zidestore/dav/adam/Contacts/830020.vcf
>                 
>                 
>                 > -How can I Know the directory of the contacts and
>                 tasks?
>                 
>                 
>                 These are documented in WMOGAG
>                 http://docs.opengroupware.org/Members/whitemice/wmogag/file_view
>                 
>                 
>                 > -Appointments are ics files, the contacts? and
>                 tasks?
>                 
>                 
>                 They are available as vCard, vEvents, etc... but you
>                 need to enumerate
>                 the collection and retrieve them (WebDAV).
>                 
>                 
>                 
>                 --
>                 OpenGroupware.org Users
>                 users@opengroupware.org
>                 http://mail.opengroupware.org/mailman/listinfo/users
>                 
>         
>