Ask / Submit
4

CardDAV 'full-sync' not only new contacts /+ DisplayName Problem .

asked 2016-01-07 13:07:05 +0200

karloff gravatar image

Hey there,

i've a radicale server for webdav syncing - it works good.
My problem is, my jolla send only changes (new contacts) to the server,
but i want to send(sync) all my contacts from my phone to server.
(importing from server to jolly works)

Is there a workaround or fix for this ?
in past I've the same problem with owncloud sync

of curse i can fix the problem by using third programs, but i want to do it with my jolla

A nother Problem in my opinion is that the jolla dont set a display name (FN attribute -see below)

BEGIN:VCARD
VERSION:3.0
N:Jolla;Synctest;;;
X-GENDER:Unspecified
REV:2016-01-07T10:53:24Z
TEL:1234567890
UID:418fdba2429f4a65a3c093434989db51
X-RADICALE-NAME:418fdba2429f4a65a3c093434989db51.vcf
END:VCARD

BEGIN:VCARD
VERSION:3.0
PRODID:-//Inverse inc.//SOGo Connector 1.0//EN
UID:8f7f4f75-d716-451b-9358-45069be7ca6d
N:;Anskar
FN:Anskar
TEL;TYPE=cell:+4900000000
X-MOZILLA-HTML:FALSE
REV:2016-01-05T10:57:02+00:00
X-GENDER:Unspecified
X-RADICALE-NAME:d5b47925-1319-4f39-a529-9c14d2532d59.vcf
END:VCARD

edit retag flag offensive close delete

Comments

I got a working sync to the cardDAV of my mail provider. But I'm also annoyed by the deleting of the FN attribute. The contact app seems not reading it and syncs the vcard back without it.

Tab ( 2016-02-01 23:27:28 +0200 )edit

After testing owncloud and carddav on Jolla, I figured out the same: only new contacts on the phone are copied to OC (8.2) server. I'd like to find a way to also save my old contacts to OC.

arno784 ( 2016-02-02 16:46:31 +0200 )edit

I hadn't seen this and reported a very similar issue (but with new contacts only): https://together.jolla.com/question/130461/contacts-generates-invalid-contacts/

WhyNotHugo ( 2016-02-26 04:32:38 +0200 )edit
1

Can you confirm that Sailfish explicitly deletes FN attributes for existing contacts? If so, it's a violation of the vCard spec (it's a mandatory attribute), that turns valid files into garbage (most other clients fail to parse them, or crash). The constant data loss (valid contacts -> invalid files) is way beyond acceptable and should be addressed with the highest priority.

