Apache Directory Project - [jira] Created: (DIRSERVER-1092)

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > October 2007 > [jira] Created: (DIRSERVER-1092)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Created: (DIRSERVER-1092)
lizongbo (JIRA)

2007-10-31, 7:11 am

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.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com