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 2010/08/26 02:08:18 UTC

[jira] Created: (KARAF-167) Creating a new config using the shell commands lead to a FileNotFoundException instead of the file being created

Creating a new config using the shell commands lead to a FileNotFoundException instead of the file being created
----------------------------------------------------------------------------------------------------------------

                 Key: KARAF-167
                 URL: https://issues.apache.org/jira/browse/KARAF-167
             Project: Karaf
          Issue Type: Bug
    Affects Versions: 2.0.0
            Reporter: Guillaume Nodet




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (KARAF-167) Creating a new config using the shell commands lead to a FileNotFoundException instead of the file being created

Posted by "Ioannis Canellos (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ioannis Canellos updated KARAF-167:
-----------------------------------

    Attachment: KARAF-167.patch

I am attaching a patch that changes org.apache.karaf.shell.config.Properties, so that it does not attempt to load non existent files. Also it adds 2 null checks when retrieving Layouts.

This way a user can create a new config, like this:
karaf@root> config:edit my.non.existent.file
karaf@root> config:propset key value
karaf@root> config:update

and the file is created.

I hope this is enough

> Creating a new config using the shell commands lead to a FileNotFoundException instead of the file being created
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-167
>                 URL: https://issues.apache.org/jira/browse/KARAF-167
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Guillaume Nodet
>         Attachments: KARAF-167.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (KARAF-167) Creating a new config using the shell commands lead to a FileNotFoundException instead of the file being created

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved KARAF-167.
-----------------------------------

         Assignee: Guillaume Nodet
    Fix Version/s: 2.2.0
       Resolution: Fixed

Committing to https://svn.apache.org/repos/asf/karaf/trunk ...
	M	shell/config/src/main/java/org/apache/karaf/shell/config/Properties.java
Committed r990737


> Creating a new config using the shell commands lead to a FileNotFoundException instead of the file being created
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-167
>                 URL: https://issues.apache.org/jira/browse/KARAF-167
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: 2.2.0
>
>         Attachments: KARAF-167.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.