You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Xilai Dai (JIRA)" <ji...@apache.org> on 2012/12/03 08:09:58 UTC
[jira] [Created] (KARAF-2047) config:edit -f command doesn't work
on Windows platform
Xilai Dai created KARAF-2047:
--------------------------------
Summary: 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
[jira] [Assigned] (KARAF-2047) config:edit -f command doesn't work
on Windows platform
Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-2047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré reassigned KARAF-2047:
-------------------------------------------
Assignee: Jean-Baptiste Onofré
> 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
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.10, 2.3.1, 3.0.0
>
> Attachments: fix.patch
>
>
> 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
[jira] [Commented] (KARAF-2047) config:edit -f command doesn't work
on Windows platform
Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-2047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510367#comment-13510367 ]
Jean-Baptiste Onofré commented on KARAF-2047:
---------------------------------------------
Your patch is not complete as the same change should be done on the MBeans (same method call). I'm updating the patch. Thanks.
> 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
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.10, 2.3.1, 3.0.0
>
> Attachments: fix.patch
>
>
> 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
[jira] [Commented] (KARAF-2047) config:edit -f command doesn't work
on Windows platform
Posted by "Xilai Dai (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (KARAF-2047) config:edit -f command doesn't work
on Windows platform
Posted by "Xilai Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-2047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xilai Dai updated KARAF-2047:
-----------------------------
Attachment: fix.patch
patch attached for 2.2.9
> 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
> Attachments: fix.patch
>
>
> 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
[jira] [Comment Edited] (KARAF-2047) config:edit -f command doesn't
work on Windows platform
Posted by "Xilai Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-2047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508587#comment-13508587 ]
Xilai Dai edited comment on KARAF-2047 at 12/3/12 8:58 AM:
-----------------------------------------------------------
patch attached for 2.2.9. works both on Windowns/Linux platform.
was (Author: xldai):
patch attached for 2.2.9
> 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
> Attachments: fix.patch
>
>
> 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
[jira] [Updated] (KARAF-2047) config:edit -f command doesn't work
on Windows platform
Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-2047?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré updated KARAF-2047:
----------------------------------------
Fix Version/s: 3.0.0
2.3.1
2.2.10
> 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
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.2.10, 2.3.1, 3.0.0
>
> Attachments: fix.patch
>
>
> 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