2010-11-29 13:51:56

by Rafal Michalski

[permalink] [raw]
Subject: [PATCH] Fix problem with fetching 0.vcf vCard entry

Previously after attempting to get single 0.vcf vCard entry from phonebook
("telecom/pb/0.vcf") "Not Found" status was received and this entry wasn't
downloaded. Now "OK" status is received and valid 0.vcf vCard entry is
downloaded.
---
plugins/phonebook-tracker.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index 20053f6..a6b9e72 100644
--- a/plugins/phonebook-tracker.c
+++ b/plugins/phonebook-tracker.c
@@ -943,7 +943,7 @@
"nco:phoneNumber(?t) \"NOTACALL\" \"false\" \"false\" <%s> " \
"WHERE { " \
"<%s> a nco:Contact . " \
- "<%s> nco:hasPhoneNumber ?t . " \
+ "OPTIONAL { <%s> nco:hasPhoneNumber ?t . } " \
"} "

#define CONTACTS_COUNT_QUERY \
--
1.6.3.3



2010-11-29 14:13:54

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] Fix problem with fetching 0.vcf vCard entry

Hi Rafal,

On Mon, Nov 29, 2010, Rafal Michalski wrote:
> Previously after attempting to get single 0.vcf vCard entry from phonebook
> ("telecom/pb/0.vcf") "Not Found" status was received and this entry wasn't
> downloaded. Now "OK" status is received and valid 0.vcf vCard entry is
> downloaded.
> ---
> plugins/phonebook-tracker.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)

Pushed upstream. Thanks.

Johan