approvals / approvals/ApprovalTests.cpp

Impossible to use UNC filename in TemplatedCustomNamer [`removeRedundantDirectorySeparators()` breaks use of UNC paths, which contain `\\`]

Open
#225 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug namers
Dominant language
C++
Stars
339
Forks
55
PR merge metrics
No merged PRs in 30d

Description

If the TemplatesCustomNamer is instructed to create a filename starting with "//SomeHost/SomeDir..", the double (back)slash is removed in "removeRedundantDirectorySeparators", which makes it impossible to use UNC paths.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate removeRedundantDirectorySeparators() in TemplatedCustomNamer and first reproduce the reported behavior with a filename beginning with a UNC path such as "//SomeHost/SomeDir". Add regression coverage for UNC filenames and verify that redundant separators are still handled without breaking the leading UNC separator.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.