Closed Bug 52775 Opened 25 years ago Closed 25 years ago

LDAPSchema.getSchema() makes incorrect LDAP request; breaks interoperability

Categories

(Directory Graveyard :: LDAP Java SDK, defect, P3)

x86
All
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gerv, Assigned: miodrag)

References

()

Details

Attachments

(1 file)

On line 874 of LDAPSchema.java, in the function readSchema(), the code does the following: return readSchema( ld, dn, new String[] { "*", "ldapsyntaxes" } ); On all directory servers except Netscape, this results in the directory returning only the ldapsyntaxes to the LDAPSchema object. Code which works with all directories, including OpenLDAP, is: return readSchema( ld, dn, new String[] { "*", "ldapsyntaxes", "matchingRules", "attributeTypes", "objectClasses" } ); This is a serious bug because it means the Netscape Java SDK will not correctly work with any other directories, if you are working with schema. Gerv
Reassigning to Miodrag for investigation. I agree this is a bug -- the attributes are all operational and should be requested by name.
Assignee: mcs → miodrag
Changed the status to assigned
Status: NEW → ASSIGNED
Miodrag - any joy? Gerv
Here's a patch :-) One line... Gerv
Keywords: patch
Attached patch patchSplinter Review
The bug has been fixed. Please cvs update and rebuild ldapjdk to pick up the fix.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Thanks very much, Miodrag :-) Now all we need is an official release with the fix in... Gerv
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: