Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354383 - Property values used in AbstractSMTPService createSession need to be String instead of the generic Hashtable type Object
Summary: Property values used in AbstractSMTPService createSession need to be String i...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 10:38 EDT by Oli Schmid CLA
Modified: 2021-08-19 11:30 EDT (History)
1 user (show)

See Also:
zimmermann: indigo+
zimmermann: juno+


Attachments
Patch is using the methods defined in java.util.Properties (1.71 KB, patch)
2011-08-10 10:47 EDT, Oli Schmid CLA
stephan.leichtvogt: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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