|
@@ -54,7 +54,7 @@ namespace TEAMModelOS.SDK.DI
|
|
try
|
|
try
|
|
{
|
|
{
|
|
var options = _optionsMonitor.Get(name);
|
|
var options = _optionsMonitor.Get(name);
|
|
- return new BlobContainerClient(options.StorageAccountConnectionString, containerName);
|
|
|
|
|
|
+ return new BlobContainerClient(options.StorageAccountConnectionString, containerName.ToLower());
|
|
}
|
|
}
|
|
catch (OptionsValidationException e)
|
|
catch (OptionsValidationException e)
|
|
{
|
|
{
|
|
@@ -97,7 +97,7 @@ namespace TEAMModelOS.SDK.DI
|
|
{
|
|
{
|
|
StartsOn = DateTimeOffset.UtcNow.Subtract(new TimeSpan(0, 15, 0)),
|
|
StartsOn = DateTimeOffset.UtcNow.Subtract(new TimeSpan(0, 15, 0)),
|
|
ExpiresOn = DateTimeOffset.UtcNow.Add(new TimeSpan(36135, 0, 0, 0)),
|
|
ExpiresOn = DateTimeOffset.UtcNow.Add(new TimeSpan(36135, 0, 0, 0)),
|
|
- BlobContainerName = containerName
|
|
|
|
|
|
+ BlobContainerName = containerName.ToLower()
|
|
};
|
|
};
|
|
|
|
|
|
blobSasBuilder.SetPermissions(blobContainerSasPermissions);
|
|
blobSasBuilder.SetPermissions(blobContainerSasPermissions);
|
|
@@ -107,7 +107,7 @@ namespace TEAMModelOS.SDK.DI
|
|
{
|
|
{
|
|
Scheme = "https",
|
|
Scheme = "https",
|
|
Host = $"{accountname}.blob.{endpoint}",
|
|
Host = $"{accountname}.blob.{endpoint}",
|
|
- Path = containerName
|
|
|
|
|
|
+ Path = containerName.ToLower()
|
|
//Query = sasQueryParameters.ToString()
|
|
//Query = sasQueryParameters.ToString()
|
|
};
|
|
};
|
|
|
|
|
|
@@ -138,7 +138,7 @@ namespace TEAMModelOS.SDK.DI
|
|
{
|
|
{
|
|
StartsOn = DateTimeOffset.UtcNow.Subtract(new TimeSpan(0, 15, 0)),
|
|
StartsOn = DateTimeOffset.UtcNow.Subtract(new TimeSpan(0, 15, 0)),
|
|
ExpiresOn = DateTimeOffset.UtcNow.Add(new TimeSpan(1, 0, 15, 0)),
|
|
ExpiresOn = DateTimeOffset.UtcNow.Add(new TimeSpan(1, 0, 15, 0)),
|
|
- BlobContainerName = containerName
|
|
|
|
|
|
+ BlobContainerName = containerName.ToLower()
|
|
};
|
|
};
|
|
|
|
|
|
blobSasBuilder.SetPermissions(blobContainerSasPermissions);
|
|
blobSasBuilder.SetPermissions(blobContainerSasPermissions);
|
|
@@ -148,7 +148,7 @@ namespace TEAMModelOS.SDK.DI
|
|
{
|
|
{
|
|
Scheme = "https",
|
|
Scheme = "https",
|
|
Host = $"{accountname}.blob.{endpoint}",
|
|
Host = $"{accountname}.blob.{endpoint}",
|
|
- Path = containerName
|
|
|
|
|
|
+ Path = containerName.ToLower()
|
|
//Query = sasQueryParameters.ToString()
|
|
//Query = sasQueryParameters.ToString()
|
|
};
|
|
};
|
|
|
|
|
|
@@ -242,7 +242,7 @@ namespace TEAMModelOS.SDK.DI
|
|
{
|
|
{
|
|
StartsOn = DateTimeOffset.UtcNow.Subtract(new TimeSpan(0, 15, 0)),
|
|
StartsOn = DateTimeOffset.UtcNow.Subtract(new TimeSpan(0, 15, 0)),
|
|
ExpiresOn = DateTimeOffset.UtcNow.Add(new TimeSpan(1, 0, 15, 0)),
|
|
ExpiresOn = DateTimeOffset.UtcNow.Add(new TimeSpan(1, 0, 15, 0)),
|
|
- BlobContainerName = containerName,
|
|
|
|
|
|
+ BlobContainerName = containerName.ToLower(),
|
|
BlobName = blobName
|
|
BlobName = blobName
|
|
};
|
|
};
|
|
|
|
|
|
@@ -253,7 +253,7 @@ namespace TEAMModelOS.SDK.DI
|
|
{
|
|
{
|
|
Scheme = "https",
|
|
Scheme = "https",
|
|
Host = $"{accountname}.blob.{endpoint}",
|
|
Host = $"{accountname}.blob.{endpoint}",
|
|
- Path = $"{containerName}/{blobName}",
|
|
|
|
|
|
+ Path = $"{containerName.ToLower()}/{blobName}",
|
|
Query = sasQueryParameters.ToString()
|
|
Query = sasQueryParameters.ToString()
|
|
};
|
|
};
|
|
|
|
|
|
@@ -288,7 +288,7 @@ namespace TEAMModelOS.SDK.DI
|
|
{
|
|
{
|
|
StartsOn = DateTimeOffset.UtcNow.Subtract(new TimeSpan(0, 15, 0)),
|
|
StartsOn = DateTimeOffset.UtcNow.Subtract(new TimeSpan(0, 15, 0)),
|
|
ExpiresOn = dateTime,
|
|
ExpiresOn = dateTime,
|
|
- BlobContainerName = containerName,
|
|
|
|
|
|
+ BlobContainerName = containerName.ToLower(),
|
|
BlobName = blobName
|
|
BlobName = blobName
|
|
};
|
|
};
|
|
|
|
|
|
@@ -299,7 +299,7 @@ namespace TEAMModelOS.SDK.DI
|
|
{
|
|
{
|
|
Scheme = "https",
|
|
Scheme = "https",
|
|
Host = $"{accountname}.blob.{endpoint}",
|
|
Host = $"{accountname}.blob.{endpoint}",
|
|
- Path = $"{containerName}/{blobName}",
|
|
|
|
|
|
+ Path = $"{containerName.ToLower()}/{blobName}",
|
|
Query = sasQueryParameters.ToString()
|
|
Query = sasQueryParameters.ToString()
|
|
};
|
|
};
|
|
return new BlobAuth { url = fullUri.Uri.ToString(), sas = sasQueryParameters.ToString(), timeout = time };
|
|
return new BlobAuth { url = fullUri.Uri.ToString(), sas = sasQueryParameters.ToString(), timeout = time };
|