[horde] horde-remove-user-data does not delete data from horde_histories

Michael Menge michael.menge at zdv.uni-tuebingen.de
Thu Jun 18 07:44:02 UTC 2020


Quoting Michael J Rubinsky <mrubinsk at horde.org>:

> Quoting Michael Menge <michael.menge at zdv.uni-tuebingen.de>:
>
>> Hi,
>>
>> i have discovered that deleting a user with horde-remove-user-data does not
>> remove entries from the horde_histories table.
>>
>> I understand that the data may be needed if it is reladed to a  
>> shared addressbook, kalendar ...
>> that still exists. But IMHO deleting a share should delete related  
>> entries in horde_history.
>
> If you were to just delete the share and all of it's history entires  
> when the share is deleted, any synchronized clients would never have  
> the data removed. Instead, each individual object from each share  
> must be deleted individually so the history table can log the  
> deletion.
>
>

Thank you for the information. But i think there is a flaw.

There are IMHO two cases. the user deletes the share, and the user is deleted:
I will begin with the second

2. If the user is deleted the user is unable to authenticate/synchronize
    and any other user that might have had access to the share will have
    lost it, as the  entriy in *_sharesng and *_shares_users are deleted
    with the share

1. If the share is deleted by the user the synchronizing would/should
    fail as the ownership/permissions for the share cannot be resolved.

So your argument that "any synchronized clients would never have the  
data removed"
is true with and without the data in horde_histories.



--------------------------------------------------------------------------------
M.Menge                                Tel.: (49) 7071/29-70316
Universität Tübingen                   Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung          mail:  
michael.menge at zdv.uni-tuebingen.de
Wächterstraße 76
72074 Tübingen



More information about the horde mailing list