PROPFIND Method Not Allowed caldav-beta9
Łukasz Michalski
lm at zork.pl
Tue Aug 12 09:59:31 EDT 2014
Hi,
I just stepped into similar problem:
[zork at serenity tmp]$ telnet ssl.zork.pl 18080
Trying 46.22.173.191...
Connected to ssl.zork.pl.
Escape character is '^]'.
OPTIONS * HTTP/1.0
HTTP/1.1 200 OK
Connection: close
Date: Tue, 12 Aug 2014 13:49:22 GMT
Cache-Control: no-cache
Server: Cyrus/v2.4.17-caldav-beta10 Cyrus-SASL/2.1.26 OpenSSL/1.0.0
zlib/1.2.8 libxml/2.9.1 SQLite/3.8.4.3 libical/1.0 Jansson/2.6
Allow: OPTIONS, GET, HEAD
Content-Length: 0
Connection closed by foreign host.
Server reports libical but no additional dav methods.
My configure line is:
$ ./configure --prefix=/usr --includedir=/usr/include/cyrus
--mandir=/usr/share/man --docdir=/usr/share/doc/cyrus
--datadir=/usr/share/cyrus --sysconfdir=/etc/cyrus
--localstatedir=/var/lib/cyrus --sharedstatedir=/usr/share/cyrus
--enable-murder --enable-nntp --enable-replication --enable-idled
--with-cyrus-user=cyrus --with-cyrus-group=mail
--with-pidfile=/var/run/cyrmaster.pid --with-syslogfacility=MAIL
--with-cyrus-prefix=/usr/lib/cyrus --without-libwrap --with-dav
--enable-http --exec-prefix=/usr --libexecdir=/usr/sbin
I had to add --with-dav to configure, because for some reason configure
did not set ENABLE_DAV when only --enable-http was set. Tried to read
configure.in but have no idea why ENABLE_DAV is set to "no".
Revelant configure output:
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XML2... yes
checking for ICAL... yes
checking for SQLITE3... yes
Any help?
Regards,
Łukasz
On 06/04/2014 05:59 PM, Jean-Christophe Delaye wrote:
> On 04/06/2014 13:08, Ken Murchison wrote:
>> On 06/04/2014 04:03 AM, Jean-Christophe Delaye wrote:
>>> On 03/06/2014 20:20, Ken Murchison wrote:
>>>> Can you telnet to port 80 on the server and give it the following
>>>> command (followed by 2 carriage returns):
>>>>
>>>> OPTIONS * HTTP/1.0
>>>>
>>>
>>> Thanks Ken,
>>>
>>>
>>> Connected to cyrus0.eurecom.fr.
>>> Escape character is '^]'.
>>> OPTIONS * HTTP/1.0
>>>
>>> HTTP/1.1 200 OK
>>> Connection: close
>>> Date: Wed, 04 Jun 2014 08:00:23 GMT
>>> Cache-Control: no-cache
>>> Server: Cyrus/v2.4.17-caldav-beta9 (Murder) Cyrus-SASL/2.1.26
>>> OpenSSL/1.0.0 zlib/1.2.3 libxml2/2.6.23
>>> Allow: OPTIONS, GET, HEAD
>>> Content-Length: 0
>>
>>
>> OK. It looks like configure didn't find some of the necessary
>> prerequisites for CalDAV support when you compiled Cyrus. You need to
>> have both SQLite and libical. When support for CalDAV is compiled in
>> and enabled, your OPTIONS response should look something like this:
>>
>> HTTP/1.1 200 OK
>> Connection: close
>> Date: Wed, 04 Jun 2014 11:02:57 GMT
>> Cache-Control: no-cache
>> Server: Cyrus/git2.4.17-caldav-beta9+163 (Murder) Cyrus-SASL/2.1.26
>> OpenSSL/1.0.1e zlib/1.2.7 libxml/2.9.1 SQLite/3.7.13 libical/0.48
>> DAV: 1, 2, 3, access-control, extended-mkcol
>> DAV: calendar-access, calendar-auto-schedule
>> Allow: OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE
>> Allow: PROPFIND, REPORT, COPY, MOVE, LOCK, UNLOCK, PROPPATCH, MKCOL, ACL
>> Allow: MKCALENDAR
>> Content-Length: 0
>>
>>
>
> Ok that's it. It was a configure issue using ICAL_LIBS the linker flags
> for ICAL which had overriding pkg-config.
>
> Now, I have the following http response:
>
> HTTP/1.1 200 OK
> Connection: close
> Date: Wed, 04 Jun 2014 14:57:38 GMT
> Cache-Control: no-cache
> Server: Cyrus/v2.4.17-caldav-beta9 (Murder) Cyrus-SASL/2.1.26
> OpenSSL/1.0.0 zlib
> /1.2.3 libxml2/2.6.23 SQLite/3.8.4.3 libical/1.0
> iSchedule-Version: 1.0
> DAV: 1, 2, 3, access-control, extended-mkcol
> DAV: calendar-access, calendar-auto-schedule
> Allow: OPTIONS, GET, HEAD, POST, PUT, DELETE
> Allow: PROPFIND, REPORT, COPY, MOVE, LOCK, UNLOCK, PROPPATCH, MKCOL, ACL
> Allow: MKCALENDAR
> Content-Length: 0
>
> I confirm that module automatically create the required calendars for a
> user at the first login.
>
> cyrus0.eurecom.fr> lm user.standard.%.%
> user.standard.#addressbooks.Default (\HasNoChildren)
> user.standard.#calendars.Default (\HasNoChildren)
> user.standard.#calendars.Inbox (\HasNoChildren)
> user.standard.#calendars.Outbox (\HasNoChildren)
> user.standard.Junk.Spam_Client (\HasNoChildren)
> user.standard.Junk.Spam_Server (\HasNoChildren)
>
> cyrus0.eurecom.fr> lam user.standard.#calendars.Default
> standard lrswipkxtecda9
> anyone 9
>
> But, I have to deal with "404 Not Found".
>
> [ID 596527 local2.notice] login: standard Basic+TLS User logged in
> [ID 693975 local2.debug] dav_exec(standard.dav): CREATE TABLE IF NOT
> EXISTS ical_objs ( rowid INTEGER PRIMARY KEY, creationdate INTEGER,
> mailbox TEXT NOT NULL, resource TEXT NOT NULL, imap_uid INTEGER,
> lock_token TEXT, lock_owner TEXT, lock_ownerid TEXT, lock_expire
> INTEGER, comp_type INTEGER, ical_uid TEXT, organizer TEXT, dtstart TEXT,
> dtend TEXT, recurring INTEGER, transp INTEGER, sched_tag TEXT, UNIQUE(
> mailbox, resource ) );
> [ID 693975 local2.debug] dav_exec(standard.dav): CREATE INDEX IF NOT
> EXISTS idx_ical_uid ON ical_objs ( ical_uid );
> [ID 693975 local2.debug] dav_exec(standard.dav): CREATE TABLE IF NOT
> EXISTS vcard_objs ( rowid INTEGER PRIMARY KEY, creationdate INTEGER,
> mailbox TEXT NOT NULL, resource TEXT NOT NULL, imap_uid INTEGER,
> lock_token TEXT, lock_owner TEXT, lock_ownerid TEXT, lock_expire
> INTEGER, version INTEGER, vcard_uid TEXT, kind INTEGER, fullname TEXT,
> name TEXT, nickname TEXT, email TEXT, UNIQUE( mailbox, resource ) );
> [ID 693975 local2.debug] dav_exec(standard.dav): CREATE INDEX IF NOT
> EXISTS idx_vcard_uid ON vcard_objs ( vcard_uid );
> [ID 702911 local2.info] as "standard" with "Mozilla/5.0 (X11; Linux
> x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 Lightning/2.6.5";
> "PROPFIND /dav/calendars/users/standard/Default/ HTTP/1.1" (depth=0) =>
> "404 Not Found" (error=The requested URL was not found on this server.)
>
>>
>>
>>>
>>>
>>>>
>>>>
>>>>
>>>> On 06/03/2014 11:30 AM, Jean-Christophe Delaye wrote:
>>>>> We're trying to use calendars with Cyrus IMAPD v2.4.17-caldav-beta9.
>>>>>
>>>>> The following caldav settings are in imapd.conf
>>>>>
>>>>> httpmodules: caldav
>>>>> httpprettytelemetry: 1
>>>>> calendarprefix: #calendars
>>>>>
>>>>> http/https process are listening.
>>>>>
>>>>> master[27932]: [ID local2.debug] listening for messages from http
>>>>> master[27932]: [ID local2.debug] listening for messages from https
>>>>>
>>>>> When trying to use calendars features with Thunderbird/24.5.0
>>>>> Lightning/2.6.5,
>>>>> Create a new calendar (network)
>>>>> Format CalDAV
>>>>> Location http://cyrus0.eurecom.fr/dav/calendars/users/foo/Default/
>>>>>
>>>>> I have errors in log:
>>>>>
>>>>> http[1360]: [ID 213405 local2.debug] read & parse request-line
>>>>> http[1360]: [ID 472354 local2.debug] read & parse headers
>>>>> http[1360]: [ID 702911 local2.info] xxxxx.eurecom.fr with "Mozilla/5.0
>>>>> (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
>>>>> Lightning/2.6.5"; "PROPFIND /dav/calendars/users/foo/Default/ HTTP/1.1
>>>>> (depth=0) => "405 Method Not Allowed" (error=The requested method is
>>>>> not
>>>>> allowed for the URL.)
>>>>> http[1360]: [ID 286617 local2.debug] read_body(0x8)
>>>>>
>>>>> does anyone have any ideas what could be causing this ?
>>>>>
>>>>> Thanks in advance.
>>>>> ----
>>>>> Cyrus Home Page: http://www.cyrusimap.org/
>>>>> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
>>>>> To Unsubscribe:
>>>>> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>>>>
>>>>
>>>
>>
>>
>
>
>
> ----
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
>
More information about the Info-cyrus
mailing list