You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2012/06/14 14:37:42 UTC

[jira] [Created] (SLING-2510) Reset bundle location of a configuration if a bundle is uninstalled

Carsten Ziegeler created SLING-2510:
---------------------------------------

             Summary: Reset bundle location of a configuration if a bundle is uninstalled
                 Key: SLING-2510
                 URL: https://issues.apache.org/jira/browse/SLING-2510
             Project: Sling
          Issue Type: Improvement
          Components: Installer
    Affects Versions: Installer Configuration Factory 1.0.8
            Reporter: Carsten Ziegeler


If a bundle is uninstalled, the bundle location of a configuration still points to this bundle.
If now a new version is installed, the configuration is not bound to the new bundle as this new bundle has a different bundle location.

We could simply reset the bundle location of such configurations once a bundle is uninstalled

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

        

Re: [jira] [Created] (SLING-2510) Reset bundle location of a configuration if a bundle is uninstalled

Posted by Carsten Ziegeler <cz...@apache.org>.
Hi,

Felix Meschberger wrote:
> Anyway, going forward, configuration should maybe be explicitly bound by OSGi Installer to the "?*" location, which means, all bundles can just use the configuration.

Yeah, this would be a good alternative. However :) this would apply to
all new configurations installed through the OSGi installer, but
wouldn't help for existing configurations or configurations created
through any other tool like for example the web console. Unless we
update/post process all configurations which might not be the best
thing.


Regards
Carsten

>
> Regards
> Felix
>
>>
>> Regards
>> Carsten
>>
>> 2012/6/16 Felix Meschberger <fm...@adobe.com>:
>>> Hi
>>>
>>> Handling the bundle location of a configuration is IMHO outside of the scope of Sling's OSGi Installer Configuration Factory.
>>>
>>> As such I don't think this is a good idea.
>>>
>>> Regards
>>> Felix
>>>
>>> Am 14.06.2012 um 09:04 schrieb Julian Sedding:
>>>
>>>> Hi Carsten
>>>>
>>>> I believe that this issue addresses the same symptom that I intended to
>>>> have addressed by FELIX-3360[0]. In case my interpretation of the OSGi Spec
>>>> is correct (tbd), your suggested fix would be a workaround for a Felix bug.
>>>>
>>>> Otherwise (i.e. if I read the spec wrongly), I support your fix, as I
>>>> believe that would be the expected behavior.
>>>>
>>>> Regards
>>>> Julian
>>>>
>>>> [0] https://issues.apache.org/jira/browse/FELIX-3360
>>>>
>>>>
>>>> On Thursday, June 14, 2012, Carsten Ziegeler (JIRA) wrote:
>>>>
>>>>> Carsten Ziegeler created SLING-2510:
>>>>> ---------------------------------------
>>>>>
>>>>>            Summary: Reset bundle location of a configuration if a bundle
>>>>> is uninstalled
>>>>>                Key: SLING-2510
>>>>>                URL: https://issues.apache.org/jira/browse/SLING-2510
>>>>>            Project: Sling
>>>>>         Issue Type: Improvement
>>>>>         Components: Installer
>>>>>   Affects Versions: Installer Configuration Factory 1.0.8
>>>>>           Reporter: Carsten Ziegeler
>>>>>
>>>>>
>>>>> If a bundle is uninstalled, the bundle location of a configuration still
>>>>> points to this bundle.
>>>>> If now a new version is installed, the configuration is not bound to the
>>>>> new bundle as this new bundle has a different bundle location.
>>>>>
>>>>> We could simply reset the bundle location of such configurations once a
>>>>> bundle is uninstalled
>>>>>
>>>>> --
>>>>> 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
>>>>>
>>>>>
>>>>>
>>>
>>
>>
>>
>> --
>> Carsten Ziegeler
>> cziegeler@apache.org
>



-- 
Carsten Ziegeler
cziegeler@apache.org

Re: [jira] [Created] (SLING-2510) Reset bundle location of a configuration if a bundle is uninstalled

Posted by Felix Meschberger <fm...@adobe.com>.
Hi

Bundles should be updated not uninstalled and reinstalled.

