Apache Directory Project - [jira] Created: (DIRSERVER-1104) Mixing Attribute value types

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > November 2007 > [jira] Created: (DIRSERVER-1104) Mixing Attribute value types





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Created: (DIRSERVER-1104) Mixing Attribute value types
Alex Karasulu (JIRA)

2007-11-21, 1:11 am

Mixing Attribute value types results in write failures
------------------------------------------------------

Key: DIRSERVER-1104
URL: https://issues.apache.org/jira/browse/DIRSERVER-1104
Project: Directory ApacheDS
Issue Type: Bug
Components: core
Affects Versions: 1.5.1, bigbang
Reporter: Alex Karasulu
Assignee: Alex Karasulu
Priority: Blocker
Fix For: bigbang


This new bug is really serious and tricky. It has eluded us but comes out now thanks to a crazy size effect it has on Windows.

First a characterization of the bug. An entry (Attributes object) may be valid and still contain an Attribute which has both byte[] and String array values. Some may suggest that this is invalid since attributes are, according to their syntax, either bi
nary of human readable. However this is not the case. The fact that an attributeType is human readable has no bearing on how the user supplies the value. Human readable data can be provided as binary information so long as it still conforms to the synt
ax of the attribute.

Here's an example entry which would cause such a failure:

dn: cn=person1,ou=system
objectClass: organizationalPerson
cn: person1
sn: sn_person1
seealso: cn=Good One,ou=people,o=sevenSeas
seealso:: Y249QmFkIEXDqWvDoCxvdT1wZW9wbGUsbz1zZXZl
blNlYXM=

This entry will cause the AttributeSerializerUtils.serialize() method to blow a ClassCastException. Note the log of the error can be found attached to this issue.


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com