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

Xilai Dai commented on KARAF-2047:
----------------------------------

Found the root cause of this problem is the codes doesn't work in the 
findConfigurationByFileName() method of the ConfigCommandSupport class.

on Windows, for example:
absoluteFileName will be 
"file:D:\apache-karaf-2.2.9\etc\org.apache.cxf.http.conduits-common.cfg"
fileInstallFileName will be 
"file:/D:/apache-karaf-2.2.9/etc/org.apache.cxf.http.conduits-common.cfg"

so will lead to mismatch and findConfigurationByFileName() will return null.
                
> config:edit -f command doesn't work on Windows platform
> -------------------------------------------------------
>
>                 Key: KARAF-2047
>                 URL: https://issues.apache.org/jira/browse/KARAF-2047
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-config
>    Affects Versions: 2.2.9
>         Environment: Win 7, Java 7
>            Reporter: Xilai Dai
>
> When try to edit a factory based configuration file with -f arg, an error 
> info will be printed. for example:
> karaf@trun> config:edit -f org.apache.cxf.http.conduits-common
> Could not find configuration with file install property set to: 
> org.apache.cxf.http.conduits-common
> but this command works fine on the Linux platform.

--
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

Reply via email to