Discussion:
[Davmail-users] Syncing contacts problem
Lars Bjørndal
2017-02-24 11:02:05 UTC
Permalink
Hello

I can't sync contacts to Exchange through DavMail with vdirsyncer, after
creating a new entry, without an email address, using khard. That was
possible previously, but I don't konow what broke it. I may import
contacts from a smartphone (using ActiveSync), that doues not have an
email address.

Is this a DavMail problem?

The error I get from vdirsyncer, is this:

Copying (uploading) item sd9327nnob97w02a36zoo9adf9vt692pr1hq to lrs_contacts_remote
debug: Normalized URL from 'sd9327nnob97w02a36zoo9adf9vt692pr1hq.vcf' to '/users/***@example.com/contacts/sd9327nnob97w02a36zoo9adf9vt692pr1hq.vcf'
debug: PUT http://localhost:1180/users/***@example.com/contacts/sd9327nnob97w02a36zoo9adf9vt692pr1hq.vcf
debug: {'Content-Type': 'text/vcard', 'User-Agent': 'vdirsyncer', 'If-None-Match': '*'}
debug: BEGIN:VCARD
debug: VERSION:3.0
debug: UID:sd9327nnob97w02a36zoo9adf9vt692pr1hq
debug: FN:First Last
debug: N:Last;First;;;
debug: REV:20161222T092209Z
debug: TEL;TYPE=cell:+47 00000000
debug: END:VCARD
debug: Sending request...
debug: 503
debug: {'Cache-Control': 'private, max-age=0', 'Connection': 'close', 'Server': 'DavMail Gateway 4.7.2-2434-trunk', 'Content-Type': 'text/plain;charset=UTF-8', 'Expires': 'Thu, 22 Dec 2016 08:24:00 +0000', 'DAV': '1, calendar-access, calendar-schedule, calendarserver-private-events, addressbook', 'Content-Length': '1848', 'Date': 'Thu, 22 Dec 2016 08:24:00 +0000'}
debug: The request failed schema validation: The element 'EmailAddresses' in namespace 'http://schemas.microsoft.com/exchange/services/2006/types' has incomplete content. List of possible elements expected: 'Entry' in namespace 'http://schemas.microsoft.com/exchange/services/2006/types'.
debug: request: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"><soap:Header><t:RequestServerVersion Version="Exchange2013"/></soap:Header><soap:Body><m:CreateItem MessageDisposition="SaveOnly"><m:SavedItemFolderId><t:DistinguishedFolderId Id="contacts"/></m:SavedItemFolderId><m:Items><t:Contact><t:ExtendedProperty><t:ExtendedFieldURI PropertyTag="0x10f3" PropertyType="String"/><t:Value>sd9327nnob97w02a36zoo9adf9vt692pr1hq.EML</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI PropertyTag="0x37" PropertyType="String"/><t:Value>First Last</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI PropertyTag="0x1a" PropertyType="String"/><t:Value>IPM.Contact</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI PropertyTag="0x3a06" PropertyType="String"/><t:Value>First</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI PropertyTag="0x3a11" PropertyType="String"/><t:Value>Last</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI PropertyTag="0x3a1c" PropertyType="String"/><t:Value>+47 00000000</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI PropertyTag="0x3001" PropertyType="String"/><t:Value>First Last</t:Value></t:ExtendedProperty><t:FileAs>First Last</t:FileAs><t:EmailAddresses></t:EmailAddresses></t:Contact></m:Items></m:CreateItem></soap:Body></soap:Envelope>
error: Unknown error occured for lrs_contacts: 503 Server Error: Service Unavailable for url: http://localhost:1180/users/***@example.com/contacts/sd9327nnob97w02a36zoo9adf9vt692pr1hq.vcf

Lars
Geert Stappers
2017-02-25 13:06:40 UTC
Permalink
Post by Lars Bjørndal
Hello
I can't sync contacts to Exchange through DavMail with vdirsyncer, after
creating a new entry, without an email address, using khard. That was
possible previously, but I don't konow what broke it. I may import
contacts from a smartphone (using ActiveSync), that doues not have an
email address.
Is this a DavMail problem?
I think that is the wrong question, at least it feels to me as wanting a culprit.
A better question would be: In which direction to look for a solution?


I have tried to answer it, but I couldn't determen which direction to go.
Post by Lars Bjørndal
Copying (uploading) item sd9327nnob97w02a36zoo9adf9vt692pr1hq to lrs_contacts_remote
The first time we see the string that starts with 'sd' and ends with 'hq'.
My short notation for it will be 'sd...hq'.

What did generate sd...hq?
Post by Lars Bjørndal
debug: {'Content-Type': 'text/vcard', 'User-Agent': 'vdirsyncer', 'If-None-Match': '*'}
debug: BEGIN:VCARD
debug: VERSION:3.0
debug: UID:sd9327nnob97w02a36zoo9adf9vt692pr1hq
debug: FN:First Last
debug: N:Last;First;;;
debug: REV:20161222T092209Z
debug: TEL;TYPE=cell:+47 00000000
debug: END:VCARD
debug: Sending request...
debug: 503
'close', 'Server': 'DavMail Gateway 4.7.2-2434-trunk',
'Content-Type': 'text/plain;charset=UTF-8', 'Expires': 'Thu,
22 Dec 2016 08:24:00 +0000', 'DAV': '1, calendar-access,
calendar-schedule, calendarserver-private-events, addressbook',
'Content-Length': '1848', 'Date': 'Thu, 22 Dec 2016 08:24:00 +0000'}
Why are the dates _two months_ old?
Post by Lars Bjørndal
The element 'EmailAddresses' in namespace
'http://schemas.microsoft.com/exchange/services/2006/types'
has incomplete content. List of possible
elements expected: 'Entry' in namespace
'http://schemas.microsoft.com/exchange/services/2006/types'.
debug: request: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"><soap:Header><t:RequestServerVersion
Version="Exchange2013"/></soap:Header><soap:Body><m:CreateItem
MessageDisposition="SaveOnly"><m:SavedItemFolderId><t:DistinguishedFolderId
Id="contacts"/></m:SavedItemFolderId><m:Items><t:Contact><t:ExtendedProperty><t:ExtendedFieldURI
PropertyTag="0x10f3"
PropertyType="String"/><t:Value>sd9327nnob97w02a36zoo9adf9vt692pr1hq.EML</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI
PropertyTag="0x37" PropertyType="String"/><t:Value>First
Last</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI
PropertyTag="0x1a"
PropertyType="String"/><t:Value>IPM.Contact</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI
PropertyTag="0x3a06"
PropertyType="String"/><t:Value>First</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI
PropertyTag="0x3a11"
PropertyType="String"/><t:Value>Last</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI
PropertyTag="0x3a1c" PropertyType="String"/><t:Value>+47
00000000</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI
PropertyTag="0x3001" PropertyType="String"/><t:Value>First
Last</t:Value></t:ExtendedProperty><t:FileAs>First
Last</t:FileAs><t:EmailAddresses></t:EmailAddresses></t:Contact></m:Items></m:CreateItem></soap:Body></soap:Envelope>
error: Unknown error occured for lrs_contacts: 503
The sd...hq in the error message.


What is in the corresponding Davmail log?



