Bug 34720 - [Patch] alternate implementation for user.equals()
Summary: [Patch] alternate implementation for user.equals()
Status: NEW
Alias: None
Product: Lenya
Classification: Unclassified
Component: Access Control (show other bugs)
Version: 1.2.3
Hardware: Other other
: P2 normal
Target Milestone: 1.2.7
Assignee: Lenya Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-03 11:28 UTC by Maxim Wasiliev
Modified: 2007-10-08 12:36 UTC (History)
0 users



Attachments
Fix (1.48 KB, patch)
2005-05-04 13:33 UTC, Maxim Wasiliev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Wasiliev 2005-05-03 11:28:07 UTC
method Identity.belongsTo(AccreditableManager) uses '==' to compare users.
It compares object instances but not users themselves in a
AccreditableManager-specific way.

This blocks developing of AccrMmanagers which do not store instances for all
users, but create them by request (because of externally mutable users repository).

Solution could be to implement Item.equals, that utilize manager-specific way of
comparision, and use it instead of '=='.
Comment 1 Maxim Wasiliev 2005-05-04 13:33:07 UTC
Created attachment 14927 [details]
Fix

This patch changes comparision to use User.equals
and adds method FileUser.equals, which compares config directories and ids.
Comment 2 Richard Frovarp 2007-10-08 12:36:18 UTC
Does not appear to be valid for the 2.0 trunk.