<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									[ZCS 9] Adding a Caldav calendar not working ONLY in Zimbra - Core Features (storage, backup, admin, external client sync)				            </title>
            <link>https://community.zextras.com/forum/zextras-suite-backup/zcs-9-adding-a-caldav-calendar-not-working-only-in-zimbra/</link>
            <description>Zextras Community Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 18 Apr 2026 01:22:38 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE:  Adding a Caldav calendar not working ONLY in Zimbra</title>
                        <link>https://community.zextras.com/forum/zextras-suite-backup/zcs-9-adding-a-caldav-calendar-not-working-only-in-zimbra/#post-2203</link>
                        <pubDate>Thu, 22 Jul 2021 09:57:44 +0000</pubDate>
                        <description><![CDATA[Hello @r4v3n,
This is the code snippet regarding your error:
int status = response.getStatusLine().getStatusCode();
if (status &gt;= 400) {
   throw new DavException(&quot;DAV server returned...]]></description>
                        <content:encoded><![CDATA[<p>Hello <span>@r4v3n</span>,</p>
<p>This is the code snippet regarding your error:</p>
<pre contenteditable="false">int status = response.getStatusLine().getStatusCode();
if (status &gt;= 400) {
   throw new DavException("DAV server returned an error: "+status, status);
}</pre>
<p>You can find the full source code <a href="https://github.com/Zimbra/zm-mailbox/blob/develop/store/src/java/com/zimbra/cs/dav/client/WebDavClient.java" target="_blank" rel="noopener">here</a>.</p>
<p>Basically, Zimbra sends an HTTP request and the DAV server replies with an HTTP error 401, which means that the client (the Zimbra server) is not authorized to get this resource.</p>
<p>I suggest checking the username and the password at first, then the other connection parameters and the permissions to access the resource.</p>
<p>If everything is OK, this means that there's probably an incompatibility between the DAV provider and Zimbra.</p>
<p>We're not aware of similar cases though.</p>
<p>If the DAV server is managed by you, maybe its logs can be more specific, you can also increase the logging level to debug so you'll have a trace of the full request/response dialogue and investigate this issue deeper.</p>
<p>Hope this helps.</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zextras-suite-backup/">Core Features (storage, backup, admin, external client sync)</category>                        <dc:creator>Matt</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zextras-suite-backup/zcs-9-adding-a-caldav-calendar-not-working-only-in-zimbra/#post-2203</guid>
                    </item>
				                    <item>
                        <title> Adding a Caldav calendar not working ONLY in Zimbra</title>
                        <link>https://community.zextras.com/forum/zextras-suite-backup/zcs-9-adding-a-caldav-calendar-not-working-only-in-zimbra/#post-2092</link>
                        <pubDate>Fri, 11 Jun 2021 10:36:07 +0000</pubDate>
                        <description><![CDATA[Hello Zextras,
I recently discovered your ZCS 9 OSE Build and I thank you A LOT for building it. My upgrade from 8.8.7 to 8.8.15 and then 9.0.0 was pretty easy thanks to your work.
But I g...]]></description>
                        <content:encoded><![CDATA[<p>Hello Zextras,</p>
<p>I recently discovered your ZCS 9 OSE Build and I thank you A LOT for building it. My upgrade from 8.8.7 to 8.8.15 and then 9.0.0 was pretty easy thanks to your work.</p>
<p><br />But I got a little "downside" since I upgraded.<br /><br /></p>
<p>I'm currently trying to add a Caldav calendar (hosted by 1and1/IONOS) in my Zimbra 9 OSE.<br />I can successfuly add this Caldav calendar in Thunderbird and the sync is perfectly working between Thunderbird and the 1and1 webmail calendar view.</p>
<p>I even can curl -u "user@domain.com:password" -X PROPFIND https://dav.mailxcha...v/CALENDARNAME without issue, even from my workstation or from my Ubuntu 18.04 VM hosting Zimbra.</p>
<p>But when I add this external calendar to Zimbra, nothing happens in the Zimbra web interface, and I got this stack trace in logs :</p>
<pre contenteditable="false">com.zimbra.common.service.ServiceException: system failure: error importing CalDAV data
ExceptionId:ScheduledTask-1:1623137259086:42deea478071cff7
Code:service.FAILURE
at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:288)
at com.zimbra.cs.datasource.CalDavDataImport.importData(CalDavDataImport.java:101)
at com.zimbra.cs.datasource.DataSourceManager.importData(DataSourceManager.java:406)
at com.zimbra.cs.datasource.DataSourceManager.importData(DataSourceManager.java:362)
at com.zimbra.cs.datasource.DataSourceTask.call(DataSourceTask.java:83)
at com.zimbra.cs.datasource.DataSourceTask.call(DataSourceTask.java:31)
at com.zimbra.common.util.TaskScheduler$TaskRunner.call(TaskScheduler.java:79)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:830)
Caused by: com.zimbra.cs.dav.DavException: DAV server returned an error: 401
at com.zimbra.cs.dav.client.WebDavClient.sendMultiResponseRequest(WebDavClient.java:117)
at com.zimbra.cs.dav.client.CalDavClient.login(CalDavClient.java:119)
at com.zimbra.cs.datasource.CalDavDataImport.getClient(CalDavDataImport.java:171)
at com.zimbra.cs.datasource.CalDavDataImport.syncFolders(CalDavDataImport.java:225)
at com.zimbra.cs.datasource.CalDavDataImport.importData(CalDavDataImport.java:92)
... 10 more
</pre>
<p> </p>
<p><span>So I got a 401 error, even if it's working with CURL and with Thunderbird. Then after this 401 I got some 404 errors when zimbra is retrying to sync the calendar.</span></p>
<p>On the IONIS side, in my account, I can see I got a connection from another software (not identified) than my Thunderbird, so it must be my zimbra connecting.<br /><br /><span>I tried some differents syntax when adding the calendar to Zimbra, but everytime I got a 401 error.</span><br /><br /><span>What could be my error ? Is it my Zimbra who got a problem ?</span></p>
<p>Maybe you have an idea about a bug in the Caldav code on the Zimbra side ?</p>
<p><br /><span>Thanks a lot for your help !</span></p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/zextras-suite-backup/">Core Features (storage, backup, admin, external client sync)</category>                        <dc:creator>R4v3n</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/zextras-suite-backup/zcs-9-adding-a-caldav-calendar-not-working-only-in-zimbra/#post-2092</guid>
                    </item>
							        </channel>
        </rss>
		