Groeten
Geert Stappers
--
Leven en laten leven
Lars Bjørndal
2017-02-27 18:23:23 UTC
Permalink
Post by Geert Stappers
Post by Lars Bjørndal
Hello
I can't sync contacts to Exchange through DavMail with vdirsyncer, after
creating a new entry, without an email address, using khard. That was
possible previously, but I don't konow what broke it. I may import
contacts from a smartphone (using ActiveSync), that doues not have an
email address.
Is this a DavMail problem?
I think that is the wrong question, at least it feels to me as wanting a culprit.
A better question would be: In which direction to look for a solution?
Yes, sure.
Post by Geert Stappers
I have tried to answer it, but I couldn't determen which direction to go.
Post by Lars Bjørndal
Copying (uploading) item sd9327nnob97w02a36zoo9adf9vt692pr1hq to lrs_contacts_remote
The first time we see the string that starts with 'sd' and ends with 'hq'.
My short notation for it will be 'sd...hq'.
What did generate sd...hq?
I'm not sure. Either the khard or the vdirsyncer program. I used khard
to create the entry and vdirsyncer to attempt to sync it to Exchange through DavMail.
Post by Geert Stappers
Post by Lars Bjørndal
debug: {'Content-Type': 'text/vcard', 'User-Agent': 'vdirsyncer', 'If-None-Match': '*'}
debug: BEGIN:VCARD
debug: VERSION:3.0
debug: UID:sd9327nnob97w02a36zoo9adf9vt692pr1hq
debug: FN:First Last
debug: N:Last;First;;;
debug: REV:20161222T092209Z
debug: TEL;TYPE=cell:+47 00000000
debug: END:VCARD
debug: Sending request...
debug: 503
'close', 'Server': 'DavMail Gateway 4.7.2-2434-trunk',
'Content-Type': 'text/plain;charset=UTF-8', 'Expires': 'Thu,
22 Dec 2016 08:24:00 +0000', 'DAV': '1, calendar-access,
calendar-schedule, calendarserver-private-events, addressbook',
'Content-Length': '1848', 'Date': 'Thu, 22 Dec 2016 08:24:00 +0000'}
Why are the dates _two months_ old?
That's because I first asked the vdirsyncer developer about the problem, and I reused
the data.
Post by Geert Stappers
Post by Lars Bjørndal
The element 'EmailAddresses' in namespace
'http://schemas.microsoft.com/exchange/services/2006/types'
has incomplete content. List of possible
elements expected: 'Entry' in namespace
'http://schemas.microsoft.com/exchange/services/2006/types'.
debug: request: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"><soap:Header><t:RequestServerVersion
Version="Exchange2013"/></soap:Header><soap:Body><m:CreateItem
MessageDisposition="SaveOnly"><m:SavedItemFolderId><t:DistinguishedFolderId
Id="contacts"/></m:SavedItemFolderId><m:Items><t:Contact><t:ExtendedProperty><t:ExtendedFieldURI
PropertyTag="0x10f3"
PropertyType="String"/><t:Value>sd9327nnob97w02a36zoo9adf9vt692pr1hq.EML</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI
PropertyTag="0x37" PropertyType="String"/><t:Value>First
Last</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI
PropertyTag="0x1a"
PropertyType="String"/><t:Value>IPM.Contact</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI
PropertyTag="0x3a06"
PropertyType="String"/><t:Value>First</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI
PropertyTag="0x3a11"
PropertyType="String"/><t:Value>Last</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI
PropertyTag="0x3a1c" PropertyType="String"/><t:Value>+47
00000000</t:Value></t:ExtendedProperty><t:ExtendedProperty><t:ExtendedFieldURI
PropertyTag="0x3001" PropertyType="String"/><t:Value>First
Last</t:Value></t:ExtendedProperty><t:FileAs>First
Last</t:FileAs><t:EmailAddresses></t:EmailAddresses></t:Contact></m:Items></m:CreateItem></soap:Body></soap:Envelope>
error: Unknown error occured for lrs_contacts: 503
The sd...hq in the error message.
What is in the corresponding Davmail log?
I've deleted this entry, and need to recreate/resync to get that
information.

