Skip to content

Commit

Permalink
VM-1294: unescape import file url 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-buravlev committed Mar 19, 2024
1 parent 6a37ed3 commit 4bc03ef
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ async Task ProgressInfoCallback(ImportProgressInfo progressInfo)
public async Task<ImportDataPreview> PreviewAsync(ImportProfile importProfile)
{
var importer = _dataImporterFactory.Create(importProfile.DataImporterType);
importProfile.ImportFileUrl = Uri.UnescapeDataString(importProfile.ImportFileUrl);

var context = new ImportContext(importProfile);

var result = new ImportDataPreview();
Expand Down Expand Up @@ -202,6 +204,8 @@ public async Task<ImportDataPreview> PreviewAsync(ImportProfile importProfile)
public async Task<ValidationResult> ValidateAsync(ImportProfile importProfile)
{
var importer = _dataImporterFactory.Create(importProfile.DataImporterType);
importProfile.ImportFileUrl = Uri.UnescapeDataString(importProfile.ImportFileUrl);

var context = new ImportContext(importProfile);

var validationResult = await importer.ValidateAsync(context);
Expand Down

0 comments on commit 4bc03ef

Please sign in to comment.