You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2017/10/04 08:25:02 UTC

[jira] [Commented] (KARAF-5402) Fileinstall incorrectly parses .config files

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

Guillaume Nodet commented on KARAF-5402:
----------------------------------------

Can you provide a bit more info to replicate the issue ? The failing config file would be welcomed.

> Fileinstall incorrectly parses .config files
> --------------------------------------------
>
>                 Key: KARAF-5402
>                 URL: https://issues.apache.org/jira/browse/KARAF-5402
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-config
>    Affects Versions: 4.0.8, 4.0.9, 4.0.10
>         Environment: Karaf 4.0.x
>            Reporter: Ɓukasz Dywicki
>            Assignee: Guillaume Nodet
>              Labels: configurationadmin, fileinstall, regresion
>
> Support for array values encoded as strings inside of .config files is broken in given Karaf versions. Reasons for that are different between them as Karaf 4.0.10 uses new version of fileinstall, however result is the same - config values are always strings regardless of correctness of value notation. Karaf 4.0.8 and 4.0.9 in general are broken due to bug in fileinstall or config admin as they tend to override source configuration with some partia representation malformed by configuration parser.
> For karaf 4.0.10, even if it uses fileinstall 3.6.0 there is no way, so far - to force configuration to be typed.
> {code:title="Error message for fileinstall 3.5.x:"}
> java.io.IOException: Unexpected token 78; expected: 61 (line=39, pos=4)
> 	at org.apache.felix.cm.file.ConfigurationHandler.readFailure(ConfigurationHandler.java:650)[4:org.apache.felix.fileinstall:3.5.4]
> 	at org.apache.felix.cm.file.ConfigurationHandler.readInternal(ConfigurationHandler.java:274)[4:org.apache.felix.fileinstall:3.5.4]
> 	at org.apache.felix.cm.file.ConfigurationHandler.read(ConfigurationHandler.java:237)[4:org.apache.felix.fileinstall:3.5.4]
> 	at org.apache.felix.fileinstall.internal.ConfigInstaller.setConfig(ConfigInstaller.java:237)[4:org.apache.felix.fileinstall:3.5.4]
> 	at org.apache.felix.fileinstall.internal.ConfigInstaller.install(ConfigInstaller.java:78)[4:org.apache.felix.fileinstall:3.5.4]
> 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:937)[4:org.apache.felix.fileinstall:3.5.4]
> 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:871)[4:org.apache.felix.fileinstall:3.5.4]
> 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:485)[4:org.apache.felix.fileinstall:3.5.4]
> 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)[4:org.apache.felix.fileinstall:3.5.4]
> 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)[4:org.apache.felix.fileinstall:3.5.4]
> {code}
> Line 39 and position 4 is middle of property key.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)