From 3c8c625f0902ed888e70fcbfe1897d36d7416478 Mon Sep 17 00:00:00 2001 From: Lukasz Pawlik Date: Wed, 2 Mar 2011 14:25:55 +0100 Subject: [PATCH] obexd: Fix handling owner data in phonebook pull This patch fix handling "empty" phone owner data in phonebook pull via PBAP. Previously owner vCard was always present as a first on list in phonebook pull results even if it was empty. This patch fix this and owner vCard will not be present in pulled phonebook. --- obexd/plugins/phonebook-tracker.c | 1 + 1 file changed, 1 insertion(+) diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c index 2cd10de87..e71ec7be1 100644 --- a/obexd/plugins/phonebook-tracker.c +++ b/obexd/plugins/phonebook-tracker.c @@ -137,6 +137,7 @@ "WHERE {" \ " ?_contact a nco:PersonContact ." \ " OPTIONAL {?_contact nco:hasAffiliation ?_role .}" \ +" FILTER (regex(str(?_contact), \"urn:uuid:\"))" \ "}" \ "ORDER BY tracker:id(?_contact)" -- 2.47.3