Issue Bug Closed

#107892Fix paths in CleanUpLocalProcessedFilesTest fixture

Česlav Przywara 10/28/25, 17:14 updated 12/02/25, 12:04

Description

The CleanUpLocalProcessedFilesTest defines mapping between test files and file paths in storage. These paths for ReferencedImage.png and ReferencedImage2.png are defined as follows:

  • local-storage/_processed_/1/a/ReferencedImage.png
  • local-storage/_processed_/1/a/ReferencedImage2.png
However, the fixture data sys_file_processedfile that initializes database content for the test, define the corresponding paths without “/1” in their path:
  • /_processed_/a/ReferencedImage.png
  • /_processed_/a/ReferencedImage2.png

I believe this is a bug, since both files (as the name indicates) should be referenced.

I was wondering why the test didn’t catch the problem reported in #107864. It seems the test is buggy.

Reviews 2