Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329392

Summary: Malformed bundle manifest in org.eclipse.m2m.qvt.oml.debug.core
Product: [Modeling] QVTo Reporter: DJ Houghton <dj.houghton>
Component: EngineAssignee: Project Inbox <mmt-qvt.operational-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: serg.boyko2011, tjwatson, william.piers
Version: unspecified   
Target Milestone: 3.0   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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.