<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>CalDAV user lookup bug</title> 
  <pubDate>Sat, 04 Apr 2026 12:52:43 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12305</link> 
  <atom:link rel="self" type="application/rss+xml" title="CalDAV user lookup bug" href="https://bugs.horde.org/ticket/12305/rss" /> 
  <description>CalDAV user lookup bug</description> 
 
   
   
  <item> 
   <title>I have triggered an error when using the new CalDAV function</title> 
   <description>I have triggered an error when using the new CalDAV functionality of kronolith.

If using CalDAV and authentication via IMP, imp&#039;s _init() does not get called in the function mentioned later. This leaves the values &#039;add&#039;, &#039;remove&#039;, and &#039;list&#039; in the capability list even if not configured in the driver.

framework/Dav/lib/Horde/Dav/Principals.php, function getPrincipalByPath() erroneously assumes that $this-&gt;_auth-&gt;hasCapability(&#039;list&#039;) is true and exits with an user does not exist exception. This way I am unable to use CalDAV.

My suggestions to fix this:
Option 1 (preferred, patch attached):
Instead of removing the &quot;add&quot;, &quot;list&quot; and &quot;remove&quot; capabilities in imp/lib/Application.php when they are not supported, merge them in _init() if they are supported

Option 2:
call imp&#039;s _init() before checking the problem in Dav/Principals.php

Option 3:
modify the check in Dav/Principals.php to accept such a situation</description> 
   <pubDate>Wed, 05 Jun 2013 14:58:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12305#t78455</link> 
  </item> 
   
  <item> 
   <title>&gt; Option 2:
&gt; call imp&#039;s _init() before checking the proble</title> 
   <description>&gt; Option 2:
&gt; call imp&#039;s _init() before checking the problem in Dav/Principals.php

I have no idea what is going on in this Dav code, but anything that is trying to access an application&#039;s Application class without initializing it is very broken.</description> 
   <pubDate>Thu, 13 Jun 2013 12:15:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12305#t78707</link> 
  </item> 
   
  <item> 
   <title>It&#039;s not calling the Application API at all, IMP is only inv</title> 
   <description>It&#039;s not calling the Application API at all, IMP is only involved via authentication:
http://git.horde.org/co.php/framework/Dav/lib/Horde/Dav/Auth.php?rt=horde-git&amp;r=fd567b12209dfde32d049dbb467578709dbb9fbf
with $_auth being $injector-&gt;getInstance(&#039;Horde_Core_Factory_Auth&#039;)-&gt;create()</description> 
   <pubDate>Thu, 13 Jun 2013 13:45:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12305#t78712</link> 
  </item> 
   
  <item> 
   <title>I can reproduce this now.

In Horde_Core_Auth_Application:</title> 
   <description>I can reproduce this now.

In Horde_Core_Auth_Application::listUsers(), the first call to hasCapability(&#039;list&#039;) returns true, so $registry-&gt;callAppMethod($this-&gt;_app, &#039;authUserList&#039;) is called. This goes down to Horde_Auth_Imap::listUsers() where hasCapability(&#039;list&#039;) now returns false.</description> 
   <pubDate>Thu, 13 Jun 2013 14:02:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12305#t78713</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit 808dbc224ab6</title> 
   <description>Changes have been made in Git (master):

commit 808dbc224ab677a614884d5464d75d440dbc35b3
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Thu Jun 13 16:16:16 2013 +0200

    Detect admin capabilities in _bootstrap() instead of _init() (Bug #12305).

 imp/docs/CHANGES        |    1 +
 imp/lib/Application.php |   18 ++++++++++--------
 imp/package.xml         |    2 ++
 3 files changed, 13 insertions(+), 8 deletions(-)

http://git.horde.org/horde-git/-/commit/808dbc224ab677a614884d5464d75d440dbc35b3</description> 
   <pubDate>Thu, 13 Jun 2013 14:16:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12305#t78714</link> 
  </item> 
   
  <item> 
   <title>I discover some problem after employing hook (authusername) </title> 
   <description>I discover some problem after employing hook (authusername) to strip off domain name when loggin horde and kronolith (4.1.1).

When I try using kronolith and obtain the subscription URL of CalDAV, it shows:
https://mail.domain.com/rpc/principals/foo@domain.com/

Then, I try adding the account through iCal (OSX10.8.4) with using the URL and username as &#039;foo@domain.com&#039; and it shows &#039;Authentication failed. Your username and password were rejected by the server&#039;.  The horde logging shows nothing about it.

The weird point lies in when I using the following URL to add account:
https://mail.domain.com/rpc/principals/foo/

and using &#039;foo&#039; as username, iCal can add the account successfully.  However, there is simply no calendar shown.

On the contrary, if I disable the hook.php and caldav in horde work flawlessly with horde.  I have two calendars in horde site and they are shown in iCal.  When I enable the hook.php again and re-add the account again in ical no calendar can be shown.

Therefore, I believe there are some problems in using the hook and CalDAV user name.

Kinglok, Fong</description> 
   <pubDate>Tue, 09 Jul 2013 17:08:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12305#t79192</link> 
  </item> 
   
  <item> 
   <title>Extending Jan&#039;s change to kronolith/lib/Form/EditCalendar.ph</title> 
   <description>Extending Jan&#039;s change to kronolith/lib/Form/EditCalendar.php seems to fix this, see attached patchfile.

Many thanks to Jan for fixing this issue, it was a major request from our users.

Regards,
Andreas</description> 
   <pubDate>Wed, 06 Aug 2014 07:45:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12305#t85061</link> 
  </item> 
   
  <item> 
   <title>Sorry, wrong ticket, was meant for #12380

&gt; Extending Jan</title> 
   <description>Sorry, wrong ticket, was meant for #12380

&gt; Extending Jan&#039;s change to kronolith/lib/Form/EditCalendar.php seems 
&gt; to fix this, see attached patchfile.
&gt;
&gt; Many thanks to Jan for fixing this issue, it was a major request from 
&gt; our users.
&gt;
&gt; Regards,
&gt; Andreas
</description> 
   <pubDate>Wed, 06 Aug 2014 07:47:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12305#t85062</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
