Issue Bug Closed

#74452retrieveFileOrFolderObject does not find processed files

marian gosign 03/07/16, 15:41 updated 03/28/17, 21:24

Description

Usage example:

$processedFile = $resourceFactory->retrieveFileOrFolderObject($filePublicUrl);

with `$filePublicUrl` being a path as returned by `IMG_RESOURCE` for example.

### I expect:

`$processedFile` is a `ProcessedFile` instance

### What happens:

`$processedFile` is NULL

### The reason

The table `sys_file_processed` uses `/processed/…` identifiers but `findBestMatchingStorageByLocalPath` strips the `/` at the beginning so match can be found. The reason is explained in #65765.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.