Can't star contact and no Speed Dial



  • DAVdroid
    Motorola Moto G running Android 4.4.4
    ownCloud 6.0.4, hosted on openmailbox.org

    I can't mark any contact as favorite. Pressing the star does nothing.

    Also, no matter how many times I call a number, it does not appear in speed dial.

    Things worked great before I split my contacts and erase them from Google account.


  • developer

    Since my magic crystall ball is out of service I don't know what the problem could be. Did you search the Internet for the problem? Does it work with other (DAV) sync clients? Can you please provide DAVdroid logs?



  • Log: https://gist.github.com/edgardiniz/1d1ef8e5785ee16824d6

    I searched the Internet and found nothing. I didn't try other sync clients.

    A hint for your "out-of-service magic-crystal-ball": search for "starred". You will find the following:

    E/ContentValues(28868): Cannot cast value for starred to a Integer: false
    E/ContentValues(28868): java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.Number
    E/ContentValues(28868): 	at android.content.ContentValues.getAsInteger(ContentValues.java:288)
    E/ContentValues(28868): 	at com.android.providers.contacts.ContactsProvider2.flagExists(ContactsProvider2.java:1999)
    E/ContentValues(28868): 	at com.android.providers.contacts.ContactsProvider2.updateRawContact(ContactsProvider2.java:4405)
    E/ContentValues(28868): 	at com.android.providers.contacts.ContactsProvider2.updateRawContacts(ContactsProvider2.java:4319)
    E/ContentValues(28868): 	at com.android.providers.contacts.ContactsProvider2.updateInTransaction(ContactsProvider2.java:3972)
    E/ContentValues(28868): 	at com.android.providers.contacts.AbstractContactsProvider.update(AbstractContactsProvider.java:166)
    E/ContentValues(28868): 	at com.android.providers.contacts.ContactsProvider2.update(ContactsProvider2.java:2116)
    E/ContentValues(28868): 	at android.content.ContentProviderOperation.apply(ContentProviderOperation.java:225)
    E/ContentValues(28868): 	at com.android.providers.contacts.AbstractContactsProvider.applyBatch(AbstractContactsProvider.java:237)
    E/ContentValues(28868): 	at com.android.providers.contacts.ContactsProvider2.applyBatch(ContactsProvider2.java:2228)
    E/ContentValues(28868): 	at android.content.ContentProvider$Transport.applyBatch(ContentProvider.java:260)
    E/ContentValues(28868): 	at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:185)
    E/ContentValues(28868): 	at android.os.Binder.execTransact(Binder.java:404)
    E/ContentValues(28868): 	at dalvik.system.NativeStart.run(Native Method)
    

    Hope this helps your "out-of-service magic-crystal-ball". Perhaps having such an esoteric device, which does not work, is harmful for you. You should get rid of it.



  • While gathering the log, I noticed that I could actually star some contacts. Perhaps there is a "magic crystal ball" inside DAVdroid that tries to guess which contacts are my favorite. Unfortunately, it must be "out of service", because none of them are actually my favorite contacts.


    Sorry for this kind of message, I just found your first comment (concerning the crystal ball) a lack of respect, specially for a paying user.


  • developer

    E/ContentValues(28868): Cannot cast value for starred to a Integer: false E/ContentValues(28868): java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.Number

    It seems that the "1" value in "X-DAVDROID-STARRED: 1" couldn't be casted into an Integer. When looking at the logs, there are some contacts with "X-DAVDROID-STARRED:1[\r][\n]" which seems fine and some have a "&#13" in it. Can you confirm that the contacts with "&#13" are the ones which don't work?

    Sorry for this kind of message, I just found your first comment (concerning the crystal ball) a lack of respect, specially for a paying user.

    I'm sorry, but please understand that there are many unqualified bug reports and I spend much of my time finding out what users/servers made wrong, and in most cases they would have found out themselves when they just had tried. Nothing personal, thanks for your report.



  • As it seems, no contact could be starred, with or without the "&#13" I don't know where it comes from... check the log lines ahead.

    But the problem comes before synchronizing. When I hit the star in my phone, nothing happens. I could only star contacts associated with other accounts (notably WhatsApp, or even CardDAV Sync free beta, which I installed later).

    I tried the following scenarios:

    Firstly, I starred three contacts using ownCloud Contacts web. Then I syncronized, but nothing came from the server, the contacts didn't appear in the log. I see lots of "http-outgoing-0", but no "incoming" counterpart, if there should be one...

    Secondly I starred a fourth contact in my phone (the contact is associated to both DAVdroid and CardDAV Sync, so I could mark it). Then I syncronized DAVdroid. I got this:

    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> "X-DAVDROID-STARRED:1[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> "FN:*****************[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> "N:****;*********;**;;[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> "TEL;TYPE=home:*************[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> "TEL;TYPE=x-tim:**************[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> "TEL;TYPE=x-claro:**************[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> "EMAIL;TYPE=work:******************************[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> "ADR;TYPE=work:;;***********************************************************[********************************[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> " ************[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> "LABEL;TYPE=work:*********************************************************************************[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> "*********************[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> "URL:*********************************[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> "PRODID:DAVdroid/0.5.14-alpha (ez-vcard/0.9.3)[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> "REV:20140708T233716Z[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 >> "END:VCARD[\r][\n]"
    

    And then this:

    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "X-DAVDROID-STARRED:1&#13;[\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "FN:*****************&#13;[\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "N:****;*********;**;;&#13;[\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "TEL;TYPE=home:*************&#13;[\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "TEL;TYPE=x-tim:**************&#13;[\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "TEL;TYPE=x-claro:**************&#13;[\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "EMAIL;TYPE=work:******************************&#13;[\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "ADR;TYPE=work:;;************************************************* ***************************************&#13;[\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "****************&#13;[\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "LABEL;TYPE=work:*******************************************************************************&#13;[\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "***********************&#13;[\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "URL:*********************************&#13;[\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "PRODID:DAVdroid/0.5.14-alpha (ez-vcard/0.9.3)&#13;[\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "REV:2014-07-08T23:37:17+00:00&#13;[\n]"
    D/ch.boye.httpclientandroidlib.wire(32422): http-outgoing-0 << "END:VCARD&#13;[\n]"
    

    followed by the exception caught as in the previous log.

    That means, the same information, but each [\r] in the first block was replaced by the

    In the end, neither the information came from the server, nor were they sent from the phone.

    As a final test: I created a contact using the web interface, and set it to favorite. I got this in the log:

    D/ch.boye.httpclientandroidlib.wire( 5233): http-outgoing-1 << "BEGIN:VCARD[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 5233): http-outgoing-1 << "VERSION:3.0[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 5233): http-outgoing-1 << "N:teste;Contato;de;;[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 5233): http-outgoing-1 << "UID:20140709T001044.54c8388d82@cloud.openmailbox.org[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 5233): http-outgoing-1 << "REV:2014-07-09T00:10:45+00:00[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 5233): http-outgoing-1 << "FN:Contato de teste[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 5233): http-outgoing-1 << "PRODID:-//ownCloud//NONSGML Contacts 0.3//EN[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 5233): http-outgoing-1 << "END:VCARD[\r][\n]"
    

    No star information came from server. The contact appeared in my phone, but since it new only to DAVdroid (the CardDAV Sync free beta still doesn't know about it) I couldn't star it in the phone.

    Looks like ownCloud has synchronization problems. The other cliend failed too...

    I don't know what else to do... if you need any more info or test, please let me know.

    Thank you for the attention and patience.


  • developer

    Looks like ownCloud has synchronization problems. The other cliend failed too...

    I guess it's a problem with OwnCloud and \r. DAVdroid expects the value of X-DAVDROID-STARRED to be a String representation of an Integer, but "1[\r]" can't be casted to an Integer (because of the \r).

    Can you try another service for testing purposes, maybe eGroupware? You can find the demo user name and password here: http://davdroid.bitfire.at/configuration

    As a final test: I created a contact using the web interface, and set it to favorite.

    I wasn't aware that OwnCloud has a favourite feature. DAVdroid uses X-DAVDROID-STARRED. If there's an OwnCloud property – or even better, a property commonly used by other groupware, too – that would be interesting. However, in your last VCard, I can't see a "favourite" property.



  • Yeah, but it looks rather internal. There is a star on the top right corner of the contact picture. I tried exporting my contacts and that's what I got for my test contact:

    BEGIN:VCARD
    VERSION:3.0
    N:teste;Contato;de;;
    UID:20140709T001044.54c8388d82@cloud.openmailbox.org
    REV:2014-07-09T00:10:45+00:00
    FN:Contato de teste
    PRODID:-//ownCloud//NONSGML Contacts 0.3//EN
    END:VCARD
    

    That is, no star nor favorite information.

    I tried also using eGroupware with demo user, as suggested, and I believe things worked:

    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 >> "BEGIN:VCARD[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 >> "VERSION:3.0[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 >> "UID:a0cb1120-5de8-4b69-8410-6977cc8af0d1[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 >> "X-DAVDROID-STARRED:1[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 >> "FN:Test Contact[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 >> "N:Contact;Test;;;[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 >> "TEL;TYPE=home:2345678[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 >> "PRODID:DAVdroid/0.5.14-alpha (ez-vcard/0.9.3)[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 >> "REV:20140709T132414Z[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 >> "END:VCARD[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 << "HTTP/1.1 204 No Content[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 << "X-Powered-By: PHP/5.5.12[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 << "Expires: Thu, 19 Nov 1981 08:52:00 GMT[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 << "Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 << "Pragma: no-cache[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 << "X-Dav-Powered-By: EGroupware 1.9.013 CalDAV/CardDAV/GroupDAV server[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 << "ETag: "154:1"[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 << "X-WebDAV-Status: 204 No Content[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 << "Content-type: text/html[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 << "Date: Wed, 09 Jul 2014 13:24:15 GMT[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 << "Server: lighttpd/1.4.35[\r][\n]"
    D/ch.boye.httpclientandroidlib.wire( 8864): http-outgoing-0 << "[\r][\n]"
    D/davdroid.LocalCollection( 8864): Setting ETag of local resource Contact(super=Resource(name=a0cb1120-5de8-4b69-8410-6977cc8af0d1.vcf, ETag="154:0", uid=a0cb1120-5de8-4b69-8410-6977cc8af0d1, localID=1954), unknownProperties=null, starred=true, displayName=Test Contact, nickName=null, prefix=null, givenName=Test, middleName=null, familyName=Contact, suffix=null, phoneticGivenName=null, phoneticMiddleName=null, phoneticFamilyName=null, note=null, organization=null, jobTitle=null, jobDescription=null, photo=null, anniversary=null, birthDay=null, phoneNumbers=[ezvcard.property.Telephone@4205bec0], emails=[], impps=[], addresses=[], URLs=[]) to "154:1"
    D/davdroid.LocalCollection( 8864): Committing 1 operations
    

    Full log here: https://gist.github.com/edgardiniz/a6406a77ba6c5c50f57a

    I see that there is also a demo user for ownCloud, I'll check it out ASAP.


  • developer

    I see that there is also a demo user for ownCloud, I'll check it out ASAP.

    Ok. Maybe you can also try to create a new, empty account on your OwnCloud instance.


  • developer

    Any news on this?


Log in to reply
 

Looks like your connection to Bitfire App Forums was lost, please wait while we try to reconnect.