Thanks and regards,
Lars
Geert Stappers
2017-02-27 19:33:36 UTC
Permalink
Post by Lars Bjørndal
Post by Geert Stappers
Post by Lars Bjørndal
Hello
I can't sync contacts to Exchange through DavMail with vdirsyncer, after
creating a new entry, without an email address, using khard. That was
possible previously, but I don't konow what broke it. I may import
contacts from a smartphone (using ActiveSync), that doues not have an
email address.
Copying (uploading) item sd9327nnob97w02a36zoo9adf9vt692pr1hq to lrs_contacts_remote
The first time we see the string that starts with 'sd' and ends with 'hq'.
My short notation for it will be 'sd...hq'.
What did generate sd...hq?
I'm not sure. Either the khard or the vdirsyncer program. I used khard
to create the entry and vdirsyncer to attempt to sync it to Exchange through DavMail.
<snip/>
Post by Lars Bjørndal
Post by Geert Stappers
Post by Lars Bjørndal
error: Unknown error occured for lrs_contacts: 503
The sd...hq in the error message.
What is in the corresponding Davmail log?
} I've deleted those entries,
Post by Lars Bjørndal
and need to recreate/resync to get that information.
Please do.



Groeten
Geert Stappers
--
Leven en laten leven
Lars Bjørndal
2017-02-28 13:22:19 UTC
Permalink
[Geert Stappers]

[...]
Post by Geert Stappers
Post by Geert Stappers
I've deleted those entries,
and need to recreate/resync to get that information.
Please do.
Output from khard:

Creation successful

Name: Tempentryfirst Tempentrylast
Address book: statped
Phone
cell: 99999999
Miscellaneous
UID: a76n0sqn2cwd3ldnn2sfr977zssbaasp1sd7

Output fro vdirsyncer:

Syncing lrs_contacts
Copying (uploading) item a76n0sqn2cwd3ldnn2sfr977zssbaasp1sd7 to
lrs_contacts_re
mote
error: Unknown error occured for lrs_contacts: 503 Server Error:
Service Unavail
able for url:
http://localhost:1180/users/***@example.com/contacts/a76n
0sqn2cwd3ldnn2sfr977zssbaasp1sd7.vcf
error: Use `-vdebug` to see the full traceback.
error: 1 out of 2 tasks failed.

And here's the debug log from davmail:

<https://lamasti.net/filer/davmail.log.gz>

Thanks and regards, Lars
Mickaël Guessant
2017-03-02 00:32:47 UTC
Permalink
Hello all,

I managed to partially reproduce this issue:
<t:EmailAddresses></t:EmailAddresses>

is invalid, however Office365 just accepts it.

=> Anyway, a fix is available in subversion to avoid sending empty
collection tags with contacts missing an email address.

Regards,
--
Mickael Guessant
mailto:***@free.fr
l***@lamasti.net
2017-03-02 09:28:04 UTC
Permalink
Hi!

[Mickaël Guessant]
Post by Lars Bjørndal
<t:EmailAddresses></t:EmailAddresses>
is invalid, however Office365 just accepts it.
=> Anyway, a fix is available in subversion to avoid sending empty
collection tags with contacts missing an email address.
Thank you! It works now.

Lars
Geert Stappers
2017-03-02 18:36:28 UTC
Permalink
Post by l***@lamasti.net
Hi!
[Mickaël Guessant]
Post by Lars Bjørndal
<t:EmailAddresses></t:EmailAddresses>
is invalid, however Office365 just accepts it.
=> Anyway, a fix is available in subversion to avoid sending empty
collection tags with contacts missing an email address.
Thank you! It works now.
Nice!

Is the change and the report of the succes
reason enough for a next release?


Groeten
Geert Stappers
--
Leven en laten leven
Mickaël Guessant
2017-03-03 00:34:03 UTC
Permalink
Post by Geert Stappers
Post by l***@lamasti.net
Hi!
[Mickaël Guessant]
Post by Lars Bjørndal
<t:EmailAddresses></t:EmailAddresses>
is invalid, however Office365 just accepts it.
=> Anyway, a fix is available in subversion to avoid sending empty
collection tags with contacts missing an email address.
Thank you! It works now.
Nice!
Is the change and the report of the succes
reason enough for a next release?
Well, I just wanted to merge another user provided fix (by Roel van de
Kraats) first...
I will also ask for feedback on another change, in another message (just
teasing ;-)

Regards,
--
Mickael Guessant
mailto:***@free.fr
Loading...