james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Bagnara (JIRA)" <server-...@james.apache.org>
Subject [jira] Created: (JSPF-43) DNSJava based resolver does not properly handle multiple identical TXT/SPF records
Date Tue, 01 May 2007 12:41:15 GMT
DNSJava based resolver does not properly handle multiple identical TXT/SPF records

                 Key: JSPF-43
                 URL: https://issues.apache.org/jira/browse/JSPF-43
             Project: jSPF
          Issue Type: Bug
    Affects Versions: 0.9b4
            Reporter: Stefano Bagnara
         Assigned To: Stefano Bagnara
             Fix For: 0.9.5

This is a bug in dnsjava 2.0.3.

I'm using dnsjava to create a server and I'm not able to add multiple TXT
or SPF records with the same content because dnsjava does check for
"contains" and the equals for the records will return true if they have the
same text value.

I think this is a big because AFAIK dns specification should let me to
publish a couple of TXT records with identical content and they have to be
read as 2 records and not a single record.

Some protocol, like SPF, return a different result if there is a single
record or if there are multiple records (even if they are identical).

I added to TXTBase the equals method to check for Identity and now it works
like expected:
// Make sure this never matches an equals.
public boolean equals(Object arg) {
return this == arg;

I have the problem both on the server side (while trying to publish a zone
with multiple records) and worst of all on the client side when reading a
response containing multiple records.

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

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message