Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-7231

Link checker for broken links should be more flexible about https connections

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.LATER
    • None
    • None
    • None
    • 2 - Long term
    • 2 - Normal

      Currently, the test to outgoing references to https servers mail fail if the server is https but has securities issues.

      We should consider but cool about thoses connections : since we are not getting any informations from theses links, a non secure connection is enought so we could accept all connections.

      Here is a piece of code to accept all connections with httpclient:

                  SSLContext sslContext = SSLContexts.custom().loadTrustMaterial(null, new TrustSelfSignedStrategy()).build();
                  httpclient = HttpClientBuilder.create().useSystemProperties().setSSLSocketFactory(new SSLConnectionSocketFactory(sslContext, SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER)).setRedirectStrategy(new LaxRedirectStrategy()).build();
      

            Unassigned Unassigned
            raphael Raphaël Franchet
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: