diff --git a/migrationTool/ams/AssetMigrationTracker.cs b/migrationTool/ams/AssetMigrationTracker.cs index 79e31a4..7a00113 100644 --- a/migrationTool/ams/AssetMigrationTracker.cs +++ b/migrationTool/ams/AssetMigrationTracker.cs @@ -86,9 +86,12 @@ public async Task GetMigrationStatusAsync(BlobContainerCli } metadataList.TryGetValue(AssetTypeKey, out assetType); - - metadataList.TryGetValue(ManifestNameKey, out manifestName); - + + if ( metadataList.TryGetValue(ManifestNameKey, out manifestName)) + { + manifestName = Uri.UnescapeDataString(manifestName); + } + if (metadataList.TryGetValue(OutputPathKey, out value) && !string.IsNullOrEmpty(value)) { outputPath = new Uri(value, UriKind.Absolute); @@ -126,7 +129,7 @@ public async Task UpdateMigrationStatus(BlobContainerClient container, AssetMigr if (!string.IsNullOrEmpty(result.ManifestName)) { - metadata.Add(ManifestNameKey, result.ManifestName); + metadata.Add(ManifestNameKey, Uri.EscapeDataString(result.ManifestName)); } if (result.OutputPath != null)