Skip to content

[Bug]: Embedded Images does not migrate for User Story and Bugs #3112

@Varush1

Description

@Varush1

Version

  • I confirm that I am using the latest version

Source Version

Azure DevOps Service

Target Version

Azure DevOps Service

Relevant configuration

{
  "$schema": "https://devopsmigration.io/schema/configuration.schema.json",
  "Serilog": {
    "MinimumLevel": "Debug"
  },
  "MigrationTools": {
    "Version": "16.3",
    "Endpoints": {
      "Source": {
        "EndpointType": "TfsTeamProjectEndpoint",
        "Collection": 
        "Project": 
        "Authentication": {
          "AuthenticationMode": "AccessToken",
          "AccessToken": 
        },
          "ReflectedWorkItemIdField": "Custom.ReflectedWorkItemId"
      },
      "Target": {
        "EndpointType": "TfsTeamProjectEndpoint",
        "Collection": 
        "Project": 
        "Authentication": {
          "AuthenticationMode": "AccessToken",
          "AccessToken": 
        },
        "ReflectedWorkItemIdField": "Custom.ReflectedWorkItemId"
      }
    },
    "Processors": [
      {
        "ProcessorType": "TfsWorkItemMigrationProcessor",
        "Enabled": true,
        "WIQLQuery": "SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @TeamProject AND [System.WorkItemType] = 'Bug' AND [System.Id]  > 91120 AND [System.Id] <= 91125 ORDER BY [System.Id] ASC",
        "FixHtmlAttachmentLinks": true,
        "WorkItemCreateRetryLimit": 5,
        "FilterWorkItemsThatAlreadyExistInTarget": false,
        "GenerateMigrationComment": true,
        "SourceName": "Source",
        "TargetName": "Target",
 
        "LinkMigration": true,
        "AttachmentMigration": true,
        "AttachmentWorkingPath": "C:\\Temp\\AdoMigration\\Attachments",
        "AttachmentMaxSize": 480000000,
        "ReplayRevisions": true,
        "AttachRevisionHistory": false,
 
        "StringFieldsToManipulate": [
            "System.Description",
            "Microsoft.VSTS.Common.AcceptanceCriteria",
            "Microsoft.VSTS.TCM.Steps",
            "Microsoft.VSTS.TCM.ReproSteps"
          ]
      },
      {
        "ProcessorType": "TfsSharedQueryProcessor",
        "Enabled": false,
        "PrefixProjectToNodes": false,
        "SharedFolderName": "Shared Queries",
        "SourceToTargetFieldMappings": null,
        "SourceName": "Source",
        "TargetName": "Target"
      },
      {
        "ProcessorType": "TfsTestPlansAndSuitesMigrationProcessor",
        "Enabled": false,
        "OnlyElementsWithTag": null,
        "TestPlanQuery": null,
        "RemoveAllLinks": false,
        "MigrationDelay": 0,
        "RemoveInvalidTestSuiteLinks": false,
        "FilterCompleted": false,
        "SourceName": "Source",
        "TargetName": "Target"
      },
      {
        "ProcessorType": "TfsTestConfigurationsMigrationProcessor",
        "Enabled": false,
        "SourceName": "Source",
        "TargetName": "Target"
      },
      {
        "ProcessorType": "TfsExportUsersForMappingProcessor",
        "Enabled": false,
        "WIQLQuery": "SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @TeamProject AND [System.WorkItemType] = 'Epic' ORDER BY [System.Id] ASC",
        "OnlyListUsersInWorkItems": true,
        "SourceName": "Source",
        "TargetName": "Target"
      },
      {
        "ProcessorType": "TfsTeamSettingsProcessor",
        "Enabled": false,
        "MigrateTeamSettings": true,
        "UpdateTeamSettings": true,
        "PrefixProjectToNodes": false,
        "MigrateTeamCapacities": true,
        "Teams": null,
        "UseUserMapping": true,
        "SourceName": "Source",
        "TargetName": "Target"
      }
    ],
    "CommonTools": {
      "FieldMappingTool": {
        "Enabled": true,
        "FieldMaps": [
          {
            "FieldMapType": "FieldLiteralMap",
            "targetField": "Custom.SomeField",
            "value": "New field value",
            "ApplyTo": [
              "SomeWorkItemType"
            ]
          }
        ]
      },
      "TfsEmbededImagesTool": {
        "Enabled": true
      },
      "TfsUserMappingTool": {
        "Enabled": false,
        "UserMappingFile": "C:\\tools\\MigrationTools\\user_mappings.json",
        "MatchUsersByEmail": false,
        "IdentityFieldsToCheck": [
          "System.AssignedTo",
          "System.CreatedBy",
          "System.Description",
          "Microsoft.VSTS.Common.ActivatedBy",
          "Microsoft.VSTS.Common.ResolvedBy",
          "Microsoft.VSTS.Common.ClosedBy"
        ]
      },
      "StringManipulatorTool": {
        "Enabled": true,
        "Manipulators": [
          {
            "Name": "BoldToMarkdown",
            "Enabled": false,
            "Pattern": "<b>(.*?)</b>",
            "Replacement": "**$1**",
            "Description": "Convert <b> to Markdown bold"
          },
          {
            "Name": "ItalicToMarkdown",
            "Enabled": false,
            "Pattern": "<i>(.*?)</i>",
            "Replacement": "_$1_",
            "Description": "Convert <i> to Markdown italic"
          },
          {
            "Name": "NormalizeNbspAndSpaces",
            "Enabled": true,
            "Pattern": "\\u00A0",
            "Replacement": " ",
            "Description": "Replace non-breaking spaces with regular spaces in Markdown text"
          },
          {
            "Name": "BoldCentralizedCheck",
            "Enabled": true,
            "Pattern": "centralized source-selection check",
            "Replacement": "**centralized source-selection check**",
            "Description": "Add bold formatting"
          },
          {
            "Name": "BoldConvrJson",
            "Enabled": true,
            "Pattern": "Convr JSON payload data",
            "Replacement": "**Convr JSON payload data**",
            "Description": "Add bold formatting"
          },
          {
            "Name": "BoldSparkProcessed",
            "Enabled": true,
            "Pattern": "Spark processed data",
            "Replacement": "**Spark processed data**",
            "Description": "Add bold formatting"
          },
          {
            "Name": "NormalizeNbsp",
            "Enabled": true,
            "Pattern": "\\u00A0",
            "Replacement": " ",
            "Description": "Fix non-breaking spaces"
          },
          {
            "Name": "PreserveBold",
            "Enabled": true,
            "Pattern": "\\*\\*(.*?)\\*\\*",
            "Replacement": "**$1**",
            "Description": "Preserve bold Markdown syntax"
          }
        ],
        "MaxStringLength": 1000000
      }
    }
  }
}

Relevant log output

What happened?

A bug happened! Where the images that are present under Description, Attachment, comments are not migrated. Rather it has appeared as https link over the places.
This issue is quite random for some workitems but is creating a mess with jumbled text

Debug in Visual Studio

  • Visual Studio Debug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions