-
Notifications
You must be signed in to change notification settings - Fork 5k
Description
Library name and version
Azure.Security.KeyVault.Certificates 4.6.0
Describe the bug
The async method GetCertificateVersionAsync throws Argument Exception if the version parameter is empty and throws ArgumentNullException if the version parameter is null. This is not the expected behavior according to the documentation given to this method.
This caused service failure on our side. We used to call the method in the old deprecated library with string.Empty value for the version parameter to get The root certificate.
Expected behavior
It is expected that the method accepts null or empty value for the version parameter. It should throw the exceptions only in the case of the certificateName is null or empty.
Actual behavior
The method throws exception when we pass string.Empty as the value of version parameter.
Reproduction Steps
certificateClient.GetCertificateVersionAsync(certificateName, string.Empty, cancellationToken);
Environment
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status