#106518Wrong filepath generated in createFromProcessedFile
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
Related issues 4
- Feature #102755Register content object getImageResource hooks via autoconfiguration
- Bug #104440stripPathSitePrefix breaks file path
- Bug #106985File list: Updated meta data throws error while reprocessing a preview image
- Bug #110318ProcessedFile::getForLocalProcessing() asks the processing storage for a file that points to the original