Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Storage] Fix the issue of listing blobs with leading slashes #21427

Merged
merged 12 commits into from
Apr 14, 2023
Merged
2 changes: 2 additions & 0 deletions src/Storage/Storage.Management/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Upcoming Release
* Added a warning message for an upcoming breaking change when getting a single blob
- `Get-AzStorageBlob`
* Fixed the issue of listing blobs with leading slashes
- `Get-AzStorageBlob`
* Added warning messages for an upcoming cmdlet breaking change
Expand Down
3 changes: 3 additions & 0 deletions src/Storage/Storage/Blob/Cmdlet/GetAzureStorageBlob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ namespace Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet
/// <summary>
/// list azure blobs in specified azure container
/// </summary>
[GenericBreakingChange("Leading and trailing slashes on the blob name will not be trimmed when getting a single blob",
OldWay = "Leading and trailing slashes on the blob name are trimmed",
yifanz0 marked this conversation as resolved.
Show resolved Hide resolved
NewWay = "Leading and trailing slashes on the blob name are not trimmed")]
[Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageBlob", DefaultParameterSetName = NameParameterSet),OutputType(typeof(AzureStorageBlob))]
public class GetAzureStorageBlobCommand : StorageCloudBlobCmdletBase
{
Expand Down