james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cristian Ciocau (JIRA)" <server-...@james.apache.org>
Subject [jira] [Created] (JSPF-99) NullPointerException when expanding %{p} macro
Date Tue, 16 Aug 2016 10:01:20 GMT
Cristian Ciocau created JSPF-99:
-----------------------------------

             Summary: NullPointerException when expanding %{p} macro
                 Key: JSPF-99
                 URL: https://issues.apache.org/jira/browse/JSPF-99
             Project: James jSPF
          Issue Type: Bug
    Affects Versions: 0.9.9
            Reporter: Cristian Ciocau
            Priority: Blocker


{noformat}
java.lang.NullPointerException
at org.xbill.DNS.Name.fromString(Name.java:301) ~[dnsjava-2.1.5.jar:2.1.5]
at org.xbill.DNS.Name.fromString(Name.java:319) ~[dnsjava-2.1.5.jar:2.1.5]
at org.apache.james.jspf.core.DNSRequest.(DNSRequest.java:52) ~[apache-jspf-resolver-1.0.0.jar:1.0.0]
at org.apache.james.jspf.terms.ExistsMechanism$ExpandedChecker.checkSPF(ExistsMechanism.java:53)
~[apache-jspf-resolver-1.0.0.jar:1.0.0]
at org.apache.james.jspf.executor.SynchronousSPFExecutor.execute(SynchronousSPFExecutor.java:54)
[apache-jspf-resolver-1.0.0.jar:1.0.0]
at org.apache.james.jspf.impl.SPF.checkSPF(SPF.java:315) [apache-jspf-resolver-1.0.0.jar:1.0.0]
{noformat}

Steps to reproduce:

{code}
String ipAddress = "8.8.8.8";
String mailFrom = "any@thecraigs.net";
String hostName = "8.8.8.8";

DefaultSPF spf = new DefaultSPF();
spf.checkSPF(ipAddress, mailFrom, hostName);
{code}

SPF record of _thecraigs.net_ :

{noformat}
v=spf1 ip4:208.42.240.22 ip4:208.42.240.20 exists:_i-%{i}._p-%{p}._h-%{h}._l-%{l}._o-%{o}._spf.%{o}
?all
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message