[
https://issues.apache.org/jira/browse/ACE-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcel Offermans resolved ACE-95.
---------------------------------
Resolution: Fixed
Fixed the issue, please close the issue if it works correctly now.
> bundle indexer fails if version is exact range
> ----------------------------------------------
>
> Key: ACE-95
> URL: https://issues.apache.org/jira/browse/ACE-95
> Project: Ace
> Issue Type: Bug
> Affects Versions: 0.8.0
> Environment: latest svn trunk
> Reporter: Derek Baum
> Assignee: Marcel Offermans
>
> adding a bundle with an exact version range e.g. [4.1.3, 4.1.3] to the store
> directory, causes the bundle indexer to fail and truncate the repository.xml:
> Bundle Indexer | v2.2
> (c) 2007 OSGi, All Rights Reserved
> Error in /Users/derek/Downloads/ace-devserver/store : Low Range is higher
> than High Range: 4.1.3-4.1.3
> java.lang.IllegalArgumentException: Low Range is higher than High Range:
> 4.1.3-4.1.3
> at
> org.osgi.impl.bundle.obr.resource.VersionRange.<init>(VersionRange.java:44)
> at
> org.osgi.impl.bundle.obr.resource.ManifestEntry.addParameter(ManifestEntry.java:93)
> at
> org.osgi.impl.bundle.obr.resource.Manifest.getEntries(Manifest.java:211)
> at org.osgi.impl.bundle.obr.resource.Manifest.entry(Manifest.java:124)
> at org.osgi.impl.bundle.obr.resource.Manifest.parse(Manifest.java:74)
> at org.osgi.impl.bundle.obr.resource.Manifest.<init>(Manifest.java:42)
> at
> org.osgi.impl.bundle.obr.resource.BundleInfo.<init>(BundleInfo.java:60)
> at org.osgi.impl.bundle.bindex.Index.recurse(Index.java:204)
> at org.osgi.impl.bundle.bindex.Index.recurse(Index.java:195)
> at org.osgi.impl.bundle.bindex.Index.main(Index.java:118)
> at
> org.apache.ace.obr.metadata.bindex.BIndexMetadataGenerator.generateMetadata(BIndexMetadataGenerator.java:40)
> at
> org.apache.ace.obr.storage.file.BundleFileStore.generateMetadata(BundleFileStore.java:136)
> at
> org.apache.ace.obr.storage.file.BundleFileStore.get(BundleFileStore.java:62)
> at
> org.apache.ace.obr.servlet.BundleServlet.doGet(BundleServlet.java:132)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> The bundle causing this error contains the following valid import range:
> org.apache.avalon.framework.logger;version="[4.1.3, 4.1.3]"
> $ bnd print com.springsource.org.apache.commons.logging-1.1.1.jar
> [MANIFEST com.springsource.org.apache.commons.logging-1.1.1.jar]
>
> Export-Package
> org.apache.commons.logging;version="1.1.1",org.apache.commons.logging.impl;version="1.1.1";uses:="javax.servlet,org.apache.avalon.framework.logger,org.apache.commons.logging,org.apache.log,org.apache.log4j"
> Extension-Name org.apache.commons.logging
>
> Implementation-Title Jakarta Commons Logging
>
> Implementation-Vendor Apache Software Foundation
>
> Implementation-Vendor-Id org.apache
>
> Implementation-Version 1.1.1
>
> Import-Package javax.servlet;version="[2.1.0,
> 3.0.0)";resolution:=optional,org.apache.avalon.framework.logger;version="[4.1.3,
> 4.1.3]";resolution:=optional,org.apache.log;version="[1.0.1,
> 1.0.1]";resolution:=optional,org.apache.log4j;version="[1.2.15,
> 2.0.0)";resolution:=optional
> Manifest-Version 1.0
>
> Specification-Title Jakarta Commons Logging
>
> Specification-Vendor Apache Software Foundation
>
> Specification-Version 1.0
>
> X-Compile-Source-JDK 1.2
>
> X-Compile-Target-JDK 1.2
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.