Issue Details (XML | Word | Printable)

Key: DIRSERVER-231
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alex Karasulu
Reporter: Trustin Lee
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Refactor Attributes implementations

Created: 16/Jun/05 11:42 AM   Updated: 09/Jul/08 01:40 PM
Return to search
Component/s: ldap
Affects Version/s: pre-1.0
Fix Version/s: pre-1.0

Time Tracking:
Not Specified

Resolution Date: 25/Oct/05 03:39 PM


 Description  « Hide
There are a few implementations of JNDI Attributes type, but some of they seem to exist due to historical reason. Let's review and replace them with BasicAttributes if necessary.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alex Karasulu added a comment - 25/Oct/05 03:39 PM
Not going to bother with this since our attributes impl works just fine and we have the code to change things if need be. We just need to cut out this Lockable object crap.

Emmanuel Lecharny added a comment - 27/Oct/05 06:06 AM
The specific LockableAttributeImpl class muts be refactored in two directions :
- as Alex said, 'Lockability' is useless.
- much more important, the class *must* be aware of it's attribute type. A user could perfectly store a String or a byte array in an attribute, depending on the attribute type being binary or not. Actually, it is supposed to be a String, and this is not the best option. We should accept byte[].

The following transformation table should be applied :

    Attribute's type client type server type
       String String String
       String byte[] String
       OctetString String byte[]
       OctetString byte[] byte[]
       whatever XXX error where XXX is not String or Byte