Benoit Tellier created JAMES-3507:
-------------------------------------

             Summary: IMAP APPEND fails when inMemorySizeLimit is exceeded
                 Key: JAMES-3507
                 URL: https://issues.apache.org/jira/browse/JAMES-3507
             Project: James Server
          Issue Type: Bug
          Components: IMAPServer
    Affects Versions: 3.5.0
            Reporter: Benoit Tellier


When the APPENDed message exceeds the memory size limit, 
ImapRequestFrameDecoder allocates a file scoped to command decoding and not 
command execution.

We need to review the lifecycle of this file in order to dispose it only after 
the command being executed.

My idea would be to register closeables to the channel and dispose them once 
the message is processed.

Such a move will allow using files instead of memory for large mails, reducing 
the memory footprint of large APPEND.

Note that server/protocols/imap is not tested so as part of this ticket, as we 
need to write a faulty test, we also need to write such tests.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to