View Issue Details

IDProjectCategoryView StatusLast Update
0006411OXID eShop (all versions)4.11. Image handlingpublic2017-02-02 15:12
Reporters.krenz Assigned To 
Status resolvedResolutionfixed 
Fixed in Version4.10.4 / 5.3.4 
Summary0006411: Image generation for URLs containing a double slash fails.
DescriptionIf the URL for a generated picture includes a double slash right after the "out/pictures" part, oxDynImgGenerator::getInstance()->outputImage() will send an empty file. This happens because the method oxDynImgGenerator::_getImageUri() checks for the existance of "out/pictures/generated" but it will get "out/pictures//generated" in that case. So the check fails and the image won't be generated.

For example:
URL: http://whatever.domain/out/pictures//generated/product/1/247_200_75/lf_s4_1.jpg
If the image isn't generated --> Image generation fails
If the image already exists --> anything is fine (the filesystem ignores the second slash, but OXID doesn't)

TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined



2016-06-14 11:46

reporter   ~0011645

Last edited: 2016-06-14 12:04

I created a fix (including test) and a pull request on GitHub:


2017-02-02 15:08

reporter   ~0011954

Bug was fixed with PR 0000406 which was merged with commits
and backported to 5.3