[
https://issues.apache.org/jira/browse/FELIX-4917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ilyas Türkben updated FELIX-4917:
---------------------------------
Description:
The following config file cannot be parsed and read as we would expect.
Spaces seem to be supported.
{noformat}
#mongodb URI
mongouri=mongodb="//127.0.0.1:27017"
#custom datastore
customBlobStore=B"true"
{noformat}
{code:java}
@Test
public void testLoad() throws IOException {
FilePersistenceManager filePersistenceManager = new
FilePersistenceManager(getClass().getResource("/config").getFile());
@SuppressWarnings("unchecked")
Dictionary<String,Boolean> cfg = filePersistenceManager.load("test");
assertTrue(cfg.get("customBlobStore"));
}
{code}
was:
>From a config file as following, the values cannot be parsed and read.
{noformat}
#mongodb URI
mongouri=mongodb="//127.0.0.1:27017"
#custom datastore
customBlobStore=B"true"
{noformat}
{code:java}
@Test
public void testLoad() throws IOException {
FilePersistenceManager filePersistenceManager = new
FilePersistenceManager(getClass().getResource("/config").getFile());
@SuppressWarnings("unchecked")
Dictionary<String,Boolean> cfg = filePersistenceManager.load("test");
assertTrue(cfg.get("customBlobStore"));
}
{code}
> FilePersistenceManager doesn't support comments
> -----------------------------------------------
>
> Key: FELIX-4917
> URL: https://issues.apache.org/jira/browse/FELIX-4917
> Project: Felix
> Issue Type: Bug
> Components: Configuration Admin
> Affects Versions: configadmin-1.8.0
> Reporter: Ilyas Türkben
>
> The following config file cannot be parsed and read as we would expect.
> Spaces seem to be supported.
> {noformat}
> #mongodb URI
> mongouri=mongodb="//127.0.0.1:27017"
> #custom datastore
> customBlobStore=B"true"
> {noformat}
> {code:java}
> @Test
> public void testLoad() throws IOException {
> FilePersistenceManager filePersistenceManager = new
> FilePersistenceManager(getClass().getResource("/config").getFile());
> @SuppressWarnings("unchecked")
> Dictionary<String,Boolean> cfg = filePersistenceManager.load("test");
> assertTrue(cfg.get("customBlobStore"));
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)