Summary | Nag task lists over WebDAV don't work |
Queue | Nag |
Queue Version | 2.2 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | bklang (at) horde (dot) org, jan (at) horde (dot) org |
Requester | bb (at) apc (dot) ag |
Created | 05/28/2008 (6260 days ago) |
Due | |
Updated | 07/09/2008 (6218 days ago) |
Assigned | 05/29/2008 (6259 days ago) |
Resolved | 07/09/2008 (6218 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | 2.2.1 |
Patch | No |
State ⇒ Resolved
bug report for the hall of fame.
http://cvs.horde.org/diff.php/nag/lib/api.php?r1=1.188&r2=1.189&ty=u
to existing->parent, am i right - it works fine here without.
There's also an iCal import function that uses ->parent instead of
parent_id, too. I assume that function must also be changed.
New Attachment: api.php.patch
After doing that, you can remove the patch from line 605, setting ''
to existing->parent, am i right - it works fine here without.
"parent_id" and api.php "parent" - should have known that, i may have
used my time to track down this annoying VALARM problem ^^.
In Driver.php, fromiCalendar($vTodo) reads the parent_id from the
vTodo file and returns that in parent_id. However, line 619 of api.php
uses the parent property for saving, not parent_id. Modifying that
line in this way:
isset($task->parent_id) ? $task->parent_id :
$existing->parent_id,
solves saving subtasks from Kontact.
I tested all cases (creating new task in Horde and in Kontact, editing
existing ones) without error messages or the tasks getting out of
sync. So I propose this change to be made in CVS.
RELATED-TO fields pointing to the parent.
Looked at the sql queries done and there is no parent set where
subtasks are added. I guess on the way from parsing (the parent is set
in the parser, did some logging) to persisting it, the parent gets
lost, but i don't know where yet.
Inserted on line 605 of nag/lib/api.php:
//apc: avoid NOT NULL constraint of the database
if (! $existing->parent) $existing->parent = '';
and reverted the old change.
Creating tasks and subtasks works; they are displayed correctly (with
hierarchy) in Kontact but when I change something there, the hierarchy
is broken. I suspect that the problem is with Kontact because it
didn't work in -RC3, either. I'll try to track this down further.
part is missing - you have to add this by hand for now.
Used your patch and now i can subsribe to the tasklist.
Adding tasks and subtasks works fine with webinterface.
Adding them via webdav is broken with some the null-constraint message
below, the workaround provided by bb@apc.ag can not be used, subtasks
are broken than.
The method "browse" is not defined in the API for nag. [pid 4870 on
line 361 of "/var/www/test1/horde/lib/Horde/RPC/webdav.php"]
session. I would suggest you log out and start a new session. It
also would not hurt to check the filesystem permissions as sometimes
patching or CVS updating can "adjust" them for you.
Whats missing: Nag still displays the wrong abonnent url, the "user"
part is missing - you have to add this by hand for now.
And the patch with "existing->parent" is needed to create new "Root"
tasks, but it breaks creation of subtasks, so this is not solved yet.
saving new entries onto the server. Editing existing entries and
publishing that to the server doesn't work, I get "Access denied when
uploading .....ics".
This is in the horde log:
DB Error: null value violates not-null constraint: UPDATE nag_tasks
SET task_creator = 'bb', task_assignee = 'MAILTO:bb', task_name =
'Teste Nag@baby', task_desc = 'Mehrzeilige
Beschreibung
mit neuem Text', task_start = 1214431200, task_due = 0,
task_priority = 5, task_estimate = '0.00', task_completed = 0,
task_completed_date = 0, task_category = '', task_alarm = 0,
task_parent = NULL, task_private = 0 WHERE task_owner = 'bb' AND
task_id = 'fe4b7e6e2d4e367ea68f036b72c1bfc0' [nativecode=ERROR: null
value in column "task_parent" violates not-null constraint] [pid 5176
on line 280 of
"/home/bb/src/groupware/horde/horde-webmail-1.1.1/nag/lib/Driver/sql.php"]
All the other entries in the DB have task_parent = '' but not NULL.
So I changed line 619 of nag/lib/api.php from
isset($task->parent) ? $task->parent :
$existing->parent,
to:
isset($task->parent) ? $task->parent : '',
and now it seems to work.
Thank you for fixing this!
The method "browse" is not defined in the API for nag. [pid 4870 on
line 361 of "/var/www/test1/horde/lib/Horde/RPC/webdav.php"]
Please try what I just committed to CVS. Two features have been
fixed: the ability to download .ics files and the ability to browse
within tasklists.
http://cvs.horde.org/diff.php/nag/lib/api.php?r1=1.183&r2=1.184&ty=u
The mentioned workaround wont work correct when it comes to uploading
and does not confirm to the url nag tolds to use.
Any progress here to get it working?
nag/lib/api.php to the 2.2_RC2 versions and now it "works"...
Bug #6947has some additional information.Assigned to Jan Schneider
State ⇒ Assigned
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Summary ⇒ Nag task lists over WebDAV don't work
Type ⇒ Bug
Queue ⇒ Nag
I made a clean 2.2 installation on a test server and tried to access
the /nag/user/user.ics (and /nag/user.ics) files using Kontact and
curl. In both cases, no content is given back; the right URL gives 200
and 'HORDE [error] [horde] Invalid tasklist requested. [pid 28497 on
line 361 of
"/home/bb/src/groupware/horde/horde-webmail-1.1/lib/Horde/RPC/webdav.php"]' in
the log; the wrong one gives 404.