#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
Files 1
History 711
-
Franz Holzinger commented and changed attached patch-106518.diff subject
Exception file does not existWrong filepath generated in createFromProcessedFile <span data-processor="relativetime" data-value="2025-04-09T20:36:04+00:00" > 04/09/25, 20:36 </span> -
Gerrit Code Review pushed patch set 1 for main to change 89074 status
NewUnder Review <span data-processor="relativetime" data-value="2025-04-11T21:06:27+00:00" > 04/11/25, 21:06 </span> -
Gerrit Code Review pushed patch set 2 for main to change 89074 <span data-processor="relativetime" data-value="2025-04-11T21:06:45+00:00" > 04/11/25, 21:06 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 89074 <span data-processor="relativetime" data-value="2025-04-11T21:07:07+00:00" > 04/11/25, 21:07 </span>
-
Benni Mack changed Related to #102755 <span data-processor="relativetime" data-value="2025-04-11T21:07:14+00:00" > 04/11/25, 21:07 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 89089 <span data-processor="relativetime" data-value="2025-04-12T18:46:19+00:00" > 04/12/25, 18:46 </span>
-
Benni Mack commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-04-12T19:00:07+00:00" > 04/12/25, 19:00 </span>Applied in changeset commit:aef7ceda3b4b4b4e52efd6796d0a5e31f2adea94.
-
Stefan Bürk changed Related to #104440 <span data-processor="relativetime" data-value="2025-04-18T12:22:15+00:00" > 04/18/25, 12:22 </span>
-
Garvin Hicking changed Related to #106985 <span data-processor="relativetime" data-value="2025-06-26T12:48:38+00:00" > 06/26/25, 12:48 </span>
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:22:03+00:00" > 12/02/25, 14:22 </span> -
Garvin Hicking changed Related to #110318 <span data-processor="relativetime" data-value="2026-07-29T13:38:12+00:00" > 07/29/26, 13:38 </span>
The reason of the error comes from typo3_src-13.4.8/typo3/sysext/core/Classes/Imaging/ImageResource.php
This adds the url with the “https://” into a relative file path. This leads only to a not found file under this wrong full file path!
The attached patch patch-106518.diff fixes this issue.