You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ji...@apache.org on 2004/04/14 07:01:43 UTC

[jira] Resolved: (JAMES-72) SMTP Handler DATA buffering issue

Message:

   The following issue has been resolved as FIXED.

   Resolver: Noel J. Bergman
       Date: Tue, 13 Apr 2004 9:59 PM

I tested this with the current code.  It was almost certainly fixed last year when the BufferedReader change happened.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JAMES-72

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JAMES-72
    Summary: SMTP Handler DATA buffering issue
       Type: Bug

     Status: Resolved
 Resolution: FIXED

    Project: James
 Components: 
             SMTPServer
   Fix Fors:
             2.2.0a18
   Versions:
             2.1

   Assignee: 
   Reporter: Serge Knystautas

    Created: Fri, 20 Dec 2002 5:09 PM
    Updated: Tue, 13 Apr 2004 9:59 PM
Environment: Operating System: Other
Platform: Other

Description:
When I'm working on James, what I usually do is put the following into the buffer...

-------------------
HELO localhost
MAIL FROM: <se...@localhost>
RCPT TO: <se...@localhost>
DATA
Subject: Testing

This is a test
.
QUIT
-------------------

Then whenever I want to run tests, I telnet to port 25, and paste what's in the
buffer.

Unfortunately the new SMTPHandler code doesn't like this, during the DATA
command it skips what's in the input stream and waits to process that later
until DATA is complete.  This is somewhat hard to explain, but here's what you
see when you do this...

---------------------
220 STACCATO SMTP Server (JAMES SMTP Server 2.1) ready Fri, 20 Dec 2002 11:49:22
 -0500 (EST)
HELO localhost
MAIL FROM: <se...@localhost>
RCPT TO: <se...@localhost>
DATA
Subject: Testing

This is a test
.
QUIT
250 STACCATO Hello localhost (127.0.0.1 [127.0.0.1])
250 Sender <se...@localhost> OK
250 Recipient <se...@localhost> OK
354 Ok Send data ending with <CRLF>.<CRLF>
---------------------
It then hangs waiting for you to type the data for the message.  So you type
something again, and finish with "CRLF.CRLF".  Once you do, you then get...
---------------------
.
250 Message received
500 STACCATO Syntax error, command unrecognized: SUBJECT:
500 STACCATO Syntax error, command unrecognized:
500 STACCATO Syntax error, command unrecognized: THIS
500 STACCATO Syntax error, command unrecognized: .
221 STACCATO Service closing transmission channel
----------------------

So basically what it looks like is you're creating that separate stream (or
however it's handling the DATA command), and it's not reading the buffer of the
underlying input stream and pushing that data into the forked input stream.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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