You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "lizongbo (JIRA)" <ji...@apache.org> on 2007/10/31 09:50:50 UTC

[jira] Created: (DIRSERVER-1091) not Support multiple resource record answers caused by ResourceRecordImpl's error equals method

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


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: 
[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 = 10.108.20.126.
ns2.dnspod.net  nameserver = 10.108.20.123.
ns3.dnspod.net  nameserver = 10.108.20.124.
ns4.dnspod.net  nameserver = 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 = 10.108.20.126.
[/code]

then I found this bug caused by org.apache.directory.server.dns.messages.ResourceRecordImpl。

the equals method is :

[code]

        return ( this.domainName.equalsIgnoreCase( that.domainName ) ) && ( this.recordType == that.recordType )
            && ( this.recordClass == that.recordClass );

[/code]

so i change it to :

[code]

    return (this.domainName.equalsIgnoreCase(that.domainName)) &&
        (this.recordType == that.recordType)
        && (this.recordClass == that.recordClass)
        && this.attributes.equals(that.attributes);

[/code]

I added attributes.equals for ResourceRecordImpl.

Then I can query for get multiple resource record answers 。

Please Fix this bug.

also see: http://issues.apache.org/jira/browse/DIRSERVER-128





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRSERVER-1091) not Support multiple resource record answers caused by ResourceRecordImpl's error equals method

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1091?page=com.atlassian.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: 
> [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 = 10.108.20.126.
> ns2.dnspod.net  nameserver = 10.108.20.123.
> ns3.dnspod.net  nameserver = 10.108.20.124.
> ns4.dnspod.net  nameserver = 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 = 10.108.20.126.
> [/code]
> then I found this bug caused by org.apache.directory.server.dns.messages.ResourceRecordImpl。
> the equals method is :
> [code]
>         return ( this.domainName.equalsIgnoreCase( that.domainName ) ) && ( this.recordType == that.recordType )
>             && ( this.recordClass == that.recordClass );
> [/code]
> so i change it to :
> [code]
>     return (this.domainName.equalsIgnoreCase(that.domainName)) &&
>         (this.recordType == that.recordType)
>         && (this.recordClass == that.recordClass)
>         && this.attributes.equals(that.attributes);
> [/code]
> I added attributes.equals for ResourceRecordImpl.
> Then I can query for get multiple resource record answers 。
> Please Fix this bug.
> also see: http://issues.apache.org/jira/browse/DIRSERVER-128

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRSERVER-1091) not Support multiple resource record answers caused by ResourceRecordImpl's error equals method

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRSERVER-1091:
-----------------------------------------

    Fix Version/s: 1.5.3

Postponed

> 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: 1.5.3
>
>
> 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: 
> [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 = 10.108.20.126.
> ns2.dnspod.net  nameserver = 10.108.20.123.
> ns3.dnspod.net  nameserver = 10.108.20.124.
> ns4.dnspod.net  nameserver = 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 = 10.108.20.126.
> [/code]
> then I found this bug caused by org.apache.directory.server.dns.messages.ResourceRecordImpl。
> the equals method is :
> [code]
>         return ( this.domainName.equalsIgnoreCase( that.domainName ) ) && ( this.recordType == that.recordType )
>             && ( this.recordClass == that.recordClass );
> [/code]
> so i change it to :
> [code]
>     return (this.domainName.equalsIgnoreCase(that.domainName)) &&
>         (this.recordType == that.recordType)
>         && (this.recordClass == that.recordClass)
>         && this.attributes.equals(that.attributes);
> [/code]
> I added attributes.equals for ResourceRecordImpl.
> Then I can query for get multiple resource record answers 。
> Please Fix this bug.
> also see: http://issues.apache.org/jira/browse/DIRSERVER-128

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRSERVER-1091) not Support multiple resource record answers caused by ResourceRecordImpl's error equals method

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1091?page=com.atlassian.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: 
> [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 = 10.108.20.126.
> ns2.dnspod.net  nameserver = 10.108.20.123.
> ns3.dnspod.net  nameserver = 10.108.20.124.
> ns4.dnspod.net  nameserver = 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 = 10.108.20.126.
> [/code]
> then I found this bug caused by org.apache.directory.server.dns.messages.ResourceRecordImpl。
> the equals method is :
> [code]
>         return ( this.domainName.equalsIgnoreCase( that.domainName ) ) && ( this.recordType == that.recordType )
>             && ( this.recordClass == that.recordClass );
> [/code]
> so i change it to :
> [code]
>     return (this.domainName.equalsIgnoreCase(that.domainName)) &&
>         (this.recordType == that.recordType)
>         && (this.recordClass == that.recordClass)
>         && this.attributes.equals(that.attributes);
> [/code]
> I added attributes.equals for ResourceRecordImpl.
> Then I can query for get multiple resource record answers 。
> Please Fix this bug.
> also see: http://issues.apache.org/jira/browse/DIRSERVER-128

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRSERVER-1091) not Support multiple resource record answers caused by ResourceRecordImpl's error equals method

Posted by "Kiran Ayyagari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kiran Ayyagari updated DIRSERVER-1091:
--------------------------------------


Moving to 2.0, currently DNS server is not activated

> 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: 
> [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 = 10.108.20.126.
> ns2.dnspod.net  nameserver = 10.108.20.123.
> ns3.dnspod.net  nameserver = 10.108.20.124.
> ns4.dnspod.net  nameserver = 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 = 10.108.20.126.
> [/code]
> then I found this bug caused by org.apache.directory.server.dns.messages.ResourceRecordImpl。
> the equals method is :
> [code]
>         return ( this.domainName.equalsIgnoreCase( that.domainName ) ) && ( this.recordType == that.recordType )
>             && ( this.recordClass == that.recordClass );
> [/code]
> so i change it to :
> [code]
>     return (this.domainName.equalsIgnoreCase(that.domainName)) &&
>         (this.recordType == that.recordType)
>         && (this.recordClass == that.recordClass)
>         && this.attributes.equals(that.attributes);
> [/code]
> I added attributes.equals for ResourceRecordImpl.
> Then I can query for get multiple resource record answers 。
> Please Fix this bug.
> also see: http://issues.apache.org/jira/browse/DIRSERVER-128

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRSERVER-1091) not Support multiple resource record answers caused by ResourceRecordImpl's error equals method

Posted by "Kiran Ayyagari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kiran Ayyagari updated DIRSERVER-1091:
--------------------------------------

    Fix Version/s: 2.0.0
                       (was: 2.0.0-RC1)

Bulk change on these DNS issues didn't work, editing again to set the fix version to 2.0

> 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: 
> [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 = 10.108.20.126.
> ns2.dnspod.net  nameserver = 10.108.20.123.
> ns3.dnspod.net  nameserver = 10.108.20.124.
> ns4.dnspod.net  nameserver = 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 = 10.108.20.126.
> [/code]
> then I found this bug caused by org.apache.directory.server.dns.messages.ResourceRecordImpl。
> the equals method is :
> [code]
>         return ( this.domainName.equalsIgnoreCase( that.domainName ) ) && ( this.recordType == that.recordType )
>             && ( this.recordClass == that.recordClass );
> [/code]
> so i change it to :
> [code]
>     return (this.domainName.equalsIgnoreCase(that.domainName)) &&
>         (this.recordType == that.recordType)
>         && (this.recordClass == that.recordClass)
>         && this.attributes.equals(that.attributes);
> [/code]
> I added attributes.equals for ResourceRecordImpl.
> Then I can query for get multiple resource record answers 。
> Please Fix this bug.
> also see: http://issues.apache.org/jira/browse/DIRSERVER-128

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.