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 10:06:50 UTC

[jira] Created: (DIRSERVER-1092) org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers

org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers 
-------------------------------------------------------------------------------------------------------

                 Key: DIRSERVER-1092
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1092
             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


After I fix the bug : http://issues.apache.org/jira/browse/DIRSERVER-1091

Then I create MyRecordStore to implements RecordStore, I add four record answers by Order ,but i can't get the ordered Result.  

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

the ns1 was ordered by the last , This is not I want  :( 

So I changed org.apache.directory.server.dns.store.RecordStore.java

[code]
public Set<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException;
[/code]

changed to :

[code]
public List<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException;
[/code]

also I changed RecordStoreStub.java ,

and org.apache.directory.server.dns.service.GetResourceRecords.java

[code]
    public Set<ResourceRecord> getEntry( RecordStore store, QuestionRecord question ) throws DnsException
    {
        Set<ResourceRecord> records = null;

[/code]


changed to : 

[code]
    public List<ResourceRecord> getEntry( RecordStore store, QuestionRecord question ) throws DnsException
    {
        List<ResourceRecord> records = null;

[/code]


Then  i can query  ordered multiple resource record answers 

Pleanse Fix this bug :) 




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


[jira] Updated: (DIRSERVER-1092) org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers

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

Emmanuel Lecharny updated DIRSERVER-1092:
-----------------------------------------

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

Moved back to 2.0.0-RC1

> org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers 
> -------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-1092
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1092
>             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
>
>
> After I fix the bug : http://issues.apache.org/jira/browse/DIRSERVER-1091
> Then I create MyRecordStore to implements RecordStore, I add four record answers by Order ,but i can't get the ordered Result.  
> 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: 
> ns2.dnspod.net nameserver = 10.108.20.123. 
> ns4.dnspod.net nameserver = 10.108.20.125. 
> ns3.dnspod.net nameserver = 10.108.20.124. 
> ns1.dnspod.net nameserver = 10.108.20.126. 
> [/code] 
> the ns1 was ordered by the last , This is not I want  :( 
> So I changed org.apache.directory.server.dns.store.RecordStore.java
> [code]
> public Set<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException;
> [/code]
> changed to :
> [code]
> public List<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException;
> [/code]
> also I changed RecordStoreStub.java ,
> and org.apache.directory.server.dns.service.GetResourceRecords.java
> [code]
>     public Set<ResourceRecord> getEntry( RecordStore store, QuestionRecord question ) throws DnsException
>     {
>         Set<ResourceRecord> records = null;
> [/code]
> changed to : 
> [code]
>     public List<ResourceRecord> getEntry( RecordStore store, QuestionRecord question ) throws DnsException
>     {
>         List<ResourceRecord> records = null;
> [/code]
> Then  i can query  ordered multiple resource record answers 
> Pleanse Fix this bug :) 

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


[jira] Updated: (DIRSERVER-1092) org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers

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

Emmanuel Lecharny updated DIRSERVER-1092:
-----------------------------------------

    Fix Version/s: 1.5.3

Postponed

> org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers 
> -------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-1092
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1092
>             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
>
>
> After I fix the bug : http://issues.apache.org/jira/browse/DIRSERVER-1091
> Then I create MyRecordStore to implements RecordStore, I add four record answers by Order ,but i can't get the ordered Result.  
> 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: 
> ns2.dnspod.net nameserver = 10.108.20.123. 
> ns4.dnspod.net nameserver = 10.108.20.125. 
> ns3.dnspod.net nameserver = 10.108.20.124. 
> ns1.dnspod.net nameserver = 10.108.20.126. 
> [/code] 
> the ns1 was ordered by the last , This is not I want  :( 
> So I changed org.apache.directory.server.dns.store.RecordStore.java
> [code]
> public Set<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException;
> [/code]
> changed to :
> [code]
> public List<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException;
> [/code]
> also I changed RecordStoreStub.java ,
> and org.apache.directory.server.dns.service.GetResourceRecords.java
> [code]
>     public Set<ResourceRecord> getEntry( RecordStore store, QuestionRecord question ) throws DnsException
>     {
>         Set<ResourceRecord> records = null;
> [/code]
> changed to : 
> [code]
>     public List<ResourceRecord> getEntry( RecordStore store, QuestionRecord question ) throws DnsException
>     {
>         List<ResourceRecord> records = null;
> [/code]
> Then  i can query  ordered multiple resource record answers 
> Pleanse Fix this bug :) 

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


[jira] Updated: (DIRSERVER-1092) org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers

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

Kiran Ayyagari updated DIRSERVER-1092:
--------------------------------------


Moving to 2.0, currently DNS server is not activated

> org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers 
> -------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-1092
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1092
>             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
>
>
> After I fix the bug : http://issues.apache.org/jira/browse/DIRSERVER-1091
> Then I create MyRecordStore to implements RecordStore, I add four record answers by Order ,but i can't get the ordered Result.  
> 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: 
> ns2.dnspod.net nameserver = 10.108.20.123. 
> ns4.dnspod.net nameserver = 10.108.20.125. 
> ns3.dnspod.net nameserver = 10.108.20.124. 
> ns1.dnspod.net nameserver = 10.108.20.126. 
> [/code] 
> the ns1 was ordered by the last , This is not I want  :( 
> So I changed org.apache.directory.server.dns.store.RecordStore.java
> [code]
> public Set<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException;
> [/code]
> changed to :
> [code]
> public List<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException;
> [/code]
> also I changed RecordStoreStub.java ,
> and org.apache.directory.server.dns.service.GetResourceRecords.java
> [code]
>     public Set<ResourceRecord> getEntry( RecordStore store, QuestionRecord question ) throws DnsException
>     {
>         Set<ResourceRecord> records = null;
> [/code]
> changed to : 
> [code]
>     public List<ResourceRecord> getEntry( RecordStore store, QuestionRecord question ) throws DnsException
>     {
>         List<ResourceRecord> records = null;
> [/code]
> Then  i can query  ordered multiple resource record answers 
> Pleanse Fix this bug :) 

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


[jira] Updated: (DIRSERVER-1092) org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers

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

Alex Karasulu updated DIRSERVER-1092:
-------------------------------------

    Fix Version/s:     (was: 1.5.3)
                   2.0.0

Do it before 2.0 when someone steps up on this.

> org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers 
> -------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-1092
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1092
>             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
>
>
> After I fix the bug : http://issues.apache.org/jira/browse/DIRSERVER-1091
> Then I create MyRecordStore to implements RecordStore, I add four record answers by Order ,but i can't get the ordered Result.  
> 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: 
> ns2.dnspod.net nameserver = 10.108.20.123. 
> ns4.dnspod.net nameserver = 10.108.20.125. 
> ns3.dnspod.net nameserver = 10.108.20.124. 
> ns1.dnspod.net nameserver = 10.108.20.126. 
> [/code] 
> the ns1 was ordered by the last , This is not I want  :( 
> So I changed org.apache.directory.server.dns.store.RecordStore.java
> [code]
> public Set<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException;
> [/code]
> changed to :
> [code]
> public List<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException;
> [/code]
> also I changed RecordStoreStub.java ,
> and org.apache.directory.server.dns.service.GetResourceRecords.java
> [code]
>     public Set<ResourceRecord> getEntry( RecordStore store, QuestionRecord question ) throws DnsException
>     {
>         Set<ResourceRecord> records = null;
> [/code]
> changed to : 
> [code]
>     public List<ResourceRecord> getEntry( RecordStore store, QuestionRecord question ) throws DnsException
>     {
>         List<ResourceRecord> records = null;
> [/code]
> Then  i can query  ordered multiple resource record answers 
> Pleanse Fix this bug :) 

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


[jira] Updated: (DIRSERVER-1092) org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers

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

Kiran Ayyagari updated DIRSERVER-1092:
--------------------------------------

    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

> org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers 
> -------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-1092
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1092
>             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
>
>
> After I fix the bug : http://issues.apache.org/jira/browse/DIRSERVER-1091
> Then I create MyRecordStore to implements RecordStore, I add four record answers by Order ,but i can't get the ordered Result.  
> 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: 
> ns2.dnspod.net nameserver = 10.108.20.123. 
> ns4.dnspod.net nameserver = 10.108.20.125. 
> ns3.dnspod.net nameserver = 10.108.20.124. 
> ns1.dnspod.net nameserver = 10.108.20.126. 
> [/code] 
> the ns1 was ordered by the last , This is not I want  :( 
> So I changed org.apache.directory.server.dns.store.RecordStore.java
> [code]
> public Set<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException;
> [/code]
> changed to :
> [code]
> public List<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException;
> [/code]
> also I changed RecordStoreStub.java ,
> and org.apache.directory.server.dns.service.GetResourceRecords.java
> [code]
>     public Set<ResourceRecord> getEntry( RecordStore store, QuestionRecord question ) throws DnsException
>     {
>         Set<ResourceRecord> records = null;
> [/code]
> changed to : 
> [code]
>     public List<ResourceRecord> getEntry( RecordStore store, QuestionRecord question ) throws DnsException
>     {
>         List<ResourceRecord> records = null;
> [/code]
> Then  i can query  ordered multiple resource record answers 
> Pleanse Fix this bug :) 

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