[ 
https://issues.apache.org/jira/browse/FELIX-6503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17488877#comment-17488877
 ] 

Andreas Lemmer commented on FELIX-6503:
---------------------------------------

My component always gets a configuration because of ConfigurationPolicy.REQUIRE.

My component always gets all required configuration properties because of <AD 
required="true" .../> and I'm using a "configurator" which parses the metatypes 
for each bundle and creates/updates the bundle configurations whenever a bundle 
is resolved (sort of).

The problem now is that there is no way anymore from the webconsole to change a 
value back to the default value.

The webconsole component is called Configuration Manager and IMHO should only 
handle configurations, not metatypes. A configuration property has no concept 
like a default value, which belongs to metatypes. I considered the Webconsole 
Configuration Manager as a frontend for the OSGi Config Admin, which should 
simply set the configuration I give it without some magic processing.

> Webconsole doesn't set configuration property to default value
> --------------------------------------------------------------
>
>                 Key: FELIX-6503
>                 URL: https://issues.apache.org/jira/browse/FELIX-6503
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-4.7.2
>            Reporter: Andreas Lemmer
>            Priority: Blocker
>
> After changing a configuration property in the webconsole configMgr, it 
> cannot be changed back to the default value again. The webconsole shows an 
> exclamation mark saying that the property was not set and the default value 
> is only displayed.
> In the @Modified method, the property map doesn't contain the property key.
> It seems that instead of setting the entered value (which happens to be equal 
> to the default value), the configuration property is just removed.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to