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 = "[email protected]";
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: [email protected]
For additional commands, e-mail: [email protected]