Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 15141 invoked from network); 26 May 2010 12:27:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 May 2010 12:27:15 -0000 Received: (qmail 91003 invoked by uid 500); 26 May 2010 12:27:15 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 90946 invoked by uid 500); 26 May 2010 12:27:15 -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 90916 invoked by uid 99); 26 May 2010 12:27:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 May 2010 12:27:15 +0000 X-ASF-Spam-Status: No, hits=-1994.7 required=10.0 tests=ALL_TRUSTED,URIBL_SBL,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 May 2010 12:27:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4QCQoR2008252 for ; Wed, 26 May 2010 12:26:50 GMT Message-ID: <16711384.58811274876810930.JavaMail.jira@thor> Date: Wed, 26 May 2010 08:26:50 -0400 (EDT) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Updated: (DIRSERVER-1091) not Support multiple resource record answers caused by ResourceRecordImpl's error equals method In-Reply-To: <13177807.1193820650554.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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: 2.0.0-RC1 (was: 2.0.0) Moved back to 2.0.0-RC1 > 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.0.0-RC1 > > > 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 --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.