You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2010/10/07 23:24:34 UTC

[jira] Updated: (FELIX-2560) Bundle URLs do not survive refreshes

     [ https://issues.apache.org/jira/browse/FELIX-2560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-2560:
-----------------------------------

    Description: 
Currently, bundle URLs are encoded like this:

    bundle://\<bundle-id\>.\<revision-id\>:\<class-path-idx\>/path/to/resource

This is convenient to access our internal data structures and survives toString() round-tripping, but it does have the disadvantage that it doesn't survive a module being refreshed. The <revision-id> of a module gets reset after a refresh, which makes existing URLs become invalid. If <revision-id> were something like a <revision-name> that didn't get reset, then it would continue to work.

This is clearly a corner case and not super important, but we could investigate making such a change. It may impact the bundle cache too. This is also not spec-mandated behavior, so bundles shouldn't really depend on this behavior either.

  was:
Currently, bundle URLs are encoded like this:

    bundle://<bundle-id>.<revision-id>:<class-path-idx>/path/to/resource

This is convenient to access our internal data structures and survives toString() round-tripping, but it does have the disadvantage that it doesn't survive a module being refreshed. The <revision-id> of a module gets reset after a refresh, which makes existing URLs become invalid. If <revision-id> were something like a <revision-name> that didn't get reset, then it would continue to work.

This is clearly a corner case and not super important, but we could investigate making such a change. It may impact the bundle cache too. This is also not spec-mandated behavior, so bundles shouldn't really depend on this behavior either.


> Bundle URLs do not survive refreshes
> ------------------------------------
>
>                 Key: FELIX-2560
>                 URL: https://issues.apache.org/jira/browse/FELIX-2560
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: framework-3.0.2
>            Reporter: Richard S. Hall
>            Priority: Minor
>             Fix For: framework-3.2.0
>
>
> Currently, bundle URLs are encoded like this:
>     bundle://\<bundle-id\>.\<revision-id\>:\<class-path-idx\>/path/to/resource
> This is convenient to access our internal data structures and survives toString() round-tripping, but it does have the disadvantage that it doesn't survive a module being refreshed. The <revision-id> of a module gets reset after a refresh, which makes existing URLs become invalid. If <revision-id> were something like a <revision-name> that didn't get reset, then it would continue to work.
> This is clearly a corner case and not super important, but we could investigate making such a change. It may impact the bundle cache too. This is also not spec-mandated behavior, so bundles shouldn't really depend on this behavior either.

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