Steinar Bang created SHIRO-654:
----------------------------------

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


(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|386|org.apache.shiro.cache|
|org.apache.shiro.cache|1.4.1.SNAPSHOT|388|org.apache.shiro.core|
|org.apache.shiro.codec|1.4.1.SNAPSHOT|393|org.apache.shiro.lang|
|org.apache.shiro.codec|1.4.1.SNAPSHOT|388|org.apache.shiro.core|
|org.apache.shiro.config.event|1.4.1.SNAPSHOT|387|org.apache.shiro.config.core|
|org.apache.shiro.config.event|1.4.1.SNAPSHOT|388|org.apache.shiro.core|
|org.apache.shiro.config|1.4.1.SNAPSHOT|387|org.apache.shiro.config.core|
|org.apache.shiro.config|1.4.1.SNAPSHOT|388|org.apache.shiro.core|
|org.apache.shiro.crypto.hash.format|1.4.1.SNAPSHOT|391|org.apache.shiro.crypto.hash|
|org.apache.shiro.crypto.hash.format|1.4.1.SNAPSHOT|388|org.apache.shiro.core|
|org.apache.shiro.crypto.hash|1.4.1.SNAPSHOT|391|org.apache.shiro.crypto.hash|
|org.apache.shiro.crypto.hash|1.4.1.SNAPSHOT|388|org.apache.shiro.core|
|org.apache.shiro.crypto|1.4.1.SNAPSHOT|390|org.apache.shiro.crypto.core|
|org.apache.shiro.crypto|1.4.1.SNAPSHOT|389|org.apache.shiro.crypto.cipher|
|org.apache.shiro.crypto|1.4.1.SNAPSHOT|388|org.apache.shiro.core|
|org.apache.shiro.event.support|1.4.1.SNAPSHOT|392|org.apache.shiro.event|
|org.apache.shiro.event.support|1.4.1.SNAPSHOT|388|org.apache.shiro.core|
|org.apache.shiro.event|1.4.1.SNAPSHOT|392|org.apache.shiro.event|
|org.apache.shiro.event|1.4.1.SNAPSHOT|388|org.apache.shiro.core|
|org.apache.shiro.io|1.4.1.SNAPSHOT|393|org.apache.shiro.lang|
|org.apache.shiro.io|1.4.1.SNAPSHOT|388|org.apache.shiro.core|
|org.apache.shiro.util|1.4.1.SNAPSHOT|393|org.apache.shiro.lang|
|org.apache.shiro.util|1.4.1.SNAPSHOT|388|org.apache.shiro.core|
|org.apache.shiro|1.4.1.SNAPSHOT|393|org.apache.shiro.lang|
|org.apache.shiro|1.4.1.SNAPSHOT|388|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