You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Francois Papon (JIRA)" <ji...@apache.org> on 2019/01/04 05:23:00 UTC

[jira] [Commented] (SHIRO-654) Multiple shiro OSGi bundles export the same packages

    [ https://issues.apache.org/jira/browse/SHIRO-654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16733830#comment-16733830 ] 

Francois Papon commented on SHIRO-654:
--------------------------------------

[~sb@dod.no] thanks!

I added this issues in the OSGi works.

> Multiple shiro OSGi bundles export the same packages
> ----------------------------------------------------
>
>                 Key: SHIRO-654
>                 URL: https://issues.apache.org/jira/browse/SHIRO-654
>             Project: Shiro
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Steinar Bang
>            Assignee: Francois Papon
>            Priority: Major
>              Labels: OSGi, osgi
>             Fix For: 2.0.0
>
>
> (i) _Note_: Discovered in bundles built from the current master of shiro, i.e. version 1.4.1-SNAPSHOT. I don't know if it actually affects 1.4.0.
> Multiple OSGi bundles in shiro exports the same packages.
> This is a problem because another bundle importing those packages will import only the first package it finds and only see the classes in that package.
> The correct fix is to rename packages in the bundles so that they don't overlap.
> The overlapping bundles, are (these are the ones I've seen. There may be more duplicates in bundles that I haven't loaded):
> ||Package name||Version||ID||Bundle Name||
> |org.apache.shiro.cache|1.4.1.SNAPSHOT|86|org.apache.shiro.cache|
> |org.apache.shiro.cache|1.4.1.SNAPSHOT|88|org.apache.shiro.core|
> |org.apache.shiro.codec|1.4.1.SNAPSHOT|93|org.apache.shiro.lang|
> |org.apache.shiro.codec|1.4.1.SNAPSHOT|88|org.apache.shiro.core|
> |org.apache.shiro.config.event|1.4.1.SNAPSHOT|87|org.apache.shiro.config.core|
> |org.apache.shiro.config.event|1.4.1.SNAPSHOT|88|org.apache.shiro.core|
> |org.apache.shiro.config|1.4.1.SNAPSHOT|87|org.apache.shiro.config.core|
> |org.apache.shiro.config|1.4.1.SNAPSHOT|88|org.apache.shiro.core|
> |org.apache.shiro.crypto.hash.format|1.4.1.SNAPSHOT|91|org.apache.shiro.crypto.hash|
> |org.apache.shiro.crypto.hash.format|1.4.1.SNAPSHOT|88|org.apache.shiro.core|
> |org.apache.shiro.crypto.hash|1.4.1.SNAPSHOT|91|org.apache.shiro.crypto.hash|
> |org.apache.shiro.crypto.hash|1.4.1.SNAPSHOT|88|org.apache.shiro.core|
> |org.apache.shiro.crypto|1.4.1.SNAPSHOT|90|org.apache.shiro.crypto.core|
> |org.apache.shiro.crypto|1.4.1.SNAPSHOT|89|org.apache.shiro.crypto.cipher|
> |org.apache.shiro.crypto|1.4.1.SNAPSHOT|88|org.apache.shiro.core|
> |org.apache.shiro.event.support|1.4.1.SNAPSHOT|92|org.apache.shiro.event|
> |org.apache.shiro.event.support|1.4.1.SNAPSHOT|88|org.apache.shiro.core|
> |org.apache.shiro.event|1.4.1.SNAPSHOT|92|org.apache.shiro.event|
> |org.apache.shiro.event|1.4.1.SNAPSHOT|88|org.apache.shiro.core|
> |org.apache.shiro.io|1.4.1.SNAPSHOT|93|org.apache.shiro.lang|
> |org.apache.shiro.io|1.4.1.SNAPSHOT|88|org.apache.shiro.core|
> |org.apache.shiro.util|1.4.1.SNAPSHOT|93|org.apache.shiro.lang|
> |org.apache.shiro.util|1.4.1.SNAPSHOT|88|org.apache.shiro.core|
> |org.apache.shiro|1.4.1.SNAPSHOT|93|org.apache.shiro.lang|
> |org.apache.shiro|1.4.1.SNAPSHOT|88|org.apache.shiro.core|
> (these are results from the package:exports command in the apache karaf console)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)