[BUG] Problem importing a certificate #47636
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
KeyVault
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Library name and version
Azure.Security.KeyVault.Certificates 4.6.0
Describe the bug
Hello,
I'm using Azure SDK to import a certificate to KeyVault. I'm using a method called
Azure.Security.KeyVault.Certificates.ImportCertificate
In here I see a call to
SendRequest
that takesCertificatesPath
and a slash (/
) as parameters, butCertificatesPath
already has a slash at the endazure-sdk-for-net/sdk/keyvault/Azure.Security.KeyVault.Certificates/src/CertificateClient.cs
Line 25 in 5de735f
making the endpoint being called like
/certificates//someName/import
with two slashes between
/certificates
and/import
Expected behavior
I would expect that the called endpoint be
/certificates/someName/import
Actual behavior
Endpoint called
/certificates//someName/import
Reproduction Steps
Create a
CertificateClient
and callImportCertificate
this.certificateClient.ImportCertificate(importOptions);
Environment
OS: Windows 10
IDE: Visual Studio 17.9.6
Using
mcr.microsoft.com/dotnet/sdk:6.0-alpine
docker image to compile andmcr.microsoft.com/dotnet/aspnet:6.0-alpine
docker image to run the app.The text was updated successfully, but these errors were encountered: