Bug #15641 Wrong manifest in jar file
Submitted: 9 Dec 2005 16:48 Modified: 9 Feb 2007 0:04
Reporter: Pascal Grange Email Updates:
Status: Patch pending
Category:Connector/J Severity:S4 (Feature request)
Version:3.0.17, 5.0.4 OS:Any (any)
Assigned to: Mark Matthews Target Version:
Triage: D5 (Feature request)

[9 Dec 2005 16:48] Pascal Grange
Description:
The manifest in mysql-connector-java-3.0.17-ga-bin.jar does not indicate any information.
This is really anoying when one wants to take advantage of the dependency management
mechanisme offered by the extensions of manifest.mf. For instance with tomcat, a jar file
explicitly depending on mysq-connector-java will result in a failure to load the
corresponding context.

How to repeat:
Just look the output of the following command :

unzip -c mysql-connector-java-3.0.17-ga-bin.jar META-INF/MANIFEST.MF

Suggested fix:
Suggestion of a correct META-INF/MANIFEST.MF file :

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: 1.4.2-b28 (Sun Microsystems Inc.)
Extension-Name: mysql-connector-java
Specification-Version: 3.0.17
Implementation-Version: 3.0.17
Implementation-Vendor-Id: com.mysql
[9 Dec 2005 19:07] Vasily Kishkin
I was able to find manifest.mf :
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: 1.4.2-b28 (Sun Microsystems Inc.)
Built-By: jdbcbuild

Name: common
Specification-Title: JDBC
Specification-Version: 3.0
Specification-Vendor: Sun Microsystems Inc.
Implementation-Title: MySQL Connector/J
Implementation-Version: 3.1.11
Implementation-Vendor: MySQL AB

What is wrong there ?
[12 Dec 2005 8:24] Pascal Grange
That's right, I found more relevant information in the manifest file of the current 3.1.12
version of ConnectorJ.

HOWEVER the Implementation-Vendor-Id is still missing from the manifest. Adding something
like :

Implementation-Vendor-Id: com.mysql

in the manifest would be great as it would solve extension issues when using with tomcat.
[8 Feb 2007 22:18] Sveta Smirnova
Thank you for the reasonable feature request.
[9 Feb 2007 0:04] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/19594