[Kde-pim] Address Query with ContactSearchJob in KDE 4.13.0

Kevin Krammer krammer at kde.org
Thu May 1 16:47:47 BST 2014


On Monday, 2014-04-28, 09:17:19, Daniel Vrátil wrote:
> On Saturday 26 of April 2014 13:44:03 Klaas Freitag wrote:
> > Hi,
> > 
> > as you might know my project Kraft [1] integrates with the KDE
> > addressbook tightly, which is a highly appreciated feature by the users
> > of Kraft.
> > 
> > Kraft uses the Akonadi::ContactSearchJob to query the addressbooks by UID.
> > 
> > Today I updated to KDE 4.13.0 and found that the query is not longer
> > working, the search result list is always empty. We had that in the
> > past, but often it helped to switch on the Nepomuk Indexing on PIM data.
> > Now that we do not use Nepomuk any more I wonder how that works now.
> > 
> > Here is a little test program called findcontact which can be used to
> > query for a contact:
> > https://projects.kde.org/projects/playground/office/kraft/repository/revis
> > io ns/aed27bf3a54eec46d8ac330df95b579439c48151/entry/tools/findcontact.cpp
> > 
> > and this is what I see in the akonadiconsole debugger when query for an
> > existing address via UID:
> > 
> > ===>
> > 0x12f3980 * OK Akonadi Almost IMAP Server [PROTOCOL 37]
> > 0x13bc1d0 * OK Akonadi Almost IMAP Server [PROTOCOL 37]
> > 0x12f3980 0 LOGIN "-924859463"
> > -924859463 (0x12f3980) 0 OK User logged in
> > 0x13bc1d0 0 LOGIN "-924859463-SearchSession"
> > -924859463-SearchSession (0x13bc1d0) 0 OK User logged in
> > -924859463 (0x12f3980) 1 CAPABILITY (NOTIFY 3 NOPAYLOADPATH
> > AKAPPENDSTREAMING SERVERSEARCH)
> > -924859463 (0x12f3980) 1 OK CAPABILITY completed
> > -924859463-SearchSession (0x13bc1d0) 1 CAPABILITY (NOTIFY 3
> > NOPAYLOADPATH AKAPPENDSTREAMING SERVERSEARCH)
> > -924859463-SearchSession (0x13bc1d0) 1 OK CAPABILITY completed
> > -924859463-SearchSession (0x13bc1d0) 2 SEARCH MIMETYPE (text/directory)
> > QUERY "{ \"limit\" : 1, \"negated\" : false, \"rel\" : 1, \"subTerms\" :
> > [ { \"cond\" : 0, \"key\" : \"uid\", \"negated\" : false, \"value\" :
> > \"Kp9LZPRW8P\" } ] }" FULLPAYLOAD EXTERNALPAYLOAD (UID COLLECTIONID
> > FLAGS SIZE REMOTEID REMOTEREVISION DATETIME)
> > -924859463-SearchSession (0x13bc1d0) 2 OK Search done
> > <===
> > 
> > I swear that a contact with UID Kp9LZPRW8P exists in a local addressbook
> > ;-)
> Hi,
> 
> Baloo does not index contact UID, so you won't get any matches :-)

But doesn't that break ContactSearchoJob?
Will this be fixed or do we intentionally break all applications that have 
been ported from the KABC addressbook interface?

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20140501/d9439c60/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list