Skip to content

[BUG]: FileTransform@1 breaks string values with double-quotes #21013

@C-Wal

Description

@C-Wal

New issue checklist

Task name

FileTransform@1

Task version

1

Issue Description

This seems to have broken sometime between September 2024 and now.
I have a FileTransform@1 task in a classic pipeline transforming a web.config with release variables.
One release variable has a double-quote in the value.
When this is processed the resulting value in the web.config has a single-quote instead of a double-quote.

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

TFS 2018

Operation system

Windows Server 2019

Relevant log output

No errors logged, it just munges the value.
Using a self-hosted build agent invoked by devops.azure.com.
Classic pipleline, not yaml.

Full task logs with system.debug enabled

No response

Repro steps

Add a FileTransform@1 task to update web.config values.
Use a double-quote in the variable value.
Watch as the double-quote becomes a single-quote in the transformed file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions