Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
ConfigurationHandler.read(InputStream ins) should properly parse input streams that have whitespace between key/equals sign and the equals sign/value.
A situation like
`service.pid ="com.adobe.granite.foo.Bar"`
causes a single extra space to be included with the key's String
(i.e. dictionary.get("service.pid" + " ") == "com.adobe.granite.foo.Bar")
And a situation like
`service.pid= "com.adobe.granite.foo.Bar"`
causes the value read to be null and thus the entry not added to the dictionary
(i.e. dictionary.size() == 0 and dictionary.get("service.pid") == null)
The class inherently supports spaces before the property name (i.e. ` service.pid=...`) with the ignorableWhiteSpace call in nextToken. The class should be adjusted to similarly ignore whitespace between the key and equals sign as well as between the equals sign and the value.
Attachments
Attachments
Issue Links
- relates to
-
FELIX-5691 Fix whitespace handling in TypedProperties
- Resolved