Andreas Schaefer created SLING-10122:
----------------------------------------
Summary: A Equal Sign (=) in a set properties instruction makes
the Converter fail
Key: SLING-10122
URL: https://issues.apache.org/jira/browse/SLING-10122
Project: Sling
Issue Type: Bug
Components: Feature Model
Affects Versions: Content-Package to Feature Model Converter 1.0.22
Reporter: Andreas Schaefer
Fix For: Content-Package to Feature Model Converter 1.0.28
An entry in a Repository Initializer like this:
"create path /test
set properties on /test
set testprop to \"one=two\"
end"\
will make the ConfigurationEntryHandler fail with:
Tests run: 48, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.036 s <<<
FAILURE! - in
org.apache.sling.feature.cpconverter.handlers.ConfigurationEntryHandlerTest
org.apache.sling.feature.cpconverter.handlers.ConfigurationEntryHandlerTest.parseConfiguration[13]
Time elapsed: 0.005 s <<< ERROR!
java.io.IOException: Unexpected token 34; expected: 61 (line=24, pos=9)
at
org.apache.felix.cm.file.ConfigurationHandler.readFailure(ConfigurationHandler.java:700)
at
org.apache.felix.cm.file.ConfigurationHandler.readInternal(ConfigurationHandler.java:304)
at
org.apache.felix.cm.file.ConfigurationHandler.read(ConfigurationHandler.java:267)
at
org.apache.sling.feature.cpconverter.handlers.ConfigurationEntryHandler.parseConfiguration(ConfigurationEntryHandler.java:33)
at
org.apache.sling.feature.cpconverter.handlers.AbstractConfigurationEntryHandler.handle(AbstractConfigurationEntryHandler.java:66)
at
org.apache.sling.feature.cpconverter.handlers.ConfigurationEntryHandlerTest.parseConfiguration(ConfigurationEntryHandlerTest.java:132)
I can fix that by escaping with a backslash but that is not a valid Repository
Initializer content.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)