Bug 1015476 - Far different MANIFEST.MF in OSGI
Summary: Far different MANIFEST.MF in OSGI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Build
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ER5
: ---
Assignee: David Walluck
QA Contact: Katerina Odabasi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-04 10:59 UTC by Pavel Janousek
Modified: 2015-02-20 11:29 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-12-15 16:16:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 988315 0 unspecified CLOSED Implementation-Version missing from MANIFEST.MF for org.osgi.* 2021-02-22 00:41:40 UTC

Internal Links: 988315

Description Pavel Janousek 2013-10-04 10:59:23 UTC
modules/system/layers/base/org/osgi/enterprise/main/org.osgi.enterprise.jar and modules/system/layers/base/org/osgi/core/main/org.osgi.core.jar contain far different META-INF/MANIFEST.MF comparing to RPM version.

I'm not sure which version is correct, so CC'ing Fernando as well. In addition there is a chance this difference disappears when package version will by synced on both sides. (mentioned possible timestamp issue(s) in Hand-off e-mail by Fernando)

Diff for modules/system/layers/base/org/osgi/core/main/org.osgi.core.jar as an example:
# diff zip/bnd.bnd rpm/bnd.bnd 
1,2c1,3
< #Generated by BND, at Wed Mar 06 21:03:41 EST 2013
< #Wed Mar 06 21:03:41 EST 2013
---
> #Generated by BND, at Tue Sep 17 17:43:54 EDT 2013
> #Tue Sep 17 17:43:54 EDT 2013
> Implementation-Title=osgi.core
5a7
> Specification-Title=osgi.core
7c9
< Bundle-Version=4.2.0.201303060903
---
> Bundle-Version=4.2.0.201309170543
[root@dev129 ~]# less workspace/dist-diff-rpm-output.log 
[root@dev129 ~]# diff a/3/MANIFEST.MF a/4/MANIFEST.MF 
2,11c2,30
< Export-Package: org.osgi.framework.launch;uses:="org.osgi.framework";v
<  ersion="1.0",org.osgi.framework;uses:="javax.security.auth.x500";vers
<  ion="1.5",org.osgi.framework.hooks.service;uses:="org.osgi.framework"
<  ;version="1.0",org.osgi.service.condpermadmin;uses:="org.osgi.framewo
<  rk,org.osgi.service.permissionadmin";version="1.1",org.osgi.service.p
<  ackageadmin;uses:="org.osgi.framework";version="1.2",org.osgi.service
<  .permissionadmin;version="1.2",org.osgi.service.startlevel;uses:="org
<  .osgi.framework";version="1.1",org.osgi.service.url;version="1.0"
< Tool: Bnd-0.0.356
< Bundle-Name: osgi.core
---
> Export-Package: org.osgi.jmx.service.cm;uses:="javax.management.openmb
>  ean";version="1.3",org.osgi.jmx.framework;uses:="org.osgi.jmx,javax.m
>  anagement.openmbean";version="1.5",org.osgi.jmx.service.permissionadm
>  in;version="1.2",org.osgi.jmx.service.provisioning;uses:="javax.manag
>  ement.openmbean";version="1.2",org.osgi.jmx.service.useradmin;uses:="
>  org.osgi.jmx,javax.management.openmbean";version="1.1",org.osgi.jmx;u
>  ses:="javax.management.openmbean";version="1.0",org.osgi.service.blue
>  print.reflect;version="1.0.1",org.osgi.service.blueprint.container;us
>  es:="org.osgi.service.blueprint.reflect,org.osgi.framework";version="
>  1.0.1",org.osgi.service.cm;uses:="org.osgi.framework";version="1.3",o
>  rg.osgi.service.component;uses:="org.osgi.framework";version="1.1",or
>  g.osgi.service.event;uses:="org.osgi.framework";version="1.2",org.osg
>  i.service.http;uses:="javax.servlet.http,javax.servlet";version="1.2.
>  1",org.osgi.service.provisioning;version="1.2",org.osgi.service.remot
>  eserviceadmin;uses:="org.osgi.framework";version="1.0",org.osgi.servi
>  ce.jdbc;uses:="javax.sql";version="1.0",org.osgi.service.jndi;uses:="
>  javax.naming.directory,javax.naming";version="1.0",org.osgi.service.j
>  pa;uses:="javax.persistence";version="1.0",org.osgi.service.log;uses:
>  ="org.osgi.framework";version="1.3",org.osgi.service.metatype;uses:="
>  org.osgi.framework";version="1.1",org.osgi.service.useradmin;uses:="o
>  rg.osgi.framework";version="1.1",org.osgi.util.tracker;uses:="org.osg
>  i.framework";version="1.4",org.osgi.util.xml;uses:="org.osgi.framewor
>  k,javax.xml.parsers";version="1.0.1"
> Implementation-Title: osgi.enterprise
> Implementation-Version: 4.2.0.redhat-4
> Built-By: mockbuild
> Specification-Vendor: OSGi Alliance
> Tool: Bnd-0.0.386
> Bundle-Name: osgi.enterprise
17,18c36,40
< Bundle-Version: 4.2.0.201303060903
< Bnd-LastModified: 1362621821788
---
> Implementation-Vendor: OSGi Alliance
> Implementation-Vendor-Id: org.osgi
> Build-Jdk: 1.6.0_24
> Bundle-Version: 4.2.0.201309170547
> Bnd-LastModified: 1379454438360
19a42,44
> Specification-Title: osgi.enterprise
> Bundle-Description: OSGi Service Platform Release 4 Version 4.2, Enter
>  prise Interfaces and Classes for use in compiling bundles.
23,34c48,76
< Bundle-Description: OSGi Service Platform Release 4 Version 4.2, Core 
<  Interfaces and Classes for use in compiling bundles.
< Import-Package: javax.security.auth.x500;resolution:=optional,org.osgi
<  .framework;resolution:=optional;version="[1.5,2)",org.osgi.framework.
<  hooks.service;resolution:=optional;version="[1.0,2)",org.osgi.framewo
<  rk.launch;resolution:=optional;version="[1.0,2)",org.osgi.service.con
<  dpermadmin;resolution:=optional;version="[1.1,2)",org.osgi.service.pa
<  ckageadmin;resolution:=optional;version="[1.2,2)",org.osgi.service.pe
<  rmissionadmin;resolution:=optional;version="[1.2,2)",org.osgi.service
<  .startlevel;resolution:=optional;version="[1.1,2)",org.osgi.service.u
<  rl;resolution:=optional;version="[1.0,2)"
< Bundle-SymbolicName: osgi.core
---
> Specification-Version: 4.2.0.redhat-4
> Import-Package: javax.management.openmbean;resolution:=optional,javax.
>  naming;resolution:=optional,javax.naming.directory;resolution:=option
>  al,javax.persistence;resolution:=optional,javax.servlet;resolution:=o
>  ptional,javax.servlet.http;resolution:=optional,javax.sql;resolution:
>  =optional,javax.xml.parsers;resolution:=optional,org.osgi.framework;r
>  esolution:=optional;version="[1.5,2)",org.osgi.jmx;resolution:=option
>  al;version="[1.0,2)",org.osgi.jmx.framework;resolution:=optional;vers
>  ion="[1.5,2)",org.osgi.jmx.service.cm;resolution:=optional;version="[
>  1.3,2)",org.osgi.jmx.service.permissionadmin;resolution:=optional;ver
>  sion="[1.2,2)",org.osgi.jmx.service.provisioning;resolution:=optional
>  ;version="[1.2,2)",org.osgi.jmx.service.useradmin;resolution:=optiona
>  l;version="[1.1,2)",org.osgi.service.blueprint.container;resolution:=
>  optional;version="[1.0,2)",org.osgi.service.blueprint.reflect;resolut
>  ion:=optional;version="[1.0,2)",org.osgi.service.cm;resolution:=optio
>  nal;version="[1.3,2)",org.osgi.service.component;resolution:=optional
>  ;version="[1.1,2)",org.osgi.service.event;resolution:=optional;versio
>  n="[1.2,2)",org.osgi.service.http;resolution:=optional;version="[1.2,
>  2)",org.osgi.service.jdbc;resolution:=optional;version="[1.0,2)",org.
>  osgi.service.jndi;resolution:=optional;version="[1.0,2)",org.osgi.ser
>  vice.jpa;resolution:=optional;version="[1.0,2)",org.osgi.service.log;
>  resolution:=optional;version="[1.3,2)",org.osgi.service.metatype;reso
>  lution:=optional;version="[1.1,2)",org.osgi.service.provisioning;reso
>  lution:=optional;version="[1.2,2)",org.osgi.service.remoteserviceadmi
>  n;resolution:=optional;version="[1.0,2)",org.osgi.service.useradmin;r
>  esolution:=optional;version="[1.1,2)",org.osgi.util.tracker;resolutio
>  n:=optional;version="[1.4,2)",org.osgi.util.xml;resolution:=optional;
>  version="[1.0,2)"
> Bundle-SymbolicName: osgi.enterprise

