Closed Bug 1287774 Opened 8 years ago Closed 8 years ago

ldapjdk needs to support IPv6 addresses

Categories

(Directory :: LDAP C SDK, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mreynolds, Unassigned)

Details

Attachments

(1 file, 4 obsolete files)

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
Proposed patch coming soon...
Attached patch bug1287774.diff (obsolete) — Splinter Review
hg diff for ldapjdk fix for IPv6 addresses
Attachment #8773799 - Flags: review?
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.
This is the repo I was working on: hg clone https://hg.mozilla.org/projects/ldap-sdks/
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...
Component: General → LDAP C SDK
Product: Developer Services → Directory
Version: Trunk → other
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)
Attached patch bug1287774.diff (obsolete) — Splinter Review
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?
Attachment #8774944 - Flags: review? → review?(mh+mozilla)
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 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+
Attachment #8774944 - Flags: review+
Attached patch bug1287774.diff (obsolete) — Splinter Review
Revised patch with indentation fix
Attachment #8774944 - Attachment is obsolete: true
Attachment #8778930 - Flags: review?
(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
Attached patch bug1287774.diff (obsolete) — Splinter Review
Fixed indentation
Attachment #8778930 - Attachment is obsolete: true
Attachment #8778930 - Flags: review?
Attached patch bug1287774.diffSplinter Review
Fixed indentation
Attachment #8778940 - Attachment is obsolete: true
Attachment #8778947 - Flags: review?
Attachment #8778947 - Flags: review+
Rich, could you commit it? Thanks.
Flags: needinfo?(richm)
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.

Attachment

General

Creator:
Created:
Updated:
Size: