Bug #2801

0.8.1, localized help links, unable to find valid certification path to requested target

Added by Matthieu Decorde 2 months ago. Updated about 1 month ago.

Status:New Start date:04/30/2020
Priority:Normal Due date:
Assignee:- % Done:

80%

Category:UI / Menu Spent time: -
Target version:TXM 0.8.1

Description

The OpenLocalizedPage.getValidUrl failed to manage https links -> the non-localized page is opened instead

And a stacktrace is shown in the console at startup, after loading an HTTPS protected web page loaded by the TXM 0.8.1beta landing page.

Diagnostic

Current console log:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Stacktrace: 
[1]  org.txm.rcp.commands.OpenLocalizedWebPage.    getValidURL  OpenLocalizedWebPage.java, 94
[2]       org.txm.rcp.commands.OpenWelcomePage.openWelcomePage  OpenWelcomePage.java, 66
[3]  org.txm.rcp.ApplicationWorkbenchAdvisor$5.            run  ApplicationWorkbenchAdvisor.java, 609
[4]                    org.txm.rcp.Application.          start  Application.java, 260
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1964)
...
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
    at org.txm.rcp.Application.start(Application.java:260)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
...
    at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
    at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
...
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1596)
    ... 47 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
...
    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)
    ... 53 more

Solution

*Use HttpsURLConnection.openconnection() to test "https" URLs
  • don't print the stacktrace
    *print an error message with Log.fine() : "Error while testing the "https:///a/b" web page: xyz exception message"

History

#1 Updated by Matthieu Decorde 2 months ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde about 1 month ago

  • Description updated (diff)

#3 Updated by Matthieu Decorde about 1 month ago

  • % Done changed from 0 to 80
  • Description updated (diff)

Also available in: Atom PDF