nkdAgility/azure-devops-migration-tools

Fixing HTML field attachments for work items

Closed this issue · 2 comments

While running a configuration file trying to connect the HTML field attachments there is a bug and issue that I have tried to debug but have not got it working. I am able to get it working but really need to fix the HTML links. It seems that it stops when the attachment is malformed. This only occurs in the processor as the following "FixHtmlAttachmentLinks": true,


The following is the error:
[08:37:15 INF] EmbededImagesRepairEnricher: Fixing HTML field attachments for work item 70104 from https://dev.azure.com/ChampionX-DevOps/ to http://dev.azure.com/ChampionX-DevOps/
[08:37:38 ERR] System.Net.Http.HttpRequestException: Response status code does not indicate success: 302 (Found).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at MigrationTools.Enrichers.TfsEmbededImagesEnricher.FixEmbededImages(WorkItemData wi, String oldTfsurl, String newTfsurl, String sourcePersonalAccessToken) in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel\Enrichers\TfsEmbededImagesEnricher.cs:line 75
at MigrationTools.Enrichers.TfsEmbededImagesEnricher.Enrich(WorkItemData sourceWorkItem, WorkItemData targetWorkItem) in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel\Enrichers\TfsEmbededImagesEnricher.cs:line 27
at VstsSyncMigrator.Engine.WorkItemMigrationContext.ProcessWorkItem(WorkItemData sourceWorkItem, Int32 retryLimit, Int32 retrys) in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\WorkItemMigrationContext.cs:line 405
System.Net.Http.HttpRequestException: Response status code does not indicate success: 302 (Found).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at MigrationTools.Enrichers.TfsEmbededImagesEnricher.FixEmbededImages(WorkItemData wi, String oldTfsurl, String newTfsurl, String sourcePersonalAccessToken) in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel\Enrichers\TfsEmbededImagesEnricher.cs:line 75
at MigrationTools.Enrichers.TfsEmbededImagesEnricher.Enrich(WorkItemData sourceWorkItem, WorkItemData targetWorkItem) in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel\Enrichers\TfsEmbededImagesEnricher.cs:line 27
at VstsSyncMigrator.Engine.WorkItemMigrationContext.ProcessWorkItem(WorkItemData sourceWorkItem, Int32 retryLimit, Int32 retrys) in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\WorkItemMigrationContext.cs:line 405
[08:37:38 FTL] Error while running WorkItemMigration
System.Net.Http.HttpRequestException: Response status code does not indicate success: 302 (Found).
at VstsSyncMigrator.Engine.WorkItemMigrationContext.ProcessWorkItem(WorkItemData sourceWorkItem, Int32 retryLimit, Int32 retrys) in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\WorkItemMigrationContext.cs:line 454
at VstsSyncMigrator.Engine.WorkItemMigrationContext.InternalExecute() in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\WorkItemMigrationContext.cs:line 131
at MigrationTools.Engine.Processors.MigrationProcessorBase.Execute() in D:\a\1\s\src\MigrationTools\Engine\Processors\MigrationProcessorBase.cs:line 46
[08:37:38 ERR] WorkItemMigration The Processor MigrationEngine entered the failed state...stopping run
[08:37:38 INF] Application is shutting down...
[08:37:38 INF] Terminating: Application forcebly closed.
[08:37:38 INF] Application Ending
[08:37:38 INF] The application ran in 00:10:19.3065795 and finished at 11/05/2020 08:37:38
PS C:\tools\MigrationTools>

This processor is not working tried in the 11.6.33 also --> FixHtmlAttachmentLinks

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days