You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2012/06/15 10:14:42 UTC

[jira] [Created] (KARAF-1549) Child instance features cfg file looks weird

Jean-Baptiste Onofré created KARAF-1549:
-------------------------------------------

             Summary: Child instance features cfg file looks weird
                 Key: KARAF-1549
                 URL: https://issues.apache.org/jira/browse/KARAF-1549
             Project: Karaf
          Issue Type: Bug
          Components: karaf-feature, karaf-instance
    Affects Versions: 3.0.0
            Reporter: Jean-Baptiste Onofré
             Fix For: 3.0.0


In a child instance, the etc/org.apache.karaf.features.cfg file looks weird, and completely different from the root instance:

featuresBoot=config,ssh
featuresRepositories=mvn\:org.apache.karaf.features/standard/3.0.0-SNAPSHOT/xml/features,mvn\:org.apache.karaf.features/enterprise/3.0.0-SNAPSHOT/xml/features

More over, the etc/org.apache.karaf.features.obr.cfg and etc/org.apache.karaf.features.repos.cfg files are not present in the child instances, whereas they should be here.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1549) Child instance features cfg file looks weird

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13440007#comment-13440007 ] 

Jean-Baptiste Onofré commented on KARAF-1549:
---------------------------------------------

No, it was a biggest issue than that. AFAIR, it was local absolute path in the child instances file instead of relative "generic" path. I gonna check.

Thanks anyway.
                
> Child instance features cfg file looks weird
> --------------------------------------------
>
>                 Key: KARAF-1549
>                 URL: https://issues.apache.org/jira/browse/KARAF-1549
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature, karaf-instance
>    Affects Versions: 3.0.0
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 3.0.0
>
>         Attachments: karaf-3.0_1549.diff
>
>
> In a child instance, the etc/org.apache.karaf.features.cfg file looks weird, and completely different from the root instance:
> featuresBoot=config,ssh
> featuresRepositories=mvn\:org.apache.karaf.features/standard/3.0.0-SNAPSHOT/xml/features,mvn\:org.apache.karaf.features/enterprise/3.0.0-SNAPSHOT/xml/features
> More over, the etc/org.apache.karaf.features.obr.cfg and etc/org.apache.karaf.features.repos.cfg files are not present in the child instances, whereas they should be here.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (KARAF-1549) Child instance features cfg file looks weird

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

Heath Kesler updated KARAF-1549:
--------------------------------

    Attachment: karaf-3.0_1549.diff

Hi Jean-Baptiste,

I went ahead and posted the patch for the files to be copied for a child instance.  Still not sure about the weird part for the features.  I believe you are referring to the escape character but not sure.

Cheers
Heath
                
> Child instance features cfg file looks weird
> --------------------------------------------
>
>                 Key: KARAF-1549
>                 URL: https://issues.apache.org/jira/browse/KARAF-1549
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature, karaf-instance
>    Affects Versions: 3.0.0
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 3.0.0
>
>         Attachments: karaf-3.0_1549.diff
>
>
> In a child instance, the etc/org.apache.karaf.features.cfg file looks weird, and completely different from the root instance:
> featuresBoot=config,ssh
> featuresRepositories=mvn\:org.apache.karaf.features/standard/3.0.0-SNAPSHOT/xml/features,mvn\:org.apache.karaf.features/enterprise/3.0.0-SNAPSHOT/xml/features
> More over, the etc/org.apache.karaf.features.obr.cfg and etc/org.apache.karaf.features.repos.cfg files are not present in the child instances, whereas they should be here.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1549) Child instance features cfg file looks weird

Posted by "Heath Kesler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13437600#comment-13437600 ] 

Heath Kesler commented on KARAF-1549:
-------------------------------------

Hi Jean-Baptiste,

I looked into this, I assume the 'weird' part is the escaped (\) : in the mvn or is it just the layout?  The escaped character is because the code uses a java.util.properties object to write the feature file on create.  Properties.store will escape the : character in the value when writing it.  So even tho the property looks right before writing it 'mvn:org.apache......' , the store() will add it to look like 'mvn\:org.apache....'. 

I did update the code to add the repos and the obr configs.  But will wait for your feedback on the escaped character (if that is even the weird part) to attach the patch.

Thanks
Heath
                
> Child instance features cfg file looks weird
> --------------------------------------------
>
>                 Key: KARAF-1549
>                 URL: https://issues.apache.org/jira/browse/KARAF-1549
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature, karaf-instance
>    Affects Versions: 3.0.0
>            Reporter: Jean-Baptiste Onofré
>             Fix For: 3.0.0
>
>
> In a child instance, the etc/org.apache.karaf.features.cfg file looks weird, and completely different from the root instance:
> featuresBoot=config,ssh
> featuresRepositories=mvn\:org.apache.karaf.features/standard/3.0.0-SNAPSHOT/xml/features,mvn\:org.apache.karaf.features/enterprise/3.0.0-SNAPSHOT/xml/features
> More over, the etc/org.apache.karaf.features.obr.cfg and etc/org.apache.karaf.features.repos.cfg files are not present in the child instances, whereas they should be here.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-1549) Child instance features cfg file looks weird

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13401357#comment-13401357 ] 

Christian Schneider commented on KARAF-1549:
--------------------------------------------

Can you describe how the files should look like? Can we simply copy the etc/org.apache.karaf.features.obr.cfg and etc/org.apache.karaf.features.repos.cfg from the root ?
                
> Child instance features cfg file looks weird
> --------------------------------------------
>
>                 Key: KARAF-1549
>                 URL: https://issues.apache.org/jira/browse/KARAF-1549
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature, karaf-instance
>    Affects Versions: 3.0.0
>            Reporter: Jean-Baptiste Onofré
>             Fix For: 3.0.0
>
>
> In a child instance, the etc/org.apache.karaf.features.cfg file looks weird, and completely different from the root instance:
> featuresBoot=config,ssh
> featuresRepositories=mvn\:org.apache.karaf.features/standard/3.0.0-SNAPSHOT/xml/features,mvn\:org.apache.karaf.features/enterprise/3.0.0-SNAPSHOT/xml/features
> More over, the etc/org.apache.karaf.features.obr.cfg and etc/org.apache.karaf.features.repos.cfg files are not present in the child instances, whereas they should be here.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Assigned] (KARAF-1549) Child instance features cfg file looks weird

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

Jean-Baptiste Onofré reassigned KARAF-1549:
-------------------------------------------

    Assignee: Jean-Baptiste Onofré
    
> Child instance features cfg file looks weird
> --------------------------------------------
>
>                 Key: KARAF-1549
>                 URL: https://issues.apache.org/jira/browse/KARAF-1549
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature, karaf-instance
>    Affects Versions: 3.0.0
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 3.0.0
>
>
> In a child instance, the etc/org.apache.karaf.features.cfg file looks weird, and completely different from the root instance:
> featuresBoot=config,ssh
> featuresRepositories=mvn\:org.apache.karaf.features/standard/3.0.0-SNAPSHOT/xml/features,mvn\:org.apache.karaf.features/enterprise/3.0.0-SNAPSHOT/xml/features
> More over, the etc/org.apache.karaf.features.obr.cfg and etc/org.apache.karaf.features.repos.cfg files are not present in the child instances, whereas they should be here.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira