felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] Updated: (FELIX-2560) Bundle URLs do not survive refreshes
Date Mon, 25 Oct 2010 17:23:23 GMT

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

Richard S. Hall updated FELIX-2560:

    Attachment: FELIX-2560.txt

The attached patch appears to implement this feature. It is reasonably clean, but I am still
thinking about some aspects of it, so I will commit it a little later.

> 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
>         Attachments: FELIX-2560.txt
> 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.

View raw message