Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 859BC9F04 for ; Fri, 17 May 2013 07:31:16 +0000 (UTC) Received: (qmail 54686 invoked by uid 500); 17 May 2013 07:31:16 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 54656 invoked by uid 500); 17 May 2013 07:31:16 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 54646 invoked by uid 99); 17 May 2013 07:31:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 May 2013 07:31:16 +0000 Date: Fri, 17 May 2013 07:31:16 +0000 (UTC) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DIRSERVER-1091) not Support multiple resource record answers caused by ResourceRecordImpl's error equals method MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRSERVER-1091?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny updated DIRSERVER-1091: ----------------------------------------- Fix Version/s: (was: 2.0.0) 2.1.0 Moved to 2.1 The DNS server is not maintained atm =20 > not Support multiple resource record answers caused by ResourceRecordImpl= 's error equals method > -------------------------------------------------------------------------= ---------------------- > > Key: DIRSERVER-1091 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1091 > Project: Directory ApacheDS > Issue Type: Bug > Components: dns > Affects Versions: 1.5.1 > Environment: Windows XP , apacheds-protocol-dns-1.5.1.jar > Reporter: lizongbo > Assignee: Enrique Rodriguez > Fix For: 2.1.0 > > > When I create MyRecordStore to implements RecordStore, I add four record= answers ,but I can noly get One Record. > for example: > I start My Test Dns Server based on apacheds-protocol-dns-1.5.1.jar. > I want get four record like:=20 > [code] > E:\bind>nslookup > > server 10.108.20.126 > Default server: 10.108.20.126 > Address: 10.108.20.126#53 > > 618119.com > Server: 10.108.20.126 > Address: 10.108.20.126#53 > Non-authoritative answer: > ns1.dnspod.net nameserver =3D 10.108.20.126. > ns2.dnspod.net nameserver =3D 10.108.20.123. > ns3.dnspod.net nameserver =3D 10.108.20.124. > ns4.dnspod.net nameserver =3D 10.108.20.125. > > > [/code] > but I can only get like: > [code] > E:\bind>nslookup > > server 10.108.20.126 > Default server: 10.108.20.126 > Address: 10.108.20.126#53 > > 618119.com > Server: 10.108.20.126 > Address: 10.108.20.126#53 > Non-authoritative answer: > ns1.dnspod.net nameserver =3D 10.108.20.126. > [/code] > then I found this bug caused by org.apache.directory.server.dns.messages.= ResourceRecordImpl=E3=80=82 > the equals method is : > [code] > return ( this.domainName.equalsIgnoreCase( that.domainName ) ) &&= ( this.recordType =3D=3D that.recordType ) > && ( this.recordClass =3D=3D that.recordClass ); > [/code] > so i change it to : > [code] > return (this.domainName.equalsIgnoreCase(that.domainName)) && > (this.recordType =3D=3D that.recordType) > && (this.recordClass =3D=3D that.recordClass) > && this.attributes.equals(that.attributes); > [/code] > I added attributes.equals for ResourceRecordImpl. > Then I can query for get multiple resource record answers =E3=80=82 > Please Fix this bug. > also see: http://issues.apache.org/jira/browse/DIRSERVER-128 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira