6.0.0-alpha12
6/9/25

[#11011] CalDav: Wrong .ics URLs generated, Details for events not accesible
Summary CalDav: Wrong .ics URLs generated, Details for events not accesible
Queue Kronolith
Queue Version Git master
Type Bug
State No Feedback
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester d-fens (at) 00010111 (dot) de
Created 02/20/2012 (4858 days ago)
Due
Updated 08/27/2013 (4304 days ago)
Assigned 07/18/2013 (4344 days ago)
Resolved 08/27/2013 (4304 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/27/2013 11:03:35 AM Jan Schneider State ⇒ No Feedback
 
07/18/2013 10:06:58 AM Jan Schneider Comment #10
State ⇒ Feedback
Reply to this comment
I don't even buy that this is Kronolith at all. We always send the 
HTTP authentication header, this rather looks like a client trying an 
unauthenticated request first, and only then sending the 
authentication informations. Apple clients do this for example.
02/21/2012 09:52:18 AM Jan Schneider Comment #9
State ⇒ Assigned
Assigned to Jan Schneider
Reply to this comment
the space in the url causes the error adding it with
http:/..../default%20calendar
let the eventsdetails appear, so this should be properly urlencoded
We cannot simply encode the URL entered by the user. Because if it's 
*not* properly encoded, it's already an invalid URL. And if he 
provides a correctly encoded URL, we would double-encode it.
We should check if the entered URL is valid though before saving it.
And I still wonder why this redirection happens with invalid URLs.
02/20/2012 11:52:51 PM d-fens (at) 00010111 (dot) de Comment #8 Reply to this comment
sorry for so much noise, its late =|

the space in the url causes the error adding it with
http:/..../default%20calendar
let the eventsdetails appear, so this should be properly urlencoded
02/20/2012 11:26:03 PM d-fens (at) 00010111 (dot) de Comment #7 Reply to this comment
i think it happens if the caldav url doesn't end with a slash

http://192.168.1.99/owncloud/apps/calendar/caldav.php/calendars/user/default 
calendar
versus
http://192.168.1.99/owncloud/apps/calendar/caldav.php/calendars/user/default 
calendar/

please always add a trailing slash to it, the events are readable then 
(correct urls generated)
thanks!
02/20/2012 02:04:44 PM d-fens (at) 00010111 (dot) de Comment #6 Reply to this comment
How did you find that out? Are you sure it's not being redirected by 
the server instead?
i added the browser to the logfile: only the last request is actually 
from my browser (firefox), does this help?

192.168.1.99 - - [20/Feb/2012:15:01:22 +0100] "OPTIONS 
/owncloud/apps/calendar/caldav.php/calendars/simon/default calendar/ 
HTTP/1.1" 401 291 "-" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 
5.0)"
192.168.1.99 - simon [20/Feb/2012:15:01:22 +0100] "OPTIONS 
/owncloud/apps/calendar/caldav.php/calendars/simon/default%20calendar/ 
HTTP/1.1" 200 - "-" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 
5.0)"
192.168.1.99 - - [20/Feb/2012:15:01:23 +0100] "PROPFIND 
/owncloud/apps/calendar/caldav.php/calendars/simon/default calendar/ 
HTTP/1.1" 401 291 "-" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 
5.0)"
192.168.1.99 - simon [20/Feb/2012:15:01:23 +0100] "PROPFIND 
/owncloud/apps/calendar/caldav.php/calendars/simon/default%20calendar/ 
HTTP/1.1" 207 1242 "-" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 
5.0)"
192.168.1.99 - - [20/Feb/2012:15:01:23 +0100] "GET 
/owncloud/apps/calendar/caldav.php/calendars/simon/default 
calendar/owncloud/apps/calendar/caldav.php/calendars/simon/default%20calendar/860a9db6-b4b2-4d59-b402-2d321ad119da.ics HTTP/1.1" 401 291 "-" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 
5.0)"
192.168.1.99 - simon [20/Feb/2012:15:01:23 +0100] "GET 
/owncloud/apps/calendar/caldav.php/calendars/simon/default%20calendar/owncloud/apps/calendar/caldav.php/calendars/simon/default%20calendar/860a9db6-b4b2-4d59-b402-2d321ad119da.ics HTTP/1.1" 404 270 "-" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 
5.0)"
192.168.1.99 - - [20/Feb/2012:15:01:22 +0100] "POST 
/horde/services/ajax.php/kronolith/getEvent HTTP/1.1" 200 145 
"http://192.168.1.99/horde/kronolith/" "Mozilla/5.0 (X11; Linux 
x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"
02/20/2012 01:48:12 PM d-fens (at) 00010111 (dot) de Comment #5 Reply to this comment

d-partment horde # git status
# On branch master
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   horde/config/registry.php
#       modified:   imp/config/backends.php
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       horde.log
#       horde/admin/config/LOG_USER
#       horde/services/LOG_USER
#       horde/services/portal/LOG_USER
#       kronolith/LOG_USER
no changes added to commit (use "git add" and/or "git commit -a"

sorry was my fault as i tried to debug and added a line so you thought 
it wasn't current, here with vanilla git

2012-02-20T14:46:00+01:00 NOTICE: HORDE [kronolith] PHP ERROR: 
Undefined property: Kronolith_Driver_Ical::$_permission [pid 6140 on 
line 669 of "/home/user/horde/kronolith/lib/Driver/Ical.php"]
2012-02-20T14:46:00+01:00 DEBUG: HORDE 1. Kronolith::header() 
/home/user/horde/kronolith/index.php:144
2. Kronolith::includeJSVars() /home/user/horde/kronolith/lib/Kronolith.php:92
3. Kronolith_Calendar_Remote->toHash() 
/home/user/horde/kronolith/lib/Kronolith.php:231
4. Kronolith_Calendar_Remote->hasPermission() 
/home/user/horde/kronolith/lib/Calendar/Remote.php:176
5. Kronolith_Driver_Ical->getPermission() 
/home/user/horde/kronolith/lib/Calendar/Remote.php:130
6. Horde::errorHandler() /home/user/horde/kronolith/lib/Driver/Ical.php:669
02/20/2012 01:31:05 PM Jan Schneider Comment #4 Reply to this comment
2012-02-20T14:18:55+01:00 NOTICE: HORDE [kronolith] PHP ERROR: 
Undefined property: Kronolith_Driver_Ical::$_permission [pid 5829 on 
line 671 of "/home/user/horde/kronolith/lib/Driver/Ical.php"]
This is not the latest Git master code.
02/20/2012 01:23:00 PM Jan Schneider Comment #3
State ⇒ Feedback
Reply to this comment
hi,

  adding a owncloud calendar as external calander with url like 
http://192.168.1.99/owncloud/apps/calendar/caldav.php/calendars/user/default 
calender doesn't find the events althouh they do appear in the 
calendar, and after clicking around the external calender isn't 
shown n the left side anymore :(
This looks like a regular DAViCal server which works just fine here.
How did you find that out? Are you sure it's not being redirected by 
the server instead?
02/20/2012 01:21:18 PM d-fens (at) 00010111 (dot) de Comment #2 Reply to this comment
2012-02-20T14:18:55+01:00 NOTICE: HORDE [kronolith] PHP ERROR: 
Undefined property: Kronolith_Driver_Ical::$_permission [pid 5829 on 
line 671 of "/home/user/horde/kronolith/lib/Driver/Ical.php"]
2012-02-20T14:18:55+01:00 DEBUG: HORDE 1. Kronolith::header() 
/home/user/horde/kronolith/index.php:144
2. Kronolith::includeJSVars() /home/user/horde/kronolith/lib/Kronolith.php:92
3. Kronolith_Calendar_Remote->toHash() 
/home/user/horde/kronolith/lib/Kronolith.php:231
4. Kronolith_Calendar_Remote->hasPermission() 
/home/user/horde/kronolith/lib/Calendar/Remote.php:176
5. Kronolith_Driver_Ical->getPermission() 
/home/user/horde/kronolith/lib/Calendar/Remote.php:130
6. Horde::errorHandler() /home/user/horde/kronolith/lib/Driver/Ical.php:671
02/20/2012 12:01:50 AM d-fens (at) 00010111 (dot) de Comment #1
Patch ⇒ No
State ⇒ Unconfirmed
Milestone ⇒
Queue ⇒ Kronolith
Summary ⇒ CalDav: Wrong .ics URLs generated, Details for events not accesible
Type ⇒ Bug
Priority ⇒ 2. Medium
Reply to this comment
hi,

  adding a owncloud calendar as external calander with url like 
http://192.168.1.99/owncloud/apps/calendar/caldav.php/calendars/user/default 
calender doesn't find the events althouh they do appear in the 
calendar, and after clicking around the external calender isn't shown 
n the left side anymore :(

it looks for the ics at 
http://192.168.1.99/owncloud/apps/calendar/caldav.php/calendars/user/default/owncloud/apps/calendar/caldav.php/calendars/user/default%20calendar/860a9db6-b4b2-4d59-b402-2d321ad119da.ics/ (path added 
twice)

Saved Queries