[horde] horde-remove-user-data
Jan Schneider
jan at horde.org
Mon Aug 17 16:34:32 UTC 2015
Zitat von Stephan <steffo76 at gmx.de>:
> Hi list,
>
> I am having problems removing userdata from the database. If I call
> horde-remove-user-data it says that there were errors regarding ingo
> and turba. The log says:
>
> 2015-08-11T16:17:21+02:00 ERR: HORDE [ingo] Removing user data is
> not supported with the current filter storage backend. [pid 13719 on
> line 323 of "/var/www/horde5/ingo/lib/Storage.php"]
> 2015-08-11T16:17:28+02:00 ERR: HORDE [turba] SQL QUERY FAILED:
> Unknown column 'owner_id' in 'where clause'
> SELECT uid FROM addrbook WHERE owner_id = 'xyz' [pid 13719
> on line 259 of "/usr/local/lib/php/Horde/Db/Adapter/Mysql.php"]
> 2015-08-11T16:17:28+02:00 ERR: HORDE [turba] Server error when
> deleting data. [pid 13719 on line 508 of
> "/var/www/horde5/turba/lib/Driver/Sql.php"]
> 2015-08-11T16:17:28+02:00 ERR: HORDE [horde] There was an error
> removing an address book for xyz [pid 13719 on line 366 of
> "/var/www/horde5/turba/lib/Application.php"]
>
> Since ingo is using Sieve this is okay but I don't get why the
> addressbook doesn't get removed. I have a global address book
> declared in turbas backends.local.php to which the
>
> Unknown column 'owner_id' in 'where clause'
> SELECT uid FROM addrbook WHERE owner_id = 'xyz' [pid 13719 on line
> 259 of "/usr/local/lib/php/Horde/Db/Adapter/Mysql.php"]
>
> belongs but even if I disable this address book and call
> horde-remove-user-data whith -c it doesn't delete the user's
> personal address book.
>
> Any hints ?
>
> Thanks,
> Stephan
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
Looks like owner_id is hardcoded in the SQL driver when deleting all
contacts, which is obviously wrong. Instead we should check if an
__owner attribute exists and use that eventually.
--
Jan Schneider
The Horde Project
http://www.horde.org/
More information about the horde
mailing list