Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 93144 invoked from network); 19 Jun 2008 02:12:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jun 2008 02:12:19 -0000 Received: (qmail 24888 invoked by uid 500); 19 Jun 2008 02:12:21 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 24692 invoked by uid 500); 19 Jun 2008 02:12:20 -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 24681 invoked by uid 99); 19 Jun 2008 02:12:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jun 2008 19:12:20 -0700 X-ASF-Spam-Status: No, hits=-1995.3 required=10.0 tests=ALL_TRUSTED,URI_HEX,WHOIS_WHOISGUARD X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jun 2008 02:11:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 685C7234C144 for ; Wed, 18 Jun 2008 19:11:46 -0700 (PDT) Message-ID: <1737900337.1213841506426.JavaMail.jira@brutus> Date: Wed, 18 Jun 2008 19:11:46 -0700 (PDT) From: "Alex Karasulu (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-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 ] Alex Karasulu updated DIRSERVER-1091: ------------------------------------- Fix Version/s: (was: 1.5.3) 2.0.0 Again moving to 2.0 if this can be fixed by someone otherwise it will carry= over. > 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 > > > 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.