[Zope] [BUG] in changeOwner

Jerome Alet alet@unice.fr
Wed, 9 May 2001 13:55:48 +0200 (MET DST)


Hi,

it seems (in fact I'm sure) there's a bug in changeOwner's behavior: 

I suspect changeOwner of changing ownership on the folder's content
when you change ownership on the folder itself, e.g.:

	Folder-A
	|--Folder-B
	|--Object-C
	|--Folder-D
	   |--Object-E

if I change ownership on A but not its subobjects, then it seems that
ownership is changed on A,B, C and D, while E retains its original
ownership.

is it normal ? To me it's not.

it seems like if you try to change ownership recursively from an object
(Folderish) on something you already own, changeOwner returns successfully
immediately even if you're not the owner of the complete subtree.

AccessControl/Owner.py says:

--- CUT ---
if old==new: return
--- CUT ---

which seems to confirm my point.

any comment ?

Jerome Alet - alet@unice.fr - http://cortex.unice.fr/~jerome
Fac de Medecine de Nice        http://wwwmed.unice.fr 
Tel: (+33) 4 93 37 76 30     Fax: (+33) 4 93 53 15 15
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE