View Issue Details

IDProjectCategoryView StatusLast Update
0005313OXID eShop (all versions)4.11. Image handlingpublic2015-12-01 10:37
ReporterBergfreunde 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version4.7.4 / 5.0.4 revision 57063 
Target VersionFixed in Version 
Summary0005313: oxdynimggenerator::getImagePath() - Not available image will return a 0 kb file in browser
DescriptionIf an image is not available in folders like out/pictures/promo/, the method oxdynimggenerator::getImagePath() will return the image with 0 kb. The problem is, that $sImagePath is always set with a path (without filename), so the last if-statement will never be false

Change the last If-statement from
if ( $sImagePath ) {
to
if ( is_file($sImagePath) ) {
to resolve the problem
Steps To ReproduceAvailable image:
http://demoshop.oxid-esales.com/professional-edition/out/pictures/promo/surfer_wave_promo.jpg

Wrong Image:
http://demoshop.oxid-esales.com/professional-edition/out/pictures/promo/surfer_wave_promo_wrong.jpg
TagsImage Conversion
ThemeNot defined
BrowserAll
PHP VersionNot defined
MySQL VersionNot defined

Activities

jurate.baseviciene

2014-11-26 13:54

reporter   ~0010358

Reminder sent to: Bergfreunde

Hi,

 As we saw, you submitted a complete solution for this issue. If you feel fancy, you'd also have the possibility to contribute your changes directly to our GitHub repository on https://github.com/OXID-eSales/oxideshop_ce/. [^] Please leave a note there with the bug number you fixed so we can close this issue in the bug tracker."

Best regards,
Jurate