Issue 7539 - Bug in JLDAP LDAPAttributeSchema.java code
Summary: Bug in JLDAP LDAPAttributeSchema.java code
Status: UNCONFIRMED
Alias: None
Product: JLDAP
Classification: Unclassified
Component: JLDAP (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-11 18:52 UTC by maleks@gmail.com
Modified: 2020-03-13 19:05 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description maleks@gmail.com 2013-03-11 18:52:07 UTC
Full_Name: Aleksandar M.
Version: JLDAP
OS: Windows 8
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (78.73.228.218)


Hello,
This is not a bug in OpenLDAP but in the Java client library, JLDAP.

The LDAPAttributeSchema.java file is not parsing attributes correctly.
The issue is in the method:

public LDAPAttributeSchema(String raw)

It doesn't set the usage and collective fields when using that method.

The fix is to add the following code:
this.usage = parser.getUsage();
this.collective = parser.getCollective();

I have added it and uploaded the changed file to the incoming directory.
The file is named AleksandarM-LDAPAttributeSchema-20130311.java
Comment 1 Quanah Gibson-Mount 2017-04-03 17:18:38 UTC
moved from Incoming to Software Bugs