Closed Bug 640750 Opened 13 years ago Closed 6 years ago

LDAPSchemaElement.getOptionalValues() mangles values

Categories

(Directory :: LDAP Java SDK, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: nkinder, Assigned: nkinder)

Details

Attachments

(1 file)

The LDAPSchemaElement.getOptionalValues() is designed to print out all optional qualifiers that are set for a schema element in a string that can be used in a schema definition.  The problem is that spaces are not added between the qualifiers when there are more than one.  This causes the resulting values to be mangled.

For example, assume one sets the following matching rule qualifiers for an LDAPAttributeSchema object:

    EQUALITY foo
    ORDERING bar

When printing out the attribute definition using LDAPAttributeSchema.getValue(), the getOptionalValues() method is called and results in the following string for the matching rule portion of the definition:

    Equality fooOrdering bar

When more than multiple optional qualifiers are concatenated in getOptionalValues(), a space needs to be used between them.
Attached patch PatchSplinter Review
This small change fixes this problem by adding a space between optional qualifiers when more than one value is concatenated.
Assignee: nobody → nkinder
Status: NEW → ASSIGNED
Attachment #518507 - Flags: review?
Attachment #518507 - Flags: review? → review+
Not activity for at least 6 years, closing.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: