Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Resolved
-
1.4.0
-
None
Description
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)