WhyNotHugo ( 2016-02-26 04:35:36 +0200 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2016-01-07 13:28:23 +0200

cocovina gravatar image

Due some disappointments/incompatibility of ownCloud or Synology CardDAV servers I have installed the Baïkal Lightweight CalDAV+CardDAV. Works good. Syncs between Jolla - Thunderbird and other Android phone.

edit flag offensive delete publish link more

Comments

Thank you for your suggestion. but I change from owncloud to radicale because i dropped php support from my server. another php application cant be the answer.

And I think it don't solve the problem with sync all contacts from jolla the server.
My jolla don't try to sync contacts there only on phone* (nginx log, radicale log)
*It works only with new created contacts, there will be synced to server, maybe it only sync contacts there are created after I setup the sync.
If I change some details of a contact, the changes will not submit to server.

If I try with Thunderbird it works out of the box, I can sync in any direction.
So I think the problem is the jolla phone, because of this I tagged bug to this.

karloff ( 2016-01-07 15:12:25 +0200 )edit

A-ha. That is strange "My jolla don't try to sync contacts there only on phone" mine sends the changes to the server normally. Try check the log. [root@Jolla nemo]# journalctl -a -f | grep carddav

cocovina ( 2016-01-07 17:02:43 +0200 )edit

Ah thanks for that
but i'm not find a apparent error, if I sync my log output looks like that:
http://pastebin.com/9JjregsK

only this I found, but it is critical?
error: QDBusError("org.freedesktop.DBus.Error.FileNotFound", "Failed to connect to socket /run/user/100000/signond/socket

can you post a log of your sync, maybe it can help to find out what's going wrong here?

karloff ( 2016-01-07 18:00:37 +0200 )edit

ok, sending log via PM. there is anotger post about carddav problems - see: https://together.jolla.com/question/121852/carddav-account-to-synology-ds-carddav-server-through-myfritz-dont-run/

cocovina ( 2016-01-07 21:06:54 +0200 )edit

ups! no PM. so log:

[root@Jolla nemo]# journalctl -a -f | grep carddav
Jan 07 20:12:28 Jolla [1189]: [W] CDExporterController::onSyncTimeout:1073 - CDExport: triggering contacts remote sync: "carddav"
Jan 07 20:12:30 Jolla carddav-client[26166]: [W] ContactsEngine::ContactsEngine:845 - The 'mergePresenceChanges' option has not been configured - presence changes will only be reported via ContactManagerEngine::contactsPresenceChanged()
Jan 07 20:12:30 Jolla carddav-client[26166]: [D] SignOn::ConnectionManager::setupSocketConnection:106 - connection-manager.cpp 106 setupSocketConnection p2p error: QDBusError("org.freedesktop.DBus.Error.FileNotFound", "Failed to connect to socket /run/user/100000/signond/socket: No such file or directory") 1
Jan 07 20:12:30 Jolla carddav-client[26166]: [D] SignOn::ConnectionManager::init:132 - connection-manager.cpp 132 init Peer connection unavailable, activating service
Jan 07 20:12:30 Jolla carddav-client[26166]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state:  "PendingRegistration" SignOn::IdentityImpl(0x745200)
Jan 07 20:12:30 Jolla carddav-client[26166]: [D] SignOn::AuthSessionImpl::initInterface:94 - authsessionimpl.cpp 94 initInterface
Jan 07 20:12:30 Jolla carddav-client[26166]: [D] SignOn::AuthSessionImpl::initInterface:94 - authsessionimpl.cpp 94 initInterface
Jan 07 20:12:30 Jolla carddav-client[26166]: [D] SignOn::ConnectionManager::init:150 - connection-manager.cpp 150 init Connected to "libsignon-qt1"
Jan 07 20:12:30 Jolla carddav-client[26166]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x745200)
Jan 07 20:12:30 Jolla carddav-client[26166]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state:  "NeedsUpdate" SignOn::IdentityImpl(0x745200)
Jan 07 20:12:30 Jolla carddav-client[26166]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state:  "PendingUpdate" SignOn::IdentityImpl(0x745200)
Jan 07 20:12:30 Jolla carddav-client[26166]: [D] SignOn::IdentityImpl::infoUpdated:442 - identityimpl.cpp 442 infoUpdated SERVER INFO UPDATED. NeedsUpdate " 24 "
Jan 07 20:12:30 Jolla carddav-client[26166]: [D] SignOn::IdentityImpl::getInfoReply:381 - identityimpl.cpp 381 getInfoReply QMap(("ACL", QVariant(QStringList, () ) ) ( "AuthMethods" ,  QVariant(QDBusArgument, ) ) ( "Caption" ,  QVariant(QString, "Jolla") ) ( "Id" ,  QVariant(uint, 24) ) ( "Owner" ,  QVariant(QStringList, () ) ) ( "Realms" ,  QVariant(QStringList, () ) ) ( "RefCount" ,  QVariant(int, 0) ) ( "StoreSecret" ,  QVariant(bool, true) ) ( "Type" ,  QVariant(int, 0) ) ( "UserName" ,  QVariant(QString, "lukas") ) ( "UserNameSecret" ,  QVariant(bool, false) ) ( "Validated" ,  QVariant(bool, true) ) )
Jan 07 20:12:30 Jolla carddav-client[26166]: [D] SignOn::IdentityImpl::updateState:96 - identityimpl.cpp 96 updateState Updating state:  "Ready" SignOn::IdentityImpl(0x745200)
cocovina ( 2016-01-07 21:15:00 +0200 )edit
1

answered 2016-09-05 06:37:59 +0200

Phil gravatar image

This work around fixed it for me. UAYOR, YMMV etc.

Remove the dav account from the phone.

From the phone's bash prompt (as root), give the command:

sqlite3 /home/nemo/.local/share/system/privileged/Contacts/qtcontacts-sqlite/contacts.db "update Contacts set created = date('now') where created is null and syncTarget = 'local';"

Re-create the dav account.

edit flag offensive delete publish link more

Comments

According to the devs of Jolla the Caldav/Carddav support is still experimental. They are asking the community to help develop it:

http://merproject.org/meetings/mer-meeting/2016/mer-meeting.2016-09-05-09.00.html

BonoNL ( 2016-09-05 20:56:14 +0200 )edit

Indeed, see https://sailfishos.org/wiki/CalDAV_and_CardDAV_Community_Contributions for more information and feel free to send me an email if you're able to help :-)

chris.adams ( 2016-09-07 10:27:57 +0200 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2016-01-07 13:07:05 +0200

Seen: 494 times

Last updated: Sep 05 '16