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 "Frank Stolle (JIRA)" <se...@james.apache.org> on 2008/02/20 16:27:43 UTC

[jira] Created: (JSPF-60) NullPointerException occurs if sender contains two @

NullPointerException occurs if sender contains two @
----------------------------------------------------

                 Key: JSPF-60
                 URL: https://issues.apache.org/jira/browse/JSPF-60
             Project: jSPF
          Issue Type: Bug
    Affects Versions: 0.9.5
            Reporter: Frank Stolle


The following code produces a NullPointerException:
import org.apache.james.jspf.executor.SPFResult;
import org.apache.james.jspf.impl.DefaultSPF;

public class CheckSPF {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String heloname = "a.server.com";
		String ip = "127.0.0.1";
		String from = "some@com/test@example.com";
		DefaultSPF spf = new DefaultSPF();
		SPFResult result = spf.checkSPF(ip, from, heloname);
		System.out.println("result: " + result.getResult());
		System.out.println("expl: " + result.getExplanation());
		System.out.println("header: " + result.getHeaderText());
	}
}

The problem is the duplicate @-character.

-- 
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] Assigned: (JSPF-60) NullPointerException occurs if sender contains two @

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JSPF-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer reassigned JSPF-60:
---------------------------------

    Assignee: Norman Maurer

> NullPointerException occurs if sender contains two @
> ----------------------------------------------------
>
>                 Key: JSPF-60
>                 URL: https://issues.apache.org/jira/browse/JSPF-60
>             Project: jSPF
>          Issue Type: Bug
>    Affects Versions: 0.9.5
>            Reporter: Frank Stolle
>            Assignee: Norman Maurer
>
> The following code produces a NullPointerException:
> import org.apache.james.jspf.executor.SPFResult;
> import org.apache.james.jspf.impl.DefaultSPF;
> public class CheckSPF {
> 	/**
> 	 * @param args
> 	 */
> 	public static void main(String[] args) {
> 		String heloname = "a.server.com";
> 		String ip = "127.0.0.1";
> 		String from = "some@com/test@example.com";
> 		DefaultSPF spf = new DefaultSPF();
> 		SPFResult result = spf.checkSPF(ip, from, heloname);
> 		System.out.println("result: " + result.getResult());
> 		System.out.println("expl: " + result.getExplanation());
> 		System.out.println("header: " + result.getHeaderText());
> 	}
> }
> The problem is the duplicate @-character.

-- 
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-60) NullPointerException occurs if sender contains two @

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JSPF-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer resolved JSPF-60.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9.6

Throw an IllegalArgumentException on invalid data 

> NullPointerException occurs if sender contains two @
> ----------------------------------------------------
>
>                 Key: JSPF-60
>                 URL: https://issues.apache.org/jira/browse/JSPF-60
>             Project: jSPF
>          Issue Type: Bug
>    Affects Versions: 0.9.5
>            Reporter: Frank Stolle
>            Assignee: Norman Maurer
>             Fix For: 0.9.6
>
>
> The following code produces a NullPointerException:
> import org.apache.james.jspf.executor.SPFResult;
> import org.apache.james.jspf.impl.DefaultSPF;
> public class CheckSPF {
> 	/**
> 	 * @param args
> 	 */
> 	public static void main(String[] args) {
> 		String heloname = "a.server.com";
> 		String ip = "127.0.0.1";
> 		String from = "some@com/test@example.com";
> 		DefaultSPF spf = new DefaultSPF();
> 		SPFResult result = spf.checkSPF(ip, from, heloname);
> 		System.out.println("result: " + result.getResult());
> 		System.out.println("expl: " + result.getExplanation());
> 		System.out.println("header: " + result.getHeaderText());
> 	}
> }
> The problem is the duplicate @-character.

-- 
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