Comment 5 for bug 1023965

Revision history for this message
Patrick Ohly (patrick-ohly) wrote :

I've fixed this in SyncEvolution 1.2.99.2.

commit 3d299422f929a647d33b5dec91d53d77c369bcb6
Author: Patrick Ohly <email address hidden>
Date: Fri Jun 29 08:41:31 2012 +0200

    WebDAV: --status for WebDAV source aborted

    The command line --status operation did not complete when applied to a
    CalDAV/CardDAV source. Instead it aborted because the operation took a
    code path where the backend was not fully initialized.

diff --git a/src/backends/webdav/WebDAVSource.cpp b/src/backends/webdav/WebDAVSource.cpp
index 5f74bbc..9e0ed40 100644
--- a/src/backends/webdav/WebDAVSource.cpp
+++ b/src/backends/webdav/WebDAVSource.cpp
@@ -1227,6 +1227,8 @@ std::string WebDAVSource::databaseRevision()
         return "";
     }

+ contactServer();
+
     Timespec deadline = createDeadline();
     Neon::Session::PropfindPropCallback_t callback =
         boost::bind(&WebDAVSource::openPropCallback,