james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Bagnara (JIRA)" <server-...@james.apache.org>
Subject [jira] Resolved: (JAMES-286) Exceeding maximum value with MAIL SIZE causes NullPointerException
Date Tue, 03 Jan 2006 13:24:03 GMT
     [ http://issues.apache.org/jira/browse/JAMES-286?page=all ]
Stefano Bagnara resolved JAMES-286:

    Fix Version: 2.3.0
     Resolution: Fixed
      Assign To: Stefano Bagnara


> Exceeding maximum value with MAIL SIZE causes NullPointerException
> ------------------------------------------------------------------
>          Key: JAMES-286
>          URL: http://issues.apache.org/jira/browse/JAMES-286
>      Project: James
>         Type: Bug
>   Components: SMTPServer
>     Versions: 2.2.0
>     Reporter: Craig Raw
>     Assignee: Stefano Bagnara
>      Fix For: 2.3.0

> There is a fairly simple problem with the doMailSize() method in SMTPHandler. When a
MAIL FROM command is received with a SIZE value that exceeds the maxmessagesize value, the
server sends a 552 response. It then attempts to log a message about the incident, and calls
state.get(SENDER).toString() to form part of the log message.
> Unfortuntely, state.put(SENDER, senderAddress) is only called later when the MAIL command
is processed. Creating the log statement thus causes an NPE and the connection aborts.
> The easy solution is to take this information out of the log message. I apologize for
not including a patch, but I have lost track of which branch to patch against. However, I
believe this problem is present in RC3.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message