Re: [Evolution] Connecting to Carddav Server fails



On Mon, 2012-02-20 at 16:32 +0100, DennisMail gmx net wrote:
Can you browse either collection with Nautilus?
Yes, can access both caldav and carddav with Nautilus ; URLS:
Here are the results:
PROPFIND /apps/contacts/carddav.php/ HTTP/1.1
Soup-Debug-Timestamp: 1329750904
Soup-Debug: SoupSessionSync 1 (0x219daa90), SoupMessage 1 (0x219d9020), SoupSocket 2 (0x219f3860), restarted
Host: serverurl
User-Agent: Evolution/3.2.2
Connection: close
Depth: 1
Content-Type: text/xml
Content-Length: 95
Authorization: Basic [user:***************]
<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><getetag/></prop></propfind>

A request for the getetag property of every item in the collection.

HTTP/1.1 207 Unknown
<?xml version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"; 
xmlns:card="urn:ietf:params:xml:ns:carddav">
<d:response> 
  <d:href>/apps/contacts/carddav.php/</d:href>
  <d:propstat>
    <d:prop><d:getetag/></d:prop>
    <d:status>HTTP/1.1 404 Not Found</d:status>
  </d:propstat>
</d:response>

Since collections don't have getetag properties this makes sense (they
have ctags, if you are luckly).
  
PROPFIND /apps/contacts/carddav.php/ HTTP/1.1
<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><getctag/></prop></propfind>

Yep, there we go.

HTTP/1.1 207 Unknown
<?xml version="1.0" encoding="utf-8"?>
  <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns";
xmlns:card="urn:ietf:params:xml:ns:carddav">
 <d:response>
 <d:href>/apps/contacts/carddav.php/</d:href>
 <d:propstat><d:prop><d:getctag/></d:prop>
 <d:status>HTTP/1.1 404 Not Found</d:status>
 </d:propstat></d:response>
 </d:multistatus>

Yuck, that sucks.  Those collections should be able to provide ctags.

PROPFIND /apps/contacts/carddav.php/ HTTP/1.1
<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><getetag/></prop></propfind> 
HTTP/1.1 207 Unknown
<?xml version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"; 
xmlns:card="urn:ietf:params:xml:ns:carddav"><d:response><d:href>/apps/contacts/carddav.php/</d:href><d:propstat><d:prop><d:getetag/></d:prop><d:status>HTTP/1.1
 404 Not 
Found</d:status></d:propstat></d:response><d:response><d:href>/apps/contacts/carddav.php/principals/</d:href><d:propstat><d:prop><d:getetag/></d:prop><d:status>HTTP/1.1
 404 Not 
Found</d:status></d:propstat></d:response><d:response><d:href>/apps/contacts/carddav.php/addressbooks/</d:href><d:propstat><d:prop><d:getetag/></d:prop><d:status>HTTP/1.1
 404 Not Found</d:status></d:propstat></d:response></d:multistatus>

... yea, we already did this.

PROPFIND /apps/contacts/carddav.php/addressbooks/user/ HTTP/1.1

Cool, now it is looking somewhere that sounds interesting.  But
apparently this URL just contains additional collections?

<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><getetag/></prop></propfind>

Looking for etags on collections again, it won't find any.

HTTP/1.1 207 Unknown
<?xml version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV:" 
<d:response><d:href>/apps/contacts/carddav.php/addressbooks/user/</d:href><d:propstat><d:prop><d:getetag/></d:prop><d:status>HTTP/1.1
 404 Not 
Found</d:status></d:propstat></d:response><d:response><d:href>/apps/contacts/carddav.php/addressbooks/user/default/</d:href><d:propstat><d:prop><d:getetag/></d:prop><d:status>HTTP/1.1
 404 Not Found</d:status></d:propstat></d:response></d:multistatus>

And it didn't.

.... Are you sure you actually have it configured to look at a
collection of contacts?  In Nautilus in what collection [URL] do you
actually see VCF/vCard objects?

-- 
System & Network Administrator [ LPI & NCLA ]
<http://www.whitemiceconsulting.com>
OpenGroupware Developer <http://www.opengroupware.us>
Adam Tauno Williams




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]