Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2986

NetMatcher's comma-separation requires space to be present

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: master
    • Fix Version/s: 3.5.0
    • Component/s: James Core
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jtconsol Jörg Thomas (ConSol)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h