XMLVirtualUserTable throws exceptions when virtual domain not defined
---------------------------------------------------------------------

                 Key: JAMES-1036
                 URL: https://issues.apache.org/jira/browse/JAMES-1036
             Project: JAMES Server
          Issue Type: Bug
            Reporter: Eric Charles
            Assignee: Eric Charles


- enableVirtualHosting set to false in James.xml and localhost.net as default 
domain
- eric user defined via the adduser in remote manager (so e...@localhost.net is 
the mailbox)
- virtualusertable-store configured with 
<table name="DefaultVirtualUserTable" 
class="org.apache.james.vut.XMLVirtualUserTable">
        <recursiveMapping> true </recursiveMapping>
        <mappingLimit> 10 </mappingLimit>
        <mapping> eric-...@test-map.net=eric </mapping>
    </table>

Sending a mail to eric-...@test-map.net gives

INFO  17:16:28,148 | james.smtpserver | Successfully spooled mail 
Mail1281798987889-1 from e...@localhost.net on 127.0.0.1 for 
[eric-...@test-map.net]
INFO  17:16:28,605 | james.mailetcontext | Error while storing mail.
java.lang.ArrayIndexOutOfBoundsException: 1
        at 
org.apache.james.impl.vut.AbstractVirtualUserTable.getMappings(AbstractVirtualUserTable.java:163)
        at 
org.apache.james.impl.vut.AbstractVirtualUserTable.getMappings(AbstractVirtualUserTable.java:110)
        at 
org.apache.james.transport.mailets.VirtualUserTable.processMail(VirtualUserTable.java:89)
        at 
org.apache.james.transport.mailets.AbstractVirtualUserTableMailet.service(AbstractVirtualUserTableMailet.java:76)
        at 
org.apache.james.transport.camel.MailetProcessor.process(MailetProcessor.java:60)
        at 
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)


-- 
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-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to