Daniel Kuffner created ARIES-1236:
-------------------------------------
Summary: Subsystem cannot be loaded from directory it must be a
Zip archive.
Key: ARIES-1236
URL: https://issues.apache.org/jira/browse/ARIES-1236
Project: Aries
Issue Type: Bug
Components: Subsystem
Affects Versions: 1.0
Environment: mac
Reporter: Daniel Kuffner
Steps to reproduce:
# Extract a simple subsystem archive (e.g.:
http://coderthoughts.googlecode.com/files/subsystem1.esa)
# Rename the folder to end with .esa (e.g.: subsystem1.esa)
# Install subsystem, rootSubsystem.install(file://path/to/dir/subsystem1.esa);
The subsystem will be installed but the bundles/jars are not
imported/installed.
It seems like that the path to bundles gets screwed up by
content.convertNested() in the BundleResource class
Please see:
https://github.com/apache/aries/blob/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/BundleResource.java#L64
Here how the path looks like:
{code}
/path/to/dir/subsystem1.esa/BundleA_1.0.0.jar//BundleA_1.0.0.jar
{code}
Bundle Dependencies:
{code}
'org.apache.aries.subsystem:org.apache.aries.subsystem.core:1.0.0'
'org.apache.aries.subsystem:org.apache.aries.subsystem:1.0.0'
'org.apache.aries.subsystem:org.apache.aries.subsystem.obr:1.0.0'
'org.apache.aries.subsystem:org.apache.aries.subsystem.api:1.0.0'
'org.apache.aries.application:org.apache.aries.application.api:1.0.0'
'org.apache.aries.application:org.apache.aries.application.modeller:1.0.0'
'org.apache.aries.application:org.apache.aries.application.utils:1.0.0'
'org.apache.aries.blueprint:org.apache.aries.blueprint:1.1.0'
'org.apache.aries.proxy:org.apache.aries.proxy:1.0.1'
'org.apache.aries:org.apache.aries.util:1.1.0'
'org.apache.felix:org.apache.felix.bundlerepository:1.6.6'
'org.apache.felix:org.apache.felix.resolver:1.0.0'
'org.eclipse.equinox:org.eclipse.equinox.coordinator:1.1.0.v20120522-1841'
'org.eclipse.equinox:org.eclipse.equinox.region:1.1.0.v20120522-1841'
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)