Issue Bug Closed

#106518Wrong filepath generated in createFromProcessedFile

Franz Holzinger 04/07/25, 19:13 updated 12/02/25, 14:22

Description

An 1314516809 InvalidArgumentException is thrown in typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php line 26.

File /mydomain.com/fileadmin/uploads/reparaturservice/uhren/luxusuhren/breitling-reparatur-komplettrevision.jpg does not exist.

The file exists at the location /fileadmin/uploads/reparaturservice/uhren/luxusuhren/breitling-reparatur-komplettrevision.jpg !

https://mydomain.com/fileadmin/uploads/reparaturservice/uhren/luxusuhren/breitling-reparatur-komplettrevision.jpg shows the image file.

Further investigations shows this:

Array    
0    /home/users/domain/www/mydomain.com/https
1    //mydomain.com/fileadmin/uploads/reparaturservice/uhren/luxusuhren/breitling-reparatur-komplettrevision.jpg
getFileObjectFromCombinedIdentifier $parts Pos 1

ResourceFactory.php    #199    ->debug

Somethings seems to be wrong with the internally used ResourceFactory::getFileObjectFromCombinedIdentifier

//mydomain.com/fileadmin/uploads/reparaturservice/uhren/luxusuhren/breitling-reparatur-komplettrevision.jpg

getFileObjectFromCombinedIdentifier $fileIdentifier Pos 2

/home/users/mydomain/www/mydomain.com/mydomain.com/fileadmin/uploads/reparaturservice/uhren/luxusuhren/breitling-reparatur-komplettrevision.jpg

getFileInfoByIdentifier $absoluteFilePath

LocalDriver.php    #258    ->debug

The LocalDriver.php gives the wrong file path containing “/mydomain.com/mydomain.com/”. Only one part “/mydomain.com/” would have been correct:
_/home/users/mydomain/www/mydomain.com/fileadmin/uploads/reparaturservice/uhren/luxusuhren/breitling-reparatur-komplettrevision.jpg
_

But what can be the reason for this error? Is the internal combined file identifier wrong?

Reviews 3