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 "Norman Maurer (JIRA)" <se...@james.apache.org> on 2009/04/16 13:01:15 UTC

[jira] Assigned: (JSPF-71) $ in mail address causes java.lang.IllegalArgumentException: Illegal group reference

     [ https://issues.apache.org/jira/browse/JSPF-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer reassigned JSPF-71:
---------------------------------

    Assignee: Norman Maurer

> $ in mail address causes java.lang.IllegalArgumentException: Illegal group reference 
> -------------------------------------------------------------------------------------
>
>                 Key: JSPF-71
>                 URL: https://issues.apache.org/jira/browse/JSPF-71
>             Project: JAMES jSPF
>          Issue Type: Bug
>    Affects Versions: 0.9.6
>            Reporter: Frank Stolle
>            Assignee: Norman Maurer
>
> The following code raises an unexpected exception:
> 		String heloname = "host-64-234-102-235.nctv.com"; // helo_name
> 		String ip = "64.234.102.235"; // client_address
> 		String from = "Patsy{$LNAME}@sprint.com"; // sender
> 		DefaultSPF spf = new DefaultSPF();
> 		SPFResult result = spf.checkSPF(ip, from, heloname);
> java.lang.IllegalArgumentException: Illegal group reference
> 	at java.util.regex.Matcher.appendReplacement(Matcher.java:706)
> 	at org.apache.james.jspf.core.MacroExpand.expandMacroString(MacroExpand.java:280)
> 	at org.apache.james.jspf.core.MacroExpand.expandDomain(MacroExpand.java:231)
> 	at org.apache.james.jspf.core.MacroExpand.expand(MacroExpand.java:178)
> 	at org.apache.james.jspf.core.MacroExpand.checkExpand(MacroExpand.java:162)
> 	at org.apache.james.jspf.terms.ExistsMechanism.checkSPF(ExistsMechanism.java:74)
> 	at org.apache.james.jspf.executor.SynchronousSPFExecutor.execute(SynchronousSPFExecutor.java:54)
> 	at org.apache.james.jspf.impl.SPF.checkSPF(SPF.java:332)

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