Resetting the bundle location is heavy-weight lifting (and if security would be enabled even requires special permission). I don't think we should deliberately do something here.

Am 16.06.2012 um 12:10 schrieb Carsten Ziegeler:

> I tend to agree, however :) right now this is really a problem for
> users as configurations get not bound to a new installed bundle if a
> previous version has been uninstalled.
> What about FELIX-3360, if Julian is right we have a solution anyway :)

Maybe the problem is actually Declarative Services which causes the configuration to be bound and which should care to unbind ...

Anyway, going forward, configuration should maybe be explicitly bound by OSGi Installer to the "?*" location, which means, all bundles can just use the configuration.

Regards
Felix

> 
> Regards
> Carsten
> 
> 2012/6/16 Felix Meschberger <fm...@adobe.com>:
>> Hi
>> 
>> Handling the bundle location of a configuration is IMHO outside of the scope of Sling's OSGi Installer Configuration Factory.
>> 
>> As such I don't think this is a good idea.
>> 
>> Regards
>> Felix
>> 
>> Am 14.06.2012 um 09:04 schrieb Julian Sedding:
>> 
>>> Hi Carsten
>>> 
>>> I believe that this issue addresses the same symptom that I intended to
>>> have addressed by FELIX-3360[0]. In case my interpretation of the OSGi Spec
>>> is correct (tbd), your suggested fix would be a workaround for a Felix bug.
>>> 
>>> Otherwise (i.e. if I read the spec wrongly), I support your fix, as I
>>> believe that would be the expected behavior.
>>> 
>>> Regards
>>> Julian
>>> 
>>> [0] https://issues.apache.org/jira/browse/FELIX-3360
>>> 
>>> 
>>> On Thursday, June 14, 2012, Carsten Ziegeler (JIRA) wrote:
>>> 
>>>> Carsten Ziegeler created SLING-2510:
>>>> ---------------------------------------
>>>> 
>>>>            Summary: Reset bundle location of a configuration if a bundle
>>>> is uninstalled
>>>>                Key: SLING-2510
>>>>                URL: https://issues.apache.org/jira/browse/SLING-2510
>>>>            Project: Sling
>>>>         Issue Type: Improvement
>>>>         Components: Installer
>>>>   Affects Versions: Installer Configuration Factory 1.0.8
>>>>           Reporter: Carsten Ziegeler
>>>> 
>>>> 
>>>> If a bundle is uninstalled, the bundle location of a configuration still
>>>> points to this bundle.
>>>> If now a new version is installed, the configuration is not bound to the
>>>> new bundle as this new bundle has a different bundle location.
>>>> 
>>>> We could simply reset the bundle location of such configurations once a
>>>> bundle is uninstalled
>>>> 
>>>> --
>>>> 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
>>>> 
>>>> 
>>>> 
>> 
> 
> 
> 
> -- 
> Carsten Ziegeler
> cziegeler@apache.org


Re: [jira] [Created] (SLING-2510) Reset bundle location of a configuration if a bundle is uninstalled

Posted by Carsten Ziegeler <cz...@apache.org>.
I tend to agree, however :) right now this is really a problem for
users as configurations get not bound to a new installed bundle if a
previous version has been uninstalled.
What about FELIX-3360, if Julian is right we have a solution anyway :)

Regards
Carsten