Comment 1 Fernando Nasser 2013-10-04 14:50:32 UTC
Hi David, are these expected between -redhat-3 and -redhat-4 ?

Comment 2 David Walluck 2013-10-04 19:38:29 UTC
I think QE has compared the wrong jar manifests, comparing core to enterprise. Notice how one of them says core and the other says enterprise, but QE should be comparing the same artifacts to one other.

Comment 3 Pavel Janousek 2013-10-07 10:13:45 UTC
Thank you for spotting this. Yes, I've made a mistake during manual re-check, sorry for it.

Nevertheless, the differences are bigger that expected - see full diff output for core and enterprise JARs (first is ZIP, second RPM):

[root@dev148 ~]# diff 1/MANIFEST.MF  2/MANIFEST.MF 
24a25,28
> Implementation-Title: osgi.enterprise
> Implementation-Version: 4.2.0.redhat-4
> Built-By: mockbuild
> Specification-Vendor: OSGi Alliance
32,33c36,40                                                                                                                                                                                                                                  
< Bundle-Version: 4.2.0.201303060909                                                                                                                                                                                                         
< Bnd-LastModified: 1362622148957                                                                                                                                                                                                            
---                                                                                                                                                                                                                                          
> Implementation-Vendor: OSGi Alliance                                                                                                                                                                                                       
> Implementation-Vendor-Id: org.osgi                                                                                                                                                                                                         
> Build-Jdk: 1.6.0_24                                                                                                                                                                                                                        
> Bundle-Version: 4.2.0.201309170547                                                                                                                                                                                                         
> Bnd-LastModified: 1379454438360                                                                                                                                                                                                            
34a42,44                                                                                                                                                                                                                                     
> Specification-Title: osgi.enterprise                                                                                                                                                                                                       
> Bundle-Description: OSGi Service Platform Release 4 Version 4.2, Enter                                                                                                                                                                     
>  prise Interfaces and Classes for use in compiling bundles.                                                                                                                                                                                
38,39c48                                                                                                                                                                                                                                     
< Bundle-Description: OSGi Service Platform Release 4 Version 4.2, Enter                                                                                                                                                                     
<  prise Interfaces and Classes for use in compiling bundles.                                                                                                                                                                                
---                                                                                                                                                                                                                                          
> Specification-Version: 4.2.0.redhat-4
[root@dev148 ~]# diff 3/MANIFEST.MF  4/MANIFEST.MF 
9a10,13
> Implementation-Title: osgi.core
> Implementation-Version: 4.2.0.redhat-4
> Built-By: mockbuild
> Specification-Vendor: OSGi Alliance
17,18c21,25
< Bundle-Version: 4.2.0.201303060903
< Bnd-LastModified: 1362621821788
---
> Implementation-Vendor: OSGi Alliance
> Implementation-Vendor-Id: org.osgi
> Build-Jdk: 1.6.0_24
> Bundle-Version: 4.2.0.201309170543
> Bnd-LastModified: 1379454234190
19a27,29
> Specification-Title: osgi.core
> Bundle-Description: OSGi Service Platform Release 4 Version 4.2, Core 
>  Interfaces and Classes for use in compiling bundles.
23,24c33
< Bundle-Description: OSGi Service Platform Release 4 Version 4.2, Core 
<  Interfaces and Classes for use in compiling bundles.
---
> Specification-Version: 4.2.0.redhat-4
[root@dev148 ~]#

Comment 4 David Walluck 2013-10-07 15:40:57 UTC
I added headers to fix bug #988315. The reason for the differences is that the zip has the previous version. I suppose that it doesn't make sense to compare them until the next ER when the versions should be synced. At that point, it should fix bug #957684 as well. But the version change did not make the release in time for the zip.

Comment 5 Pavel Janousek 2013-10-15 08:53:49 UTC
Fixed in ER5 build.


Note You need to log in before you can comment on or make changes to this bug.