Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329392 - Malformed bundle manifest in org.eclipse.m2m.qvt.oml.debug.core
Summary: Malformed bundle manifest in org.eclipse.m2m.qvt.oml.debug.core
Status: RESOLVED FIXED
Alias: None
Product: QVTo
Classification: Modeling
Component: Engine (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-03 16:02 EDT by DJ Houghton CLA
Modified: 2010-12-14 09:16 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DJ Houghton CLA 2010-11-03 16:02:41 EDT
There have been some recent changes in our OSGi implementation that treats unknown manifest element attributes differently in that previously they were ignored (bug) but now they are taken into consideration. This can result in your bundle not being resolved, specifically we've had problems in the case of the Required-Bundle header. 

We've done a search of the Indigo M2 repository and found that the manifest for the following bundle is malformed:
   org.eclipse.m2m.qvt.oml.debug.core_1.0.0.v20100615-1530.jar

This is the Required-Bundle header for the bundle:

Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.6.0,4.0.0)
 ",org.eclipse.pde.launching;bundle-version="[3.6.0,4.0.0)",org.eclips
 e.debug.core;bundle-version="[3.6.0,4.0.0)",org.eclipse.m2m.qvt.oml.r
 untime;bundle-version="[2.1.0,3.0.0)",org.eclipse.m2m.qvt.oml;bundle-
 version="[3.0.0,4.0.0)";version="[3.0.0,4.0.0)",org.eclipse.m2m.qvt.o
 ml.common;bundle-version="[2.1.0,3.0.0)";version="[3.0.0,4.0.0)",org.
 eclipse.m2m.qvt.oml.emf.util;bundle-version="[2.0.100,3.0.0)",org.ecl
 ipse.m2m.qvt.oml.editor.ui;bundle-version="[2.1.0,3.0.0)"

It appears there are some extra "version=xxx" entries in there and need to be removed.

Careful consideration needs to be taken to get the bundle versions of the requires correct. Note that the version in the "version" (in the above example) doesn't always match the "bundle-version" so I'm not sure which version range the developer of the bundle believes is correct.

Other related bugs:
- malformed Orbit bundles: bug 329376
- malformed p2 test bundle: bug 329361
- OSGi change: bug 328508
Comment 1 William Piers CLA 2010-11-04 02:16:57 EDT
As this is not related to ATL engine, I changed the bug component to QVT OML engine.
Comment 2 Sergey Boyko CLA 2010-12-14 09:16:21 EST
Redundant "version" entries were removed.