2012/6/16 Felix Meschberger <fm...@adobe.com>:
> Hi
>
> Handling the bundle location of a configuration is IMHO outside of the scope of Sling's OSGi Installer Configuration Factory.
>
> As such I don't think this is a good idea.
>
> Regards
> Felix
>
> Am 14.06.2012 um 09:04 schrieb Julian Sedding:
>
>> Hi Carsten
>>
>> I believe that this issue addresses the same symptom that I intended to
>> have addressed by FELIX-3360[0]. In case my interpretation of the OSGi Spec
>> is correct (tbd), your suggested fix would be a workaround for a Felix bug.
>>
>> Otherwise (i.e. if I read the spec wrongly), I support your fix, as I
>> believe that would be the expected behavior.
>>
>> Regards
>> Julian
>>
>> [0] https://issues.apache.org/jira/browse/FELIX-3360
>>
>>
>> On Thursday, June 14, 2012, Carsten Ziegeler (JIRA) wrote:
>>
>>> Carsten Ziegeler created SLING-2510:
>>> ---------------------------------------
>>>
>>>            Summary: Reset bundle location of a configuration if a bundle
>>> is uninstalled
>>>                Key: SLING-2510
>>>                URL: https://issues.apache.org/jira/browse/SLING-2510
>>>            Project: Sling
>>>         Issue Type: Improvement
>>>         Components: Installer
>>>   Affects Versions: Installer Configuration Factory 1.0.8
>>>           Reporter: Carsten Ziegeler
>>>
>>>
>>> If a bundle is uninstalled, the bundle location of a configuration still
>>> points to this bundle.
>>> If now a new version is installed, the configuration is not bound to the
>>> new bundle as this new bundle has a different bundle location.
>>>
>>> We could simply reset the bundle location of such configurations once a
>>> bundle is uninstalled
>>>
>>> --
>>> 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
>>>
>>>
>>>
>



-- 
Carsten Ziegeler
cziegeler@apache.org

Re: [jira] [Created] (SLING-2510) Reset bundle location of a configuration if a bundle is uninstalled

Posted by Felix Meschberger <fm...@adobe.com>.
Hi

Handling the bundle location of a configuration is IMHO outside of the scope of Sling's OSGi Installer Configuration Factory. 

As such I don't think this is a good idea.

Regards
Felix

Am 14.06.2012 um 09:04 schrieb Julian Sedding:

> Hi Carsten
> 
> I believe that this issue addresses the same symptom that I intended to
> have addressed by FELIX-3360[0]. In case my interpretation of the OSGi Spec
> is correct (tbd), your suggested fix would be a workaround for a Felix bug.
> 
> Otherwise (i.e. if I read the spec wrongly), I support your fix, as I
> believe that would be the expected behavior.
> 
> Regards
> Julian
> 
> [0] https://issues.apache.org/jira/browse/FELIX-3360
> 
> 
> On Thursday, June 14, 2012, Carsten Ziegeler (JIRA) wrote:
> 
>> Carsten Ziegeler created SLING-2510:
>> ---------------------------------------
>> 
>>            Summary: Reset bundle location of a configuration if a bundle
>> is uninstalled
>>                Key: SLING-2510
>>                URL: https://issues.apache.org/jira/browse/SLING-2510
>>            Project: Sling
>>         Issue Type: Improvement
>>         Components: Installer
>>   Affects Versions: Installer Configuration Factory 1.0.8
>>           Reporter: Carsten Ziegeler
>> 
>> 
>> If a bundle is uninstalled, the bundle location of a configuration still
>> points to this bundle.
>> If now a new version is installed, the configuration is not bound to the
>> new bundle as this new bundle has a different bundle location.
>> 
>> We could simply reset the bundle location of such configurations once a
>> bundle is uninstalled
>> 
>> --
>> 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
>> 
>> 
>> 


Re: [jira] [Created] (SLING-2510) Reset bundle location of a configuration if a bundle is uninstalled

Posted by Felix Meschberger <fm...@adobe.com>.
Hi

Handling the bundle location of a configuration is IMHO outside of the scope of Sling's OSGi Installer Configuration Factory. 

As such I don't think this is a good idea.

Regards
Felix

Am 14.06.2012 um 09:04 schrieb Julian Sedding:

> Hi Carsten
> 
> I believe that this issue addresses the same symptom that I intended to
> have addressed by FELIX-3360[0]. In case my interpretation of the OSGi Spec
> is correct (tbd), your suggested fix would be a workaround for a Felix bug.
> 
> Otherwise (i.e. if I read the spec wrongly), I support your fix, as I
> believe that would be the expected behavior.
> 
> Regards
> Julian
> 
> [0] https://issues.apache.org/jira/browse/FELIX-3360
> 
> 
> On Thursday, June 14, 2012, Carsten Ziegeler (JIRA) wrote:
> 
>> Carsten Ziegeler created SLING-2510:
>> ---------------------------------------
>> 
>>            Summary: Reset bundle location of a configuration if a bundle
>> is uninstalled
>>                Key: SLING-2510
>>                URL: https://issues.apache.org/jira/browse/SLING-2510
>>            Project: Sling
>>         Issue Type: Improvement
>>         Components: Installer
>>   Affects Versions: Installer Configuration Factory 1.0.8
>>           Reporter: Carsten Ziegeler
>> 
>> 
>> If a bundle is uninstalled, the bundle location of a configuration still
>> points to this bundle.
>> If now a new version is installed, the configuration is not bound to the
>> new bundle as this new bundle has a different bundle location.
>> 
>> We could simply reset the bundle location of such configurations once a
>> bundle is uninstalled
>> 
>> --
>> 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
>> 
>> 
>> 


