Bug #82826 unneeded version requirement for javax.net.ssl Import-Package on OSGi MANIFES.MF

Submitted: 31 Aug 2016 16:34 Modified: 11 Jan 2020 17:04
Reporter: João Nelas Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:5.1.36 OS:Any
Assigned to: Filipe Silva CPU Architecture:Any
Tags: OSGI

[31 Aug 2016 16:34] João Nelas
Description:
On the MANIFEST.MF file, the Import-Package directive specifies a version for the javax.net.ssl package:

Import-Package: javax.net, javax.net.ssl; version="[1.0.1, 2.0.0)"; resolution:=optional,...

Normally, javax packages are required without a version because they are exported by the system bundle with version 0.0.0 (they are a part of the jdk and so have no specific version)

When trying to use SSL to talk to a database, this leads to a failure to construct the connection because there is no javax.net.ssl package exported that respects the version range.

How to repeat:
In an OSGi environment try to configure an SSL connection to a mysql server.

Suggested fix:
Remove the version restriction.
[24 Oct 2016 15:28] Filipe Silva
Hi João,

Thank you for your interest in Connector/J.

This bug was verified against Apache Felix and it will be fixed as you  suggested.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.