6.0.0-beta1
7/3/25

[#6967] user data removal patch
Summary user data removal patch
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester vilius (at) lnk (dot) lt
Created 06/23/2008 (6219 days ago)
Due
Updated 07/14/2008 (6198 days ago)
Assigned 06/23/2008 (6219 days ago)
Resolved 07/14/2008 (6198 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/14/2008 07:16:39 AM Jan Schneider State ⇒ Not A Bug
 
07/14/2008 07:11:10 AM vilius (at) lnk (dot) lt Comment #16 Reply to this comment
Sorry for the delay, very busy pas two weeks here.



I think we can mark this as "Not a bug" because I've already made 
CyrSQL not extend from SQL driver. Will upload it to the new ticket 
shortly, after someone will answer my question about it in the dev@ 
list.
07/13/2008 09:18:42 AM Jan Schneider Comment #15 Reply to this comment
Ping again?
06/30/2008 07:56:59 PM Chuck Hagenbuch Comment #14 Reply to this comment
Ping?
06/30/2008 07:56:51 PM Chuck Hagenbuch Deleted Original Message
 
06/26/2008 12:49:08 PM Jan Schneider Comment #13 Reply to this comment
You would have to refactor the removeUser() methods. Either split off 
the actual user removal into a separate method, say _removeUser() and 
call that from cyrsql instead of parent::removeUser(), or add an 
additional parameter to Auth_sql::removeUser() to *not* run 
removeUserData(), and set this parameter when called from Auth_cyrsql. 
The first one is cleaner IMO.
06/26/2008 11:54:49 AM vilius (at) lnk (dot) lt Comment #12 Reply to this comment
Ah, OK. What could be a possible compromise here?
06/26/2008 11:38:15 AM Jan Schneider Comment #11 Reply to this comment
But you patch unconditionally removes returning errors from
Auth_sql::removeUser() so this won't report any errors for people
using the sql driver directly. This is of course not acceptable.
Ghm, correct me if I'm wrong but isn't application's removeUserData()
call reports these errors anyway? With my patch and *without*
Yes, but it no longer is passed through Auth_sql::removeUser() to the 
admin interface calling removeUser(). Only if using the cyrsql driver, 
but not if using the sql driver.
06/26/2008 10:53:56 AM vilius (at) lnk (dot) lt Comment #10 Reply to this comment
As far as I understand from Chuck's comment, you only need this
because you are using the cyrsql driver and don't want to stop
removing the user if parent::removeUser() is returning an error due
to the removeUserData() call in the sql driver. Is this correct?
Yes.
But you patch unconditionally removes returning errors from
Auth_sql::removeUser() so this won't report any errors for people
using the sql driver directly. This is of course not acceptable.
Ghm, correct me if I'm wrong but isn't application's removeUserData() 
call reports these errors anyway? With my patch and *without* 
http://bugs.horde.org/ticket/6968 patches I'm still getting errors 
from nag, mnemo etc. BUT the user is removed succefully from the 
backend. What is the difference between calling removeUser() from 
Auth_cyrsql and Auth_sql? As I see in the source it executes exactly 
the same API call in the needed applications.
06/26/2008 10:43:45 AM Jan Schneider Comment #9 Reply to this comment
As far as I understand from Chuck's comment, you only need this 
because you are using the cyrsql driver and don't want to stop 
removing the user if parent::removeUser() is returning an error due to 
the removeUserData() call in the sql driver. Is this correct?



But you patch unconditionally removes returning errors from 
Auth_sql::removeUser() so this won't report any errors for people 
using the sql driver directly. This is of course not acceptable.
06/26/2008 10:31:19 AM vilius (at) lnk (dot) lt Comment #8 Reply to this comment
Sorry, I don't understand. What exactly do you mean?
06/26/2008 10:28:58 AM Jan Schneider Comment #7 Reply to this comment
How, if the removeUserData() implementations don't return an error?
06/24/2008 09:13:11 AM vilius (at) lnk (dot) lt Comment #6 Reply to this comment
Well, PEAR::Error is returned in applications's removeUserData anyway 
except that in notification message it's not horde.warning, it's 
horde.error.
06/24/2008 07:55:04 AM Jan Schneider Comment #5 Reply to this comment
We should not stop the removal process if removeUserData fails, but 
I'm with Chuck here, we should still raise a warning message, and then 
continue.
06/23/2008 08:41:36 PM vilius (at) lnk (dot) lt Comment #4 Reply to this comment
Yep, it's Cyrus.



The question is: do we consider user data as _vital_ part of user 
removal process? I don't see why it should be.
06/23/2008 08:38:55 PM Chuck Hagenbuch Comment #3 Reply to this comment
Oh, this is just for the SQL driver - I misunderstood. What sort of 
dependencies are you talking about, though - is this cyrus again?
06/23/2008 08:37:20 PM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
No, ignoring any errors isn't the way to go here - instead, if the 
process should _really_ continue, the calling code should log the 
result and then continue.
06/23/2008 07:17:33 PM vilius (at) lnk (dot) lt Comment #1
State ⇒ Unconfirmed
New Attachment: sql.php.patch
Patch ⇒ Yes
Milestone ⇒
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ user data removal patch
Queue ⇒ Horde Framework Packages
Reply to this comment
If removeUser() is not able to remove user data, it should not return 
false, because drivers that depend on it stops further removal of a 
user from other backends.

Saved Queries