Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354383

Summary: Property values used in AbstractSMTPService createSession need to be String instead of the generic Hashtable type Object
Product: z_Archived Reporter: Oli Schmid <oliver.schmid>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: zimmermann
Version: unspecifiedFlags: zimmermann: indigo+
zimmermann: juno+
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch is using the methods defined in java.util.Properties stephan.leichtvogt: iplog+

Description Oli Schmid CLA 2011-08-10 10:38:50 EDT
Build Identifier: 3.7.1

In some application servers properties stored in the properties instance attached to the session are read by getProperty instead of get.
This returns null if value is not of type String.

Reproducible: Always

Steps to Reproduce:
1. Define a property of type other than String (e.g: props.setProperty("mail." + getProtocol() + ".quitwait", false);

2. Check if property value is read as false or as null when accessing it. On a Weblogic server it will be read as null.
Comment 1 Oli Schmid CLA 2011-08-10 10:47:52 EDT
Created attachment 201245 [details]
Patch is using the methods defined in java.util.Properties
Comment 2 Stephan Leicht Vogt CLA 2012-02-22 11:19:14 EST
Thanks Oli for the Patch. I comitted it to following branches and trunk: 2011-Jan, 2011-Jun, 2012-Jan.
Comment 3 Oli Schmid CLA 2013-01-23 12:04:11 EST
Works fine. Thanks!
Comment 4 Matthias Zimmermann CLA 2013-01-23 17:02:30 EST
reopend to set to 'verified'
Comment 5 Matthias Zimmermann CLA 2013-01-23 17:03:12 EST
.
Comment 6 Matthias Zimmermann CLA 2013-01-23 17:07:32 EST
should remain in status 'verified' until all bugs with target milestones 3.7.3 are closed
Comment 7 Matthias Zimmermann CLA 2013-07-08 17:36:41 EDT
Bugfixes shipped on Scout 3.7 branch