undocumented ZODBRoleManager.listAssignedPrincipals() is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope PAS |
Invalid
|
Undecided
|
Unassigned |
Bug Description
undocumented ZODBRoleManager
ZODBRoleManager
Plone (PlonePAS) uses a properties plugin that implements IPropertiesPlugin and IUserEnumeratio
Is this a valid use case?
If yes, listAssignedPri
As listAssignedPri
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Florian Friesdorf wrote: .listAssignedPr incipals( ) might be broken .listAssignedPr incipals( ) is undocumented and is broken nPlugin. Every normal users rvice.searchUse rs() once
> Public bug reported:
>
> undocumented ZODBRoleManager
>
> ZODBRoleManager
> or Plone is doing something wrong.
>
> Plone (PlonePAS) uses a properties plugin that implements
> IPropertiesPlugin and IUserEnumeratio
> therefore is returned twice by PluggableAuthSe
> for the properties plugin named mutable_properties and once for the real
> user plugin named source_users.
>
> Is this a valid use case?
I don't think so: why is the properties plugin enumerating users? In
any case, there is a strong requirement that enumerating plugins return
non-conflicting IDs for users / groups / roles.
In any case, this issue should be discussed on the PAS list, and not in
the tracker (unless the consensus on the list is that this is a bug in
PAS, and not in Plone's plugin).
> If yes, listAssignedPri ncipals( ) is broken as it expects ncipals( ) is undocumented, is there an official way to
> searchPrincipals() to return only one entry for an exact principal id.
>
> As listAssignedPri
> get all principals that have a certain global role?
status invalid
Tres. ======= ======= ======= ======= ======= ======= ======= ======= ==== palladion. com enigmail. mozdev. org
- --
=======
Tres Seaver +1 540-429-0999 <email address hidden>
Palladion Software "Excellence by Design" http://
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkr OOv4ACgkQ+ gerLs4ltQ6E/ gCgg399uu1g7zqz 0Bv+owwFifLX qzzmcNqaS8zJdC6 5m
UtgAoNnQwxsLoi0
=tK6w
-----END PGP SIGNATURE-----