[dev] [cvs] commit: turba/lib Driver.php turba/lib/Driver sql.php
Karsten Fourmont
fourmont at gmx.de
Wed Jan 10 23:50:30 PST 2007
Hi,
> yes. When I was logged in as user "admin" and deleted the account
> "johndoe" in user mngmt., admin's address book got deleted, not
> johndoe's...
I looked into this again. Version 1.90 of sql.php (before my change)
looks like this in removeUserData($user):
...[correctly identify johndoe's shares in $sources]...
foreach ($sources as $source) {
if (!$this->_deleteAll($source)) {
return PEAR::raiseError(...)
}
}
However deleteAll is
"function _deleteAll()" (line 303)
and so completly ignores the $source argument.
It uses $this->share->get('uid') to identify the uid, but this is not
the right one.
Cheers,
Karsten
Karsten Fourmont wrote:
> Hi,
>
>> Hmm. I wonder if something else is going on then. I can't reproduce
>> this behavior on *any* of the three HEAD installs I have running at
>
> I'll have a look on my machine again. Maybe it's something wrong with
> its installation...
>
> I'll let you know.
>
> Karsten
>
>
> Quoting Michael Rubinsky <mike at theupstairsroom.com>:
>
>> Quoting Karsten Fourmont <fourmont at gmx.de>:
>>
>>> Hi,
>>>
>>>> Was this broken for you?
>>>
>>> yes. When I was logged in as user "admin" and deleted the account
>>> "johndoe" in user mngmt., admin's address book got deleted, not
>>> johndoe's...
>>
>> Hmm. I wonder if something else is going on then. I can't reproduce
>> this behavior on *any* of the three HEAD installs I have running at
>> the moment (before your change, of course). Is anyone else seeing
>> this?
>>
>> I'm trying to avoid passing around the source name like that since
>> it's already encapsulated in the driver object...
>>
>>
>>
>>
>> Thanks,
>> mike
>>
>> --
>> The Horde Project (www.horde.org)
>> mrubinsk at horde.org
>
>
>
> --Horde developers mailing list - Join the hunt: http://horde.org/bounties/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org
More information about the dev
mailing list