Skip to content

Small okhttp client for reproduce and troubleshoot SonarQube HTTP/HTTPS client connectivity

License

Notifications You must be signed in to change notification settings

sylvain-combe-sonarsource/sonarqube-check-client-connectivity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Check client connectivity

This small okhttp client for reproduce and troubleshoot SonarQube HTTP/HTTPS client connectivity

How to use

Copy the Client.java file to your SonarQube host. And compile && run it as follows (on SonarQube 8.9):

java -cp "<SonarQubePath/lib/*" \
-Djavax.net.debug=all  \
-Djavax.net.ssl.trustStore=<pathToYourTrustStore>  \
-Djavax.net.ssl.trustStorePassword=changeit  \
Client.java https://urlAddressToCheck/
  • https://badssl.com/ offers various sub-domains for additional checks.
  • <SonarQubePath/lib/common/* can be set for earlier (8.8-) of SonarQube
  • with SonarQube 9.x the sonar-application-9xxx.jar should be used as class path

Not yet available

sonar-scanner

It does not work for the scanner client connectivity (yet) as it repackages the okhttpclient.

authentication and additional headers

this small code does not allow you to set any authentication header (or any other specific header)

About

Small okhttp client for reproduce and troubleshoot SonarQube HTTP/HTTPS client connectivity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages