You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2012/06/15 13:04:42 UTC

[jira] [Created] (KARAF-1551) Kar service should not install the kar contents into the system dir

Christian Schneider created KARAF-1551:
------------------------------------------

             Summary: Kar service should not install the kar contents into the system dir
                 Key: KARAF-1551
                 URL: https://issues.apache.org/jira/browse/KARAF-1551
             Project: Karaf
          Issue Type: Improvement
            Reporter: Christian Schneider
             Fix For: 3.0.0


The system dir should be treated read only. 

Currently the kar service unpacks the contents of the kar into the karaf system repo. This changes the karaf distro which makes uninstalling the kar more difficult. Additonally the system dir may be in a location that is read only.

So I propose we extract the kar contents into a subdirectory of the data dir named after the feature repo name. So these are separate.

We can then add the unpack dir to the remote repos for pax so it is used.

--
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-1551) Kar service should not install the kar contents into the system dir

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

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

It sounds good. Why not "mimic" that we have for instance and having:

kar/kar1
kar/kar2

etc
                
> Kar service should not install the kar contents into the system dir
> -------------------------------------------------------------------
>
>                 Key: KARAF-1551
>                 URL: https://issues.apache.org/jira/browse/KARAF-1551
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> The system dir should be treated read only. 
> Currently the kar service unpacks the contents of the kar into the karaf system repo. This changes the karaf distro which makes uninstalling the kar more difficult. Additonally the system dir may be in a location that is read only.
> So I propose we extract the kar contents into a subdirectory of the data dir named after the feature repo name. So these are separate.
> We can then add the unpack dir to the remote repos for pax so it is used.

--
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-1551) Kar service should not install the kar contents into the system dir

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

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

NB: I don't think it's more or less difficult whatever the repo is.
                
> Kar service should not install the kar contents into the system dir
> -------------------------------------------------------------------
>
>                 Key: KARAF-1551
>                 URL: https://issues.apache.org/jira/browse/KARAF-1551
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> The system dir should be treated read only. 
> Currently the kar service unpacks the contents of the kar into the karaf system repo. This changes the karaf distro which makes uninstalling the kar more difficult. Additonally the system dir may be in a location that is read only.
> So I propose we extract the kar contents into a subdirectory of the data dir named after the feature repo name. So these are separate.
> We can then add the unpack dir to the remote repos for pax so it is used.

--
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] [Resolved] (KARAF-1551) Kar service should not install the kar contents into the system dir

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

Christian Schneider resolved KARAF-1551.
----------------------------------------

    Resolution: Fixed
    
> Kar service should not install the kar contents into the system dir
> -------------------------------------------------------------------
>
>                 Key: KARAF-1551
>                 URL: https://issues.apache.org/jira/browse/KARAF-1551
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 3.0.0
>
>
> The system dir should be treated read only. 
> Currently the kar service unpacks the contents of the kar into the karaf system repo. This changes the karaf distro which makes uninstalling the kar more difficult. Additonally the system dir may be in a location that is read only.
> So I propose we extract the kar contents into a subdirectory of the data dir named after the feature repo name. So these are separate.
> We can then add the unpack dir to the remote repos for pax so it is used.

--
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-1551) Kar service should not install the kar contents into the system dir

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

Christian Schneider commented on KARAF-1551:
--------------------------------------------

I would try to keep the repos separate for each kar which makes it much simpler to delete them on undeploy
                
> Kar service should not install the kar contents into the system dir
> -------------------------------------------------------------------
>
>                 Key: KARAF-1551
>                 URL: https://issues.apache.org/jira/browse/KARAF-1551
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> The system dir should be treated read only. 
> Currently the kar service unpacks the contents of the kar into the karaf system repo. This changes the karaf distro which makes uninstalling the kar more difficult. Additonally the system dir may be in a location that is read only.
> So I propose we extract the kar contents into a subdirectory of the data dir named after the feature repo name. So these are separate.
> We can then add the unpack dir to the remote repos for pax so it is used.

--
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-1551) Kar service should not install the kar contents into the system dir

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

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

Previously, we extracted the kar into data/local-repo. As requested by users, I updated to populate the system repo. 

I'm fine to move the kar location to data/kar for instance.
                
> Kar service should not install the kar contents into the system dir
> -------------------------------------------------------------------
>
>                 Key: KARAF-1551
>                 URL: https://issues.apache.org/jira/browse/KARAF-1551
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> The system dir should be treated read only. 
> Currently the kar service unpacks the contents of the kar into the karaf system repo. This changes the karaf distro which makes uninstalling the kar more difficult. Additonally the system dir may be in a location that is read only.
> So I propose we extract the kar contents into a subdirectory of the data dir named after the feature repo name. So these are separate.
> We can then add the unpack dir to the remote repos for pax so it is used.

