You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "David Bosschaert (JIRA)" <ji...@apache.org> on 2015/12/16 19:43:47 UTC

[jira] [Resolved] (SLING-5383) Provisioning model does not allow '=' sign in a string config value

     [ https://issues.apache.org/jira/browse/SLING-5383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Bosschaert resolved SLING-5383.
-------------------------------------
    Resolution: Invalid

Ok - not a Sling issue, so I'm closing it... Thanks [~mpetria] and [~cziegeler] for explaining.

> Provisioning model does not allow '=' sign in a string config value
> -------------------------------------------------------------------
>
>                 Key: SLING-5383
>                 URL: https://issues.apache.org/jira/browse/SLING-5383
>             Project: Sling
>          Issue Type: Bug
>    Affects Versions: Sling Provisioning Model 1.4.0
>            Reporter: David Bosschaert
>
> Adding an "=" sign in a String configuration value results in an exception when the provisioning model is parsed. I should be able to have add an "=" sign in my config values.
> To reproduce, just add the following at the bottom of {{.../checkouts/sling/launchpad/builder/src/main/provisioning/sling.txt}}
> {code}  org.foo.bar
>     key="val=val"{code}
> Then run {{mvn install}} and you'll get the following error:
> {code}[ERROR] Internal error: java.lang.IllegalArgumentException: Unable to read configuration properties: Configuration [pid=org.foo.bar, factoryPid=null, properties={:rawconfig.format=felixca, :rawconfig.mode=overwrite, :rawconfig=key="val=val"
> [ERROR] }]: Unexpected token 34; expected: 61 (line=0, pos=18)
> [ERROR] -> [Help 1]
> org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: Unable to read configuration properties: Configuration [pid=org.foo.bar, factoryPid=null, properties={:rawconfig.format=felixca, :rawconfig.mode=overwrite, :rawconfig=key="val=val"
> }]
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: java.lang.IllegalArgumentException: Unable to read configuration properties: Configuration [pid=org.foo.bar, factoryPid=null, properties={:rawconfig.format=felixca, :rawconfig.mode=overwrite, :rawconfig=key="val=val"
> }]
> 	at org.apache.sling.provisioning.model.ModelUtility.getProcessedConfiguration(ModelUtility.java:516)
> 	at org.apache.sling.provisioning.model.ModelUtility.getEffectiveModel(ModelUtility.java:316)
> 	at org.apache.sling.maven.slingstart.DependencyLifecycleParticipant.addDependencies(DependencyLifecycleParticipant.java:149)
> 	at org.apache.sling.maven.slingstart.DependencyLifecycleParticipant.addDependencies(DependencyLifecycleParticipant.java:124)
> 	at org.apache.sling.maven.slingstart.DependencyLifecycleParticipant.afterProjectsRead(DependencyLifecycleParticipant.java:119)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> 	... 11 more
> Caused by: java.io.IOException: Unexpected token 34; expected: 61 (line=0, pos=18)
> 	at org.apache.felix.cm.file.ConfigurationHandler.readFailure(ConfigurationHandler.java:681)
> 	at org.apache.felix.cm.file.ConfigurationHandler.readInternal(ConfigurationHandler.java:300)
> 	at org.apache.felix.cm.file.ConfigurationHandler.read(ConfigurationHandler.java:263)
> 	at org.apache.sling.provisioning.model.ModelUtility.getProcessedConfiguration(ModelUtility.java:509)
> 	... 17 more{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)