Issue Details (XML | Word | Printable)

Key: JAMES-490
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Stefano Bagnara
Reporter: Stefano Bagnara
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JAMES Server

Javamail 1.4 regression: SocketFetcher changed to require SocketFactory implementation

Created: 11/May/06 10:54 PM   Updated: 21/Nov/07 08:31 AM
Return to search
Component/s: Remote Delivery
Affects Version/s: 2.3.0
Fix Version/s: 2.3.0

Time Tracking:
Not Specified

Resolution Date: 13/May/06 09:00 PM


 Description  « Hide
The SocketFetcher used by Javamail 1.4 does no more use reflection to call the socket creation method on the SocketFactory provided. It instead cast the created object to SocketFactory.
Out SocketFactory does not implement extends the SocketFactory class so it does not connect and fail to send mails.

The socketFactory is only used when a bindAddress is specified, but this should be fixed asap.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #406086 Sat May 13 12:41:39 UTC 2006 bago Fix regression introduced with Javamail 1.4: using bind in remoteDelivery resulted in failing all connections (JAMES-490)
Introduced a functional test as proof: I added it to the SMTPServerTest because it was faster, but this should be considered a RemoteDelivery test.
Files Changed
MODIFY /james/server/trunk/src/java/org/apache/james/transport/mailets/RemoteDeliverySocketFactory.java
MODIFY /james/server/trunk/src/test/org/apache/james/smtpserver/SMTPServerTest.java

Repository Revision Date User Message
ASF #406358 Sun May 14 15:23:18 UTC 2006 bago Fix compatibility between javamail1.4 and bind in RemoteDelivery: merged r406086 to 2.3 branch (JAMES-490)
Files Changed
MODIFY /james/server/branches/v2.3/src/java/org/apache/james/transport/mailets/RemoteDeliverySocketFactory.java