Issue Details (XML | Word | Printable)

Key: NET-98
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Unassigned
Reporter: fasselin
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Net

SMTP won't work under non-ASCII platforms

Created: 22/Aug/03 08:24 PM   Updated: 18/May/06 02:48 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Operating System: other
Platform: Other

Bugzilla Id: 22656
Resolution Date: 18/May/06 02:48 AM


 Description  « Hide
The SMTP code doesn't work on EBCDIC platforms (like IBM os/390) because it
sends the commands in the default platform encoding instead of forcing it to be
ASCII.

I've tested it with an application running on OS/390 trying to do SMTP with a
Domino server also running on OS/390 and it doesn't work because the server
expects ASCII encoding even if it is running on an EBCDIC platform.

It is specified in the SMTP protocol that the commands/responses must be
encoded in ASCII.

I've made it work locally by changing the calls to open the input/output
streams in the com.oroinc.net.smtp.SMTP.connectAction() method by using the
respective constructors accepting an encoding as the second parameter and by
specifying this encoding to be "Cp850". The code changes still works on a
Win2K platform.

I suspect there might be other platforms and/or other protocols that are
affected.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Daniel Savarese added a comment - 26/Aug/03 12:48 PM
I changed SMTP and other classes (POP3, NNTP, FTP) to use an 8-bit US-ASCII
superset (ISO-8859-1) for protocol communication. Please verify the fix
works for you and I will close out the report and mark it as resolved.
Thank you very much for bringing this issue to light.

fasselin added a comment - 26/Aug/03 07:18 PM
I've testing the changes running the new STMP code on a Win2K PC and also on
OS/390 (both talking to a Domino server running on OS/390) and it works.

Thanks for the quick fix.


Henri Yandell added a comment - 18/May/06 02:48 AM
Housekeeping due to oddities in the migration.