Bug 21026 - JOSM java program can not find cacerts SSL certificate keystore in openjdk sub folder
Summary: JOSM java program can not find cacerts SSL certificate keystore in openjdk su...
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Matteo Pasotti
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-04 17:00 CEST by Y.LE_NY
Modified: 2021-01-07 18:49 CET (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Y.LE_NY 2017-06-04 17:00:20 CEST
Description of problem:

Hello,
when I launch josm rev 12275 ( https://josm.openstreetmap.de/wiki/Download ) , I have the following error message :
2017-06-04 16:31:05.620 AVERTISSEMENT: java.nio.file.NoSuchFileException: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-1.b12.1.mga6.x86_64/jre/lib/security/cacerts
java.nio.file.NoSuchFileException: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-1.b12.1.mga6.x86_64/jre/lib/security/cacerts
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
        at java.nio.file.Files.newByteChannel(Files.java:361)
        at java.nio.file.Files.newByteChannel(Files.java:407)
        at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
        at java.nio.file.Files.newInputStream(Files.java:152)
        at org.openstreetmap.josm.io.CertificateAmendment.addMissingCertificates(CertificateAmendment.java:119)
        at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:318)

2017-06-04 16:31:05.621 AVERTISSEMENT: java.nio.file.NoSuchFileException: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-1.b12.1.mga6.x86_64/jre/lib/security/cacerts

the file cacert does not exist :
[user@localhost josm]$ ls -l /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-1.b12.1.mga6.x86_64/jre/lib/security/cacerts
ls: impossible d'accéder à '/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-1.b12.1.mga6.x86_64/jre/lib/security/cacerts': Aucun fichier ou dossier de ce type

the real file is here :
/etc/pki/java/cacerts


Version-Release number of selected component (if applicable):
rootcerts-java 
java-1.8.0-openjdk-headless-1.8.0.131-1.b12.1.mga6
java-1.8.0-openjdk-1.8.0.131-1.b12.1.mga6
rootcerts-java-20170404.00-1.mga6

Can you add java cacerts keystore in openjdk rpm package or add a symbolic link from openjdk subfolder .../security/cacerts to /etc/pki/java/cacerts in postinstall task for openjdk rpm and rpm rootcert-java as a requirements for this openjdk rpm ?

How reproducible:


Steps to Reproduce:
1.
2.
3.
David Walser 2017-06-05 02:03:17 CEST

Assignee: bugsquad => matteo.pasotti
CC: (none) => geiger.david68210, lists.jjorge

Comment 1 Matteo Pasotti 2021-01-07 18:49:24 CET
josm package is obsolete

Status: NEW => RESOLVED
Resolution: (none) => OLD


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