Closed Bug 1903549 Opened 1 year ago Closed 7 months ago

CardDAV synchronization fails with zimbra Status 400 Bad request

Categories

(Thunderbird :: Address Book, defect)

Thunderbird 115
All
Unspecified
defect

Tracking

(thunderbird_esr128 affected, thunderbird136 affected, thunderbird137 affected)

RESOLVED FIXED
138 Branch
Tracking Status
thunderbird_esr128 --- affected
thunderbird136 --- affected
thunderbird137 --- affected

People

(Reporter: cluster15, Assigned: florian.biebl)

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0

Steps to reproduce:

  1. Add a CardDAV address book containing contacts on a remote zimbra server (Version Zimbra 10.0.7_GA_4598).
  2. Synchronize the added address book

Actual results:

The address book is empty in Thunderbird

The error console tells me that the synchronization fails with:
NS_ERROR_FAILURE: Incorrect response from server: 400 Bad Request
(see anonymized error console output below)

Expected results:

Contacts should have been synchronized.
DAVx5 can synchronize without problems.
CalDAV calenders on the same zimbra server are correctly synchronized
Thunderbird can correctly synchronize nexcloud CardDAV addressbooks

Component: Untriaged → Address Book
Hardware: Unspecified → x86_64

Today my Thunderbird informed me, that the CardDAV and CalDAV addons are finally given up completely and that the basic functionality is now completely integrated into Thunderbird. However, the above errors still persist. The former add-ons where able to synchronize the addressbooks, DAVx5 can synchronize the addressbook on the same server. Thunderbird can synchronize all calendars on the same zimbra server. Anybody has any idea where to look? A new console output is attached.

Same problem here: Thunderbird Contacts does not sync with my Zimbra server.
If anybody has a workaround, I will be please to hear.

The carddav request bodies are in xml format but currently don't contain the xml declaration.
Some servers like Zimbra expect this declaration and return a BAD_REQUEST error if it is missing
or they ignore the request body completely.

Assignee: nobody → florian.biebl
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #9472277 - Attachment description: Bug 1903549 - Add xml declarations to carddav request bodies → Bug 1903549 - Add xml declarations to carddav request bodies. r=#thunderbird-reviewers
Target Milestone: --- → 138 Branch
Hardware: x86_64 → All

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/6cdaabfb3cd5
Add xml declarations to carddav request bodies. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED

That sounds great, can I test it somewhere?

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: