Projekt

Allgemein

Profil

Aktionen

GX-Bug #70976

geschlossen

Shop Startseite nicht aufrufbar, wenn die Größenangaben für Artikelbilder nicht ermittelt werden könenn

Von Till Tepelmann vor 3 Monaten hinzugefügt. Vor 21 Tagen aktualisiert.

Status:
Erledigt
Priorität:
Dringend
Zugewiesen an:
-
Kategorie:
Core
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.9.3.0
Release Notes Langtext:

Verbesserte Handhabung beschädigter Bild-Dateien

Tags:

Beschreibung

Wenn keine Größenangaben für die Artikelbilder in der Datenbank stehen (0) dann wird versucht das aus den Bildern direkt abzurufen, wenn die Grafik aber defekt ist, dann gibt es eine Fehlermeldung und der Shop ist nicht mehr aufrufbar.

Kann wie folgt reproduziert werden:

  1. Shop installieren
  2. Ein Artikel anlegen
  3. Ein Bild im Artikel hochladen
  4. Das Bild auf dem Server im Ordner /images/product_images/info_images/ manipulieren, Inhalt der Datei verändern, sodass das Bild kaputt ist, also es zu einer komplett leeren Datei machen.
  5. In der Datenbank für die Bilder die Breite und Höhe auf 0 setzen, (UPDATE products SET products_image_w = 0, products_image_h = 0)
  6. Shop aufrufen, Startseite

Erwartetes Ergebnis:
Wenn die Artikelbilder defekt sind und die Größenangaben nicht ermittelt werden können, sollte der Shop weiterhin aufrufbar sein.

Tatsächliches Ergebnis:
Shop ist nicht mehr aufrufbar, wenn ein defektes Artikelbild geladen wird und die Größenangaben nicht ermittelt werden können.


If there are no size specifications for the article images in the database (0), then an attempt is made to retrieve this directly from the images, but if the graphic is defective, then there is an error message and the shop can no longer be called up.

Can be reproduced as follows:

  1. install the shop
  2. create an article
  3. upload an image in the article
  4. manipulate the image on the server in the folder /images/product_images/info_images/, change the content of the file so that the image is broken (a completely empty file would be considered broken)
  5. set the width and height of the images to 0 in the database (UPDATE products SET products_image_w = 0, products_image_h = 0)
  6. call up shop, start page

Expected result:
If the product images are defective and the sizes cannot be determined the shop should still be accessible.

Actual result:
The shop can no longer be called up if a defective product image is loaded and the size specifications cannot be determined.


Dateien

image.png (38,4 KB) image.png Till Tepelmann, 07.06.2024 12:01


Zugehörige Tickets

Vorgänger von GX-Entwicklung - GX-Bug #71100: Beschädigte Bilder zeigen kein Fallback-Bild an | Corrupted images do not show a fallback imageGemeldet

Aktionen
Aktionen

Auch abrufbar als: Atom PDF