Lars Bjørndal
2017-02-24 11:02:05 UTC
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
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