nkdAgility / azure-devops-migration-tools

Azure DevOps Migration Tools allow you to migrate Teams, Backlogs, Tasks, Test Cases, and Plans & Suits from one Project to another in Azure DevOps / TFS both within the same Organisation, and between Organisations.
https://nkdagility.com/learn/azure-devops-migration-tools/
MIT License
493 stars 328 forks source link

[preview] Images Not Correctly Migrated from TFS Server URLs Containing Spaces #2052

Closed SamVanCutsem closed 4 months ago

SamVanCutsem commented 4 months ago

Fixes #2050

The method Uri.ToString() fails to encode spaces as %20, leading to incorrect outcomes in URL comparisons. To address this, I have modified the code to use Uri.AbsoluteUri, which correctly encodes the URL. This change ensures that the comparison operates as expected in the following code snipped.

if (!match.Value.ToLower().Contains(oldTfsurl.ToLower()) && !match.Value.ToLower().Contains(oldTfsurlOppositeSchema.ToLower()))