--
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-1551) Kar service should not install the kar contents into the system dir

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

Christian Schneider commented on KARAF-1551:
--------------------------------------------

Implementation finished ... waiting for some fixes in the felix properties before I can commit
                
> Kar service should not install the kar contents into the system dir
> -------------------------------------------------------------------
>
>                 Key: KARAF-1551
>                 URL: https://issues.apache.org/jira/browse/KARAF-1551
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 3.0.0
>
>
> The system dir should be treated read only. 
> Currently the kar service unpacks the contents of the kar into the karaf system repo. This changes the karaf distro which makes uninstalling the kar more difficult. Additonally the system dir may be in a location that is read only.
> So I propose we extract the kar contents into a subdirectory of the data dir named after the feature repo name. So these are separate.
> We can then add the unpack dir to the remote repos for pax so it is used.

--
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-1551) Kar service should not install the kar contents into the system dir

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

Christian Schneider commented on KARAF-1551:
--------------------------------------------

I finished an impl that uses the new pax url @multi repo. Will commit as soon as JB provides a SNAPSHOT deploy of pax url aether.
                
> Kar service should not install the kar contents into the system dir
> -------------------------------------------------------------------
>
>                 Key: KARAF-1551
>                 URL: https://issues.apache.org/jira/browse/KARAF-1551
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 3.0.0
>
>
> The system dir should be treated read only. 
> Currently the kar service unpacks the contents of the kar into the karaf system repo. This changes the karaf distro which makes uninstalling the kar more difficult. Additonally the system dir may be in a location that is read only.
> So I propose we extract the kar contents into a subdirectory of the data dir named after the feature repo name. So these are separate.
> We can then add the unpack dir to the remote repos for pax so it is used.

--
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-1551) Kar service should not install the kar contents into the system dir

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

Andreas Pieber commented on KARAF-1551:
---------------------------------------

+1 for keeping own repos for each kar; this makes perfect sense to me
                
> Kar service should not install the kar contents into the system dir
> -------------------------------------------------------------------
>
>                 Key: KARAF-1551
>                 URL: https://issues.apache.org/jira/browse/KARAF-1551
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Christian Schneider
>             Fix For: 3.0.0
>
>
> The system dir should be treated read only. 
> Currently the kar service unpacks the contents of the kar into the karaf system repo. This changes the karaf distro which makes uninstalling the kar more difficult. Additonally the system dir may be in a location that is read only.
> So I propose we extract the kar contents into a subdirectory of the data dir named after the feature repo name. So these are separate.
> We can then add the unpack dir to the remote repos for pax so it is used.

--
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-1551) Kar service should not install the kar contents into the system dir

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

Christian Schneider reassigned KARAF-1551:
------------------------------------------

    Assignee: Christian Schneider
    
> Kar service should not install the kar contents into the system dir
> -------------------------------------------------------------------
>
>                 Key: KARAF-1551
>                 URL: https://issues.apache.org/jira/browse/KARAF-1551
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 3.0.0
>
>
> The system dir should be treated read only. 
> Currently the kar service unpacks the contents of the kar into the karaf system repo. This changes the karaf distro which makes uninstalling the kar more difficult. Additonally the system dir may be in a location that is read only.
> So I propose we extract the kar contents into a subdirectory of the data dir named after the feature repo name. So these are separate.
> We can then add the unpack dir to the remote repos for pax so it is used.

--
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-1551) Kar service should not install the kar contents into the system dir

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

Christian Schneider commented on KARAF-1551:
--------------------------------------------

I now committed an impl that directly changes the pax config file and includes a fixed Properties class. So we could remove this class again as soon as the felix properties is fixed.

After discussing with JB I would like to try an alternative solution. The idea is to extend pax url aether with a new remote repo config. This would allow to specify a parent dir for repositories. In our case data/kar. The idea is that below this dir each directory is treated as a maven repo. So we have one fixed config and still can work with one repo per kar.

                
> Kar service should not install the kar contents into the system dir
> -------------------------------------------------------------------
>
>                 Key: KARAF-1551
>                 URL: https://issues.apache.org/jira/browse/KARAF-1551
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 3.0.0
>
>
> The system dir should be treated read only. 
> Currently the kar service unpacks the contents of the kar into the karaf system repo. This changes the karaf distro which makes uninstalling the kar more difficult. Additonally the system dir may be in a location that is read only.
> So I propose we extract the kar contents into a subdirectory of the data dir named after the feature repo name. So these are separate.
> We can then add the unpack dir to the remote repos for pax so it is used.

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