You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Joshua Mack (JIRA)" <ji...@apache.org> on 2017/09/14 15:55:00 UTC

[jira] [Resolved] (FELIX-5690) ConfigurationHandler should support ignoring whitespace between property key/equal sign & equal sign/property value

     [ https://issues.apache.org/jira/browse/FELIX-5690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Mack resolved FELIX-5690.
--------------------------------
    Resolution: Fixed

> 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: Improvement
>          Components: Configuration Admin
>            Reporter: Joshua Mack
>            Priority: Minor
>              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)