[
https://issues.apache.org/jira/browse/FELIX-3542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler resolved FELIX-3542.
-------------------------------------
Resolution: Fixed
Fixed in 1470946 - the default value is now escaped according to the validate
method
> Escape property values used as Metatype default values
> ------------------------------------------------------
>
> Key: FELIX-3542
> URL: https://issues.apache.org/jira/browse/FELIX-3542
> Project: Felix
> Issue Type: Bug
> Components: Maven SCR Plugin
> Affects Versions: maven-scr-plugin-1.11.0, scr ant task 1.5.0, scr
> generator 1.5.0
> Reporter: Ankur Pathela
> Assignee: Carsten Ziegeler
> Priority: Minor
> Fix For: maven-scr-plugin-1.12.0, scr ant task 1.6.0, scr
> generator 1.6.0
>
>
> For a component property defined as below:
> ~~~~~~~~~~~~
> static private final String DEFAULT_FILE_PATTERN = "(?i)index\\.html";
> @Property(value=DEFAULT_FILE_PATTERN)
> static private final String PN_FILE_PATTERN = "file.pattern";
> ~~~~~~~~~~~~
> The backslash gets eaten up in the felix web console. The default value
> should appear as (?i)index\.html but ends up looking like (?i)index.html.
> This regex has a different meaning than the one intended.
> The component gets the correct initial value. But things fail when you open
> the property editor and save without making any changes(because the editor
> loaded up with an incorrect default value). Note that the property values
> when saved from the property editor render correctly the next time the editor
> loads.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira