c8 icon indicating copy to clipboard operation
c8 copied to clipboard

Data: sources: file: wrong path for filenames with slashes

Open Zeatynis opened this issue 2 years ago • 3 comments

  • Version: 16.13.1
  • Platform: Windows/Linux

Hi, I am not sure if this is the right spot but I suppose that my issue lies in c8 or something that c8 uses. Names of files in my project start with /HCR/.

The issue is that the path generated in tmp/<autogenerated_name>.json file is wrong. That wrong generated path causes C8 to ignore my files in coverage report. obraz

When I change the path manually to %23hcr%23cj_common/%23hcr%23cj_db_tools.clas.abap everything works.

Zeatynis avatar Dec 08 '22 10:12 Zeatynis

I tried to analyze the problem myself, but I am not familiar with C8 and could not track down the cause in a reasonable amount of time.

Zeatynis avatar Dec 08 '22 10:12 Zeatynis

Note: It's not slashes but the hash sign (#) in filenames causing the problem. The filename needs to be appropriately escaped.

mbtools avatar Dec 14 '22 14:12 mbtools

@mbtools good digging, sounds like something we should add a regression test for.

bcoe avatar Jan 23 '23 16:01 bcoe