Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DAViCal: General

moving event to bound collection

 

 

DAViCal general RSS feed   Index | Next | Previous | View Threaded


davical at aiic

Nov 13, 2011, 8:47 AM

Post #1 of 3 (374 views)
Permalink
moving event to bound collection

Hi all

There seems to be a bug with the move of an event to a bound
collection. I use 0.9.9.7-1 on a debian and have the following
situation:

User2 is owner of the collection /user2/shared.
User1 has write access to /user2/shared which is bound as /user1/shared.

1) User1 creates an event e1 as /user1/home/e1.ics on his home calendar
2) User1 moves the event e1 to the bound collection /user1/shared.

Afterwards, the event is stored with the dav_name /user1/shared/e1.ics
and not /user2/shared/e1.ics. Thus, it is still in the DB, but cannot
be found anymore.

cheers
Martin

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Davical-general mailing list
Davical-general [at] lists
https://lists.sourceforge.net/lists/listinfo/davical-general


davical at aiic

Nov 21, 2011, 11:30 AM

Post #2 of 3 (340 views)
Permalink
Re: moving event to bound collection [In reply to]

Hi all

the following is a quick and dirty patch

cheers
Martin


--- caldav-MOVE.php.orig 2011-11-21 20:26:37.000000000 +0100
+++ caldav-MOVE.php 2011-11-21 20:26:24.000000000 +0100
@@ -102,7 +102,7 @@
if ( !$qry->Exec('move') ) rollback(500);

$src_name = $src->dav_name();
-$dst_name = $dest->dav_name();
+$dst_name = ($dest->IsBinding() ? $dest->bound_from() : $dest->dav_name() );
$src_collection = $src->GetProperty('collection_id');
$dst_collection = $dest->GetProperty('collection_id');
$src_user_no = $src->GetProperty('user_no');




------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Davical-general mailing list
Davical-general [at] lists
https://lists.sourceforge.net/lists/listinfo/davical-general


andrew at morphoss

Nov 22, 2011, 12:14 AM

Post #3 of 3 (327 views)
Permalink
Re: moving event to bound collection [In reply to]

On Mon, 2011-11-21 at 20:30 +0100, Martin wrote:
> Hi all
>
> the following is a quick and dirty patch
>
> cheers
> Martin
>
>
> --- caldav-MOVE.php.orig 2011-11-21 20:26:37.000000000 +0100
> +++ caldav-MOVE.php 2011-11-21 20:26:24.000000000 +0100
> @@ -102,7 +102,7 @@
> if ( !$qry->Exec('move') ) rollback(500);
>
> $src_name = $src->dav_name();
> -$dst_name = $dest->dav_name();
> +$dst_name = ($dest->IsBinding() ? $dest->bound_from() : $dest->dav_name() );
> $src_collection = $src->GetProperty('collection_id');
> $dst_collection = $dest->GetProperty('collection_id');
> $src_user_no = $src->GetProperty('user_no');
>

Thanks for tracking that down. I'll apply it now.

Cheers,
Andrew.
--
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com +64(272)DEBIAN
Though a superhero, Bruce Schneier disdains the use of a mask or secret
identity as 'security through obscurity'.

------------------------------------------------------------------------
Attachments: signature.asc (0.82 KB)

DAViCal general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.