Re: [jira] [Created] (SLING-2510) Reset bundle location of a configuration if a bundle is uninstalled

Posted by Julian Sedding <js...@gmail.com>.
Hi Carsten

I believe that this issue addresses the same symptom that I intended to
have addressed by FELIX-3360[0]. In case my interpretation of the OSGi Spec
is correct (tbd), your suggested fix would be a workaround for a Felix bug.

Otherwise (i.e. if I read the spec wrongly), I support your fix, as I
believe that would be the expected behavior.

Regards
Julian

[0] https://issues.apache.org/jira/browse/FELIX-3360


On Thursday, June 14, 2012, Carsten Ziegeler (JIRA) wrote:

> Carsten Ziegeler created SLING-2510:
> ---------------------------------------
>
>             Summary: Reset bundle location of a configuration if a bundle
> is uninstalled
>                 Key: SLING-2510
>                 URL: https://issues.apache.org/jira/browse/SLING-2510
>             Project: Sling
>          Issue Type: Improvement
>          Components: Installer
>    Affects Versions: Installer Configuration Factory 1.0.8
>            Reporter: Carsten Ziegeler
>
>
> If a bundle is uninstalled, the bundle location of a configuration still
> points to this bundle.
> If now a new version is installed, the configuration is not bound to the
> new bundle as this new bundle has a different bundle location.
>
> We could simply reset the bundle location of such configurations once a
> bundle is uninstalled
>
> --
> 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] (SLING-2510) Reset bundle location of a configuration if a bundle is uninstalled

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

Carsten Ziegeler resolved SLING-2510.
-------------------------------------

    Resolution: Won't Fix

I agree :)
                
> Reset bundle location of a configuration if a bundle is uninstalled
> -------------------------------------------------------------------
>
>                 Key: SLING-2510
>                 URL: https://issues.apache.org/jira/browse/SLING-2510
>             Project: Sling
>          Issue Type: Improvement
>          Components: Installer
>    Affects Versions: Installer Configuration Factory 1.0.8
>            Reporter: Carsten Ziegeler
>
> If a bundle is uninstalled, the bundle location of a configuration still points to this bundle.
> If now a new version is installed, the configuration is not bound to the new bundle as this new bundle has a different bundle location.
> We could simply reset the bundle location of such configurations once a bundle is uninstalled

--
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] (SLING-2510) Reset bundle location of a configuration if a bundle is uninstalled

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13435063#comment-13435063 ] 

Felix Meschberger commented on SLING-2510:
------------------------------------------

I don't think the installer should do this. Rather the thing binding configurations to bundles should act appropriately. The installer just installs configurations and it is not the task of the installer to unbind configurations upon any casual bundle uninstallation.

Concretely I think this issue is related to FELIX-3360, which I consider to be a Felix DS problem of binding configurations upon assigning them but not releasing such configurations upon bundle uninstallation.
                
> Reset bundle location of a configuration if a bundle is uninstalled
> -------------------------------------------------------------------
>
>                 Key: SLING-2510
>                 URL: https://issues.apache.org/jira/browse/SLING-2510
>             Project: Sling
>          Issue Type: Improvement
>          Components: Installer
>    Affects Versions: Installer Configuration Factory 1.0.8
>            Reporter: Carsten Ziegeler
>
> If a bundle is uninstalled, the bundle location of a configuration still points to this bundle.
> If now a new version is installed, the configuration is not bound to the new bundle as this new bundle has a different bundle location.
> We could simply reset the bundle location of such configurations once a bundle is uninstalled

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