summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2013-12-04 13:50:37 +0100
committerPatrick Ohly <patrick.ohly@intel.com>2013-12-04 13:53:08 +0100
commit607b41723c0d3d0191c882879bcda8a2bebad34f (patch)
treec403a4940a64496776c93f9956991ff765d4e44a
parentdc05bf78ced48a142e4dc675d0dc067194e7235e (diff)
PBAP: document known issue with obexd < 0.47
PullAll only worked once. Not sure why, but at least document the issue in the source as comment.
-rw-r--r--src/backends/pbap/PbapSyncSource.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backends/pbap/PbapSyncSource.cpp b/src/backends/pbap/PbapSyncSource.cpp
index 8575adbf..3fa6280b 100644
--- a/src/backends/pbap/PbapSyncSource.cpp
+++ b/src/backends/pbap/PbapSyncSource.cpp
@@ -567,6 +567,13 @@ boost::shared_ptr<PullAll> PbapSession::startPullAll(PullData pullData)
state->m_session = m_self.lock();
} else {
// < 0.47
+ //
+ // This only works once. Incremental syncing with the same
+ // session leads to a "PullAll method with no arguments not
+ // found" error from obex-client. Looks like a bug/limitation
+ // of obex-client < 0.47. Not sure what we should do about
+ // this: disable incremental sync for old obex-client? Reject
+ // it? Catch the error and add a better exlanation?
GDBusCXX::DBusClientCall1<std::string> pullall(*m_session, "PullAll");
state->m_buffer = pullall();
state->addVCards(0, state->m_buffer);