Skip to content

[Bug]: TfsNodeStructureTool / Mappings is not stopping at the first match #2608

Open
@sbouchexbellomie-Philips

Description

Version

  • I confirm that I am using the latest version

Source Version

Azure DevOps Service

Target Version

Azure DevOps Service

Relevant configuration

I'm using the TfsNodeStructureTool Iteration mappings to translate iteration paths.

I have 2 lines in the mapping definition:
- "Foo\\\\AAA\\\\123\\\\(.+)": "FooDest\\AAA\\$1"
- "Foo\\\\(.+)": "FooDest\\$1"

Relevant log output

[09:54:12 DBG] [16.0.10-Local.4-3-gd85fe4a5] NodeStructureEnricher.GetNewNodeName(Foo\AAA\123\test\azerty, Iteration)
[09:54:12 DBG] [16.0.10-Local.4-3-gd85fe4a5] NodeStructureEnricher.GetNewNodeName::Mappers
[09:54:12 DBG] [16.0.10-Local.4-3-gd85fe4a5] NodeStructureEnricher.GetNewNodeName::Mappers::Foo\\(.+)
[09:54:12 DBG] [16.0.10-Local.4-3-gd85fe4a5] NodeStructureEnricher.GetNewNodeName::Mappers::Foo\\(.+)::Match
[09:54:12 DBG] [16.0.10-Local.4-3-gd85fe4a5] NodeStructureEnricher.GetNewNodeName::Mappers::Foo\\(.+)::replaceWith(FooDest\AAA\123\test\azerty)

What happened?

Iteration path "Foo\AAA\123\test\azerty" should be translated to "Foo\AAA\test\azerty" instead of "FooDest\AAA\123\test\azerty"

Apparently, the match is done on all lines instead of stopping at the first match

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