[
https://issues.apache.org/jira/browse/FELIX-5690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joshua Mack updated FELIX-5690:
-------------------------------
Priority: Major (was: Minor)
> ConfigurationHandler should support ignoring whitespace between property
> key/equal sign & equal sign/property value
> -------------------------------------------------------------------------------------------------------------------
>
> Key: FELIX-5690
> URL: https://issues.apache.org/jira/browse/FELIX-5690
> Project: Felix
> Issue Type: Bug
> Components: Configuration Admin
> Reporter: Joshua Mack
> Labels: easyfix
> Attachments: FELIX-5690.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)