[
https://issues.apache.org/jira/browse/JAMES-2986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jörg Thomas (ConSol) updated JAMES-2986:
----------------------------------------
Description:
When for example configuring the RemoteAddrNotInNetwork mailet, you're supposed
to "give a comma-delimited list of IP addresses, domain names or sub-nets".
In reality, you're supposed to give that string separated/delimited by
[COMMA][SPACE].
Failure to do so will result in ArrayOutOfBoundsExceptions
{{java.lang.ArrayIndexOutOfBoundsException: 7}}
{{ at
org.apache.james.dnsservice.library.inetnetwork.InetNetworkBuilder.normalizeV4FromAsterisk(InetNetworkBuilder.java:192)}}
{{ at
org.apache.james.dnsservice.library.inetnetwork.InetNetworkBuilder.getV4FromString(InetNetworkBuilder.java:127)}}
{{ at
org.apache.james.dnsservice.library.inetnetwork.InetNetworkBuilder.getFromString(InetNetworkBuilder.java:101)}}
{{ at
org.apache.james.dnsservice.library.netmatcher.NetMatcher.initInetNetworks(NetMatcher.java:163)}}
{{ at
org.apache.james.dnsservice.library.netmatcher.NetMatcher.initInetNetworks(NetMatcher.java:146)}}
Expectation: Handle [COMMA]-only as separator.
was:
When for example configuring the RemoteAddrNotInNetwork mailet, you're supposed
to "give a comma-delimited list of IP addresses, domain names or sub-nets".
In reality, you're supposed to give that string separated/delimited by
[COMMA][SPACE].
Failure to do so will result in ArrayOutOfBoundsExceptions
{{java.lang.ArrayIndexOutOfBoundsException: 7}}
{{ at
org.apache.james.dnsservice.library.inetnetwork.InetNetworkBuilder.normalizeV4FromAsterisk(InetNetworkBuilder.java:192)}}
{{ at
org.apache.james.dnsservice.library.inetnetwork.InetNetworkBuilder.getV4FromString(InetNetworkBuilder.java:127)}}
{{ at
org.apache.james.dnsservice.library.inetnetwork.InetNetworkBuilder.getFromString(InetNetworkBuilder.java:101)}}
{{ at
org.apache.james.dnsservice.library.netmatcher.NetMatcher.initInetNetworks(NetMatcher.java:163)}}
{{ at
org.apache.james.dnsservice.library.netmatcher.NetMatcher.initInetNetworks(NetMatcher.java:146)}}
Expectation: Handle [COMMA]-only as separator.
> NetMatcher's comma-separation requires space to be present
> ----------------------------------------------------------
>
> Key: JAMES-2986
> URL: https://issues.apache.org/jira/browse/JAMES-2986
> Project: James Server
> Issue Type: Bug
> Components: James Core
> Affects Versions: master
> Reporter: Jörg Thomas (ConSol)
> Priority: Major
> Fix For: 3.5.0
>
>
> When for example configuring the RemoteAddrNotInNetwork mailet, you're
> supposed to "give a comma-delimited list of IP addresses, domain names or
> sub-nets".
> In reality, you're supposed to give that string separated/delimited by
> [COMMA][SPACE].
> Failure to do so will result in ArrayOutOfBoundsExceptions
> {{java.lang.ArrayIndexOutOfBoundsException: 7}}
> {{ at
> org.apache.james.dnsservice.library.inetnetwork.InetNetworkBuilder.normalizeV4FromAsterisk(InetNetworkBuilder.java:192)}}
> {{ at
> org.apache.james.dnsservice.library.inetnetwork.InetNetworkBuilder.getV4FromString(InetNetworkBuilder.java:127)}}
> {{ at
> org.apache.james.dnsservice.library.inetnetwork.InetNetworkBuilder.getFromString(InetNetworkBuilder.java:101)}}
> {{ at
> org.apache.james.dnsservice.library.netmatcher.NetMatcher.initInetNetworks(NetMatcher.java:163)}}
> {{ at
> org.apache.james.dnsservice.library.netmatcher.NetMatcher.initInetNetworks(NetMatcher.java:146)}}
> Expectation: Handle [COMMA]-only as separator.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]