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

Steinar Bang edited comment on SHIRO-654 at 11/25/18 3:42 PM:
--------------------------------------------------------------

An alternate view of the duplicates, using "package:exports -d" (bundle ID 
matches ID in the table above):
||Package name||Version||Exporting bundles (ID)||
|org.apache.shiro.cache|1.4.1.SNAPSHOT|86 88|
|org.apache.shiro.codec|1.4.1.SNAPSHOT|88 93|
|org.apache.shiro.config.event|1.4.1.SNAPSHOT|87 88|
|org.apache.shiro.config|1.4.1.SNAPSHOT|87 88|
|org.apache.shiro.crypto.hash.format|1.4.1.SNAPSHOT|91 88|
|org.apache.shiro.crypto.hash|1.4.1.SNAPSHOT|91 88|
|org.apache.shiro.crypto|1.4.1.SNAPSHOT|90 88 89|
|org.apache.shiro.event.support|1.4.1.SNAPSHOT|92 88|
|org.apache.shiro.event|1.4.1.SNAPSHOT|92 88|
|org.apache.shiro.io|1.4.1.SNAPSHOT|88 93|
|org.apache.shiro.util|1.4.1.SNAPSHOT|88 93|
|org.apache.shiro|1.4.1.SNAPSHOT|88 93|


was (Author: s...@dod.no):
An alternate view of the duplicates, using "package:exports -d" (bundle ID 
matches ID in the table over):
||Package name||Version||Exporting bundles (ID)||
|org.apache.shiro.cache|1.4.1.SNAPSHOT|86 88|
|org.apache.shiro.codec|1.4.1.SNAPSHOT|88 93|
|org.apache.shiro.config.event|1.4.1.SNAPSHOT|87 88|
|org.apache.shiro.config|1.4.1.SNAPSHOT|87 88|
|org.apache.shiro.crypto.hash.format|1.4.1.SNAPSHOT|91 88|
|org.apache.shiro.crypto.hash|1.4.1.SNAPSHOT|91 88|
|org.apache.shiro.crypto|1.4.1.SNAPSHOT|90 88 89|
|org.apache.shiro.event.support|1.4.1.SNAPSHOT|92 88|
|org.apache.shiro.event|1.4.1.SNAPSHOT|92 88|
|org.apache.shiro.io|1.4.1.SNAPSHOT|88 93|
|org.apache.shiro.util|1.4.1.SNAPSHOT|88 93|
|org.apache.shiro|1.4.1.SNAPSHOT|88 93|

> 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
>            Priority: Major
>              Labels: OSGi, osgi
>
> (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)

Reply via email to