jks-keystore doesn't work for all Java versions

Bug #1449652 reported by Simon Déziel
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ca-certificates-java (Debian)
Unknown
Unknown
ca-certificates-java (Ubuntu)
Confirmed
Undecided
Unassigned
Utopic
Confirmed
Undecided
Unassigned
Vivid
Confirmed
Undecided
Unassigned

Bug Description

The jks-keystore update hook is trying to find a directory to use as the JAVA_HOME but doesn't look for all the possible/common locations.

for jvm in java-6-openjdk-$arch java-6-openjdk \
           java-7-openjdk-$arch java-7-openjdk java-6-sun; do
if [ -x /usr/lib/jvm/$jvm/bin/java ]; then
        break
fi
done

For example, this doesn't work with OpenJDK-8 (available in 14.10+ or through PPAs for older releases).

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ca-certificates-java (not installed)
ProcVersionSignature: Ubuntu 3.13.0-51.84-generic 3.13.11-ckt18
Uname: Linux 3.13.0-51-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.10
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Apr 28 11:04:19 2015
InstallationDate: Installed on 2014-01-26 (456 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140124)
SourcePackage: ca-certificates-java
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Simon Déziel (sdeziel) wrote :
Revision history for this message
Simon Déziel (sdeziel) wrote :

Here is a patch that works well with openjdk-8.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ca-certificates-java (Ubuntu Utopic):
status: New → Confirmed
Changed in ca-certificates-java (Ubuntu Vivid):
status: New → Confirmed
Changed in ca-certificates-java (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.