Hi Peter,

The problem is that the Configuration Admin Service implementation
allows illegal keys and can perfectly write them - but not read them
back in.

I opened issue FELIX-522 and committed a fix, which prevents using
illegal keys. Illegal configuration files can still not be read ... but
they should not be written any more because trying to set a
configuration property with an invalid key will yield an
IllegalArgumentException.

Can you please confirm whether this is ok for you ? Thanks.

Regards
Felix

[1] http://issues.apache.org/jira/browse/FELIX-522

Am Samstag, den 15.03.2008, 12:53 +0100 schrieb peter.doornbosch:
> Hi,
> 
> The ConfigurationAdmin service accepts keys that contain spaces and  
> writes such values to the file store. This causes problems when  
> restarting, as it can't parse the file that it wrote itself:
> 
> *ERROR* Error loading configuration for needsconfig
> java.io.IOException: Unexpected token 78; expected: 61 (line=2, pos=15)
>       at  
> org 
> .apache 
> .felix 
> .cm.file.ConfigurationHandler.readFailure(ConfigurationHandler.java:651)
>       at  
> org 
> .apache 
> .felix 
> .cm.file.ConfigurationHandler.readInternal(ConfigurationHandler.java: 
> 270)
> 
> The bogus key/values is not always passed to the managed service  
> (sometimes it is), but i could not yet determine under which  
> circumstances it is / is not passed. However, it's always written to  
> the file store.
> 
> Regards,
> Peter
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to