Re: [Evolution] Connecting to Carddav Server fails




Can you browse either collection with Nautilus?

Yes, I can access both caldav and carddav with Nautilus ; URLS:

- ownCloud
caldav:
dav://server/apps/calendar/caldav.php

carddav:
dav://server/apps/contacts/carddav.php

- Mac Server:
davs://server:port

(Yep, "davs" was also new to me...)

Stop evolution, and stop the e-addressbook-factory process.
Start the e-addressbook-factory in a terminal with -
CALDAV_DEBUG=all /usr/lib/evolution-data-server/e-addressbook-factory

I used
WEBDAV_DEBUG=all /usr/lib/evolution/e-addressbook-factory

Start evolution
Attempt to connect to the address book.

What happens in the terminal window?

Here are the results:

- ownCloud:

http://server/apps/contacts/carddav.php:
----------------------------------------

PROPFIND /apps/contacts/carddav.php/ HTTP/1.1
Soup-Debug-Timestamp: 1329750903
Soup-Debug: SoupSessionSync 1 (0x219daa90), SoupMessage 1 (0x219d9020), SoupSocket 1 (0x219f3800)
Host: serverurl
User-Agent: Evolution/3.2.2
Connection: close
Depth: 1
Content-Type: text/xml

<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><getetag/></prop></propfind>
  
HTTP/1.1 401 Unauthorized
Soup-Debug-Timestamp: 1329750904
Soup-Debug: SoupMessage 1 (0x219d9020)
Date: Mon, 20 Feb 2012 15:13:23 GMT
Server: Apache/2.2.16 (Debian)
X-Powered-By: PHP/5.3.3-7+squeeze8
Set-Cookie: PHPSESSID=tj0n7knjugaopfl7q1l2lhu606; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
WWW-Authenticate: Basic realm="ownCloud"
Content-Length: 291
Content-Type: application/xml; charset=utf-8
Connection: close

<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns";>
  <s:exception>Sabre_DAV_Exception_NotAuthenticated</s:exception>
  <s:message>No basic authentication headers were found</s:message>
  <s:sabredav-version>1.5.4</s:sabredav-version>
</d:error>
  
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>
  
HTTP/1.1 207 Unknown
Soup-Debug-Timestamp: 1329750904
Soup-Debug: SoupMessage 1 (0x219d9020)
Date: Mon, 20 Feb 2012 15:13:23 GMT
Server: Apache/2.2.16 (Debian)
X-Powered-By: PHP/5.3.3-7+squeeze8
Set-Cookie: PHPSESSID=agoaa46hlm029uhfbffpgm3da2; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
DAV: 1, 3, extended-mkcol, addressbook, access-control
Content-Length: 703
Content-Type: application/xml; charset=utf-8
Connection: close

<?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>
  
PROPFIND /apps/contacts/carddav.php/ HTTP/1.1
Soup-Debug-Timestamp: 1329750904
Soup-Debug: SoupSessionSync 1 (0x219daa90), SoupMessage 2 (0x219d9658), SoupSocket 3 (0x219f3ea8)
Host: serverurl
User-Agent: Evolution/3.2.2
Connection: close
Depth: 0
Content-Type: text/xml
Authorization: Basic [user:***************]

<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><getctag/></prop></propfind>
  
HTTP/1.1 207 Unknown
Soup-Debug-Timestamp: 1329750904
Soup-Debug: SoupMessage 2 (0x219d9658)
Date: Mon, 20 Feb 2012 15:13:23 GMT
Server: Apache/2.2.16 (Debian)
X-Powered-By: PHP/5.3.3-7+squeeze8
Set-Cookie: PHPSESSID=6oek81b5g5l35tv78n6o2tfjh1; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
DAV: 1, 3, extended-mkcol, addressbook, access-control
Content-Length: 335
Content-Type: application/xml; charset=utf-8
Connection: close

<?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>
  
PROPFIND /apps/contacts/carddav.php/ HTTP/1.1
Soup-Debug-Timestamp: 1329750904
Soup-Debug: SoupSessionSync 1 (0x219daa90), SoupMessage 3 (0x219d96d0), SoupSocket 4 (0x219f3f08)
Host: serverurl
User-Agent: Evolution/3.2.2
Connection: close
Depth: 1
Content-Type: text/xml
Authorization: Basic [user:***************]

<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><getetag/></prop></propfind>
  
HTTP/1.1 207 Unknown
Soup-Debug-Timestamp: 1329750905
Soup-Debug: SoupMessage 3 (0x219d96d0)
Date: Mon, 20 Feb 2012 15:13:24 GMT
Server: Apache/2.2.16 (Debian)
X-Powered-By: PHP/5.3.3-7+squeeze8
Set-Cookie: PHPSESSID=kcu3n8v7ild9084vugtmtuagb7; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
DAV: 1, 3, extended-mkcol, addressbook, access-control
Content-Length: 703
Content-Type: application/xml; charset=utf-8
Connection: close

<?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>



http://server/apps/contacts/carddav.php/addressbooks/user/:
-------------------------------------------------------------------

PROPFIND /apps/contacts/carddav.php/addressbooks/user/ HTTP/1.1
Soup-Debug-Timestamp: 1329751327
Soup-Debug: SoupSessionSync 1 (0x219daaf8), SoupMessage 4 (0x219d9188), SoupSocket 5 (0x219f3980)
Host: serverurl
User-Agent: Evolution/3.2.2
Connection: close
Depth: 1
Content-Type: text/xml
Authorization: Basic [user:***************]

<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><getetag/></prop></propfind>
  
HTTP/1.1 207 Unknown
Soup-Debug-Timestamp: 1329751328
Soup-Debug: SoupMessage 4 (0x219d9188)
Date: Mon, 20 Feb 2012 15:20:27 GMT
Server: Apache/2.2.16 (Debian)
X-Powered-By: PHP/5.3.3-7+squeeze8
Set-Cookie: PHPSESSID=3mguj5do7iebbhongvde3ari31; path=/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
DAV: 1, 3, extended-mkcol, addressbook, access-control
Content-Length: 567
Content-Type: application/xml; charset=utf-8
Connection: close

<?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/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>


- Mac Server
http://server:port/:
----------------------------------PROPFIND / HTTP/1.1
Soup-Debug-Timestamp: 1329751595
Soup-Debug: SoupSessionSync 1 (0x219dab60), SoupMessage 1 (0x219d9200), SoupSocket 1 (0x219f39e0)
Host: serverurl:8843
User-Agent: Evolution/3.2.2
Connection: close
Depth: 1
Content-Type: text/xml

<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><getetag/></prop></propfind>
  
PROPFIND / HTTP/1.1
Soup-Debug-Timestamp: 1329751595
Soup-Debug: SoupSessionSync 1 (0x219dab60), SoupMessage 2 (0x219d9748), SoupSocket 2 (0x219f3f68)
Host: serverurl:8843
User-Agent: Evolution/3.2.2
Connection: close
Depth: 0
Content-Type: text/xml

<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><getctag/></prop></propfind>
  
PROPFIND / HTTP/1.1
Soup-Debug-Timestamp: 1329751595
Soup-Debug: SoupSessionSync 1 (0x219dab60), SoupMessage 3 (0x219d9658), SoupSocket 3 (0x219f3ea8)
Host: serverurl:8843
User-Agent: Evolution/3.2.2
Connection: close
Depth: 1
Content-Type: text/xml

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



If you connection isn't SSL/TLS you can also capture if via wireshark
and do a follow-conversation to see the client/server exhange.


Unfortunately, not possible at the moment :(

I hope this helps to find the cause.

Greets,
Dennis
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de



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