Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-963

Coverity static analysis, Unwritten field, EntitySaslClient.clientCertUrl (Elytron)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.2.0.Beta3
    • 1.1.0.Beta24
    • None
    • None

    Description

      Coverity found field EntitySaslClient.clientCertUrl is never filled. So probably initially intended behavior in X509Certificate getClientCertificate() method is not covered.

          private X509Certificate getClientCertificate() throws SaslException {
              if ((clientCertChain != null) && (clientCertChain.length > 0)) {
                  return clientCertChain[0];
              } else if (clientCertUrl != null) {
                  try {
                      return EntityUtil.getCertificateFromUrl(clientCertUrl);
                  } catch (IOException e) {
                      throw log.mechUnableToObtainServerCertificate(getMechanismName(), clientCertUrl.toString(), e).toSaslException();
                  }
              } else {
                  throw log.mechCallbackHandlerNotProvidedServerCertificate(getMechanismName()).toSaslException();
              }
          }
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-ivassile Ilia Vassilev
              mchoma@redhat.com Martin Choma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: