Closed
Bug 1287774
Opened 8 years ago
Closed 8 years ago
ldapjdk needs to support IPv6 addresses
Categories
(Directory :: LDAP C SDK, defect)
Directory
LDAP C SDK
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mreynolds, Unassigned)
Details
Attachments
(1 file, 4 obsolete files)
6.60 KB,
patch
|
mreynolds
:
review?
richm
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0
Build ID: 20160606100503
Steps to reproduce:
Use a java client application that uses ldapjdk to connect to a Directory Server. In this case I am using the 389-console package found on a Fedora OS.
Actual results:
When setting LDAP referrals each character that is entered is validated by the ldpajdk, but it only expects IPv4 characters. So when you enter a colon, or a bracket, the value becomes invalid.
Expected results:
The ldapjdk should allow the characters needed for IPv6 addresses. This also includes the ldap URL format for IPv6, rfc 2732:
ldap://[IPv6 Address]:389
Reporter | ||
Comment 1•8 years ago
|
||
Proposed patch coming soon...
Reporter | ||
Comment 2•8 years ago
|
||
hg diff for ldapjdk fix for IPv6 addresses
Attachment #8773799 -
Flags: review?
Reporter | ||
Comment 3•8 years ago
|
||
I tried this, but it failed:
hg push review
pushing to ssh://reviewboard-hg.mozilla.org/autoreview
searching for appropriate review repository
abort: no review repository found
So the attached patch is all I got.
Reporter | ||
Comment 4•8 years ago
|
||
This is the repo I was working on:
hg clone https://hg.mozilla.org/projects/ldap-sdks/
Comment 5•8 years ago
|
||
The https://hg.mozilla.org/projects/ldap-sdks repo isn't configured in MozReview because practically nobody uses it. You'll have to ask for review the old fashioned way.
I'll adjust the Bugzilla state to direct this to someone appropriate...
Updated•8 years ago
|
Component: General → LDAP C SDK
Product: Developer Services → Directory
Version: Trunk → other
Comment 6•8 years ago
|
||
Comment on attachment 8773799 [details] [diff] [review]
bug1287774.diff
glandium reviewed the last commit to this repo. So assigning review to him.
Attachment #8773799 -
Flags: review? → review?(mh+mozilla)
Reporter | ||
Comment 7•8 years ago
|
||
Revised patch based off of review by nhosoi@redhat.com
Attachment #8773799 -
Attachment is obsolete: true
Attachment #8773799 -
Flags: review?(mh+mozilla)
Attachment #8774944 -
Flags: review?
Reporter | ||
Updated•8 years ago
|
Attachment #8774944 -
Flags: review? → review?(mh+mozilla)
Comment 8•8 years ago
|
||
Comment on attachment 8774944 [details] [diff] [review]
bug1287774.diff
Review of attachment 8774944 [details] [diff] [review]:
-----------------------------------------------------------------
I only reviewed build system changes in that repository. I don't know who can review java changes there, or if there's actual interest in taking fixes for the java code there. I think this is largely unmaintained. I think the closest module associated with this code is https://wiki.mozilla.org/Modules/All#Directory_SDK . I haven't heard from any of the people listed there in years. The latest thread on dev-tech-ldap mentioning Java or JDK was in 2011.
Attachment #8774944 -
Flags: review?(mh+mozilla)
(In reply to Mike Hommey [:glandium] from comment #8)
> I don't know who
> can review java changes there, or if there's actual interest in taking fixes
> for the java code there. I think this is largely unmaintained. I think the
> closest module associated with this code is
> https://wiki.mozilla.org/Modules/All#Directory_SDK . I haven't heard from
> any of the people listed there in years. The latest thread on dev-tech-ldap
> mentioning Java or JDK was in 2011.
I've previously worked on both the LDAP JDK and the LDAP C SDK (though much of my history is goign to be in CVS and not Mercurial). They are largely unmaintained, but they are still used. I think that this is a worthwhile change to accept. Noriko Hosoi (nhosoi@redhat.com) was also a previous committer/reviewer, and she has already reviewed this patch outside of this bug.
Comment 10•8 years ago
|
||
Comment on attachment 8774944 [details] [diff] [review]
bug1287774.diff
Review of attachment 8774944 [details] [diff] [review]:
-----------------------------------------------------------------
The patch looks fine, and this seems like a good addition given that IPv6 usage is becoming much more common.
Attachment #8774944 -
Flags: review+
Comment 11•8 years ago
|
||
https://bugzilla.mozilla.org/attachment.cgi?id=8774944&action=diff#a/java-sdk/ldapjdk/netscape/ldap/LDAPUrl.java_sec3
looks like the indentation is off at line 190
Other than that, LGTM
Updated•8 years ago
|
Attachment #8774944 -
Flags: review+
Reporter | ||
Comment 12•8 years ago
|
||
Revised patch with indentation fix
Attachment #8774944 -
Attachment is obsolete: true
Attachment #8778930 -
Flags: review?
Reporter | ||
Comment 13•8 years ago
|
||
(In reply to Rich Megginson from comment #11)
> https://bugzilla.mozilla.org/attachment.cgi?id=8774944&action=diff#a/java-
> sdk/ldapjdk/netscape/ldap/LDAPUrl.java_sec3
>
> looks like the indentation is off at line 190
>
> Other than that, LGTM
New patch attached that fixed the indentation
Reporter | ||
Comment 14•8 years ago
|
||
Fixed indentation
Attachment #8778930 -
Attachment is obsolete: true
Attachment #8778930 -
Flags: review?
Reporter | ||
Comment 15•8 years ago
|
||
Fixed indentation
Attachment #8778940 -
Attachment is obsolete: true
Attachment #8778947 -
Flags: review?
Updated•8 years ago
|
Attachment #8778947 -
Flags: review+
Comment 17•8 years ago
|
||
pushed
remote: https://hg.mozilla.org/projects/ldap-sdks/rev/f9d7552c8188
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(richm)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•