Skip to content

VaultConfiguration has bug if you pass null httpClientHandler param #194

Description

@kadir-olmez

When i pass null http client handler then i got following exception .

Exception :
at Vault.Client.VaultConfiguration..ctor(String basePath, HttpClientHandler httpClientHandler, Nullable`1 timeout, RetryConfiguration retryConfiguration, RateLimitConfiguration rateLimitConfiguration, TLSConfiguration tlsConfiguration)

In the Vault Configuration class, If httpClientHandler is null then you create a HttpClientHandler and set it to this.HttpClientHandler object. And After , you are using httpClientHandler object on following lines.

this.HttpClientHandler = httpClientHandler ?? new HttpClientHandler();
//
httpClientHandler.ClientCertificates.Add((X509Certificate) this.TLSConfiguration.ClientCertificate);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions