You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Stefano Bagnara (JIRA)" <se...@james.apache.org> on 2007/05/01 14:41:15 UTC
[jira] Created: (JSPF-43) DNSJava based resolver does not properly
handle multiple identical TXT/SPF records
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.
http://sourceforge.net/tracker/index.php?func=detail&aid=1709630&group_id=18000&atid=118000
==================================
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
[jira] Resolved: (JSPF-43) DNSJava based resolver does not properly
handle multiple identical TXT/SPF records
Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
[ https://issues.apache.org/jira/browse/JSPF-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefano Bagnara resolved JSPF-43.
---------------------------------
Resolution: Fixed
Fixed in r533798: added to stage a dnsjava-2.0.4-SNAPSHOT with a couple of fixes.
1) the duplicate TXT/SPF records are correctly handled as duplicates.
http://sourceforge.net/tracker/index.php?func=detail&aid=1709630&group_id=18000&atid=118000
2) the SPFRecords is searialized as SPF and not TXT:
http://sourceforge.net/tracker/index.php?func=detail&aid=1709613&group_id=18000&atid=118000
> 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.
> http://sourceforge.net/tracker/index.php?func=detail&aid=1709630&group_id=18000&atid=118000
> ==================================
> 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