Projekt

Allgemein

Profil

Aktionen

GX-Bug #67987

geschlossen

Invalid product links lead to an error message if no error page has been activated | Ungültige Produktlinks führen zu einer Fehlermeldung, sofern keine Fehlerseite aktiviert wurde

Von Moritz Bunjes vor mehr als 3 Jahren hinzugefügt. Vor fast 3 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Ahmed Hamouda
Kategorie:
Frontend
Zielversion:
% erledigt:

0%

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

Ungültige Produktlinks können keine Fehlermeldung mehr verursachen


Beschreibung

An invalid product url can cause an error message like this:

Uncaught Exception: Product ID can't be 0 in /var/www/html/feature/src/GambioShop/Product/ValueObjects/ProductId.php:37
Stack trace:
#0 /var/www/html/feature/src/GambioShop/Product/SellingUnit/Database/Listener/OnSellingUnitIdCreateListener.php(29): Gambio\Shop\Product\ValueObjects\ProductId->__construct()
#1 /var/www/html/feature/src/GambioCore/Event/EventDispatcher.php(62): Gambio\Shop\Product\SellingUnit\Database\Listener\OnSellingUnitIdCreateListener->__invoke()
#2 /var/www/html/feature/src/GambioShop/SellingUnit/Unit/Factories/SellingUnitIdFactory.php(88): Gambio\Core\Event\EventDispatcher->dispatch()
#3 /var/www/html/feature/src/product_info.php(105): Gambio\Shop\SellingUnit\Unit\Factories\SellingUnitIdFactory->createFromCustom()
#4 {main}
  thrown

Steps to reproduce:

  1. deactivate the error page for missing contents (Gambio Admin > Content > Own Error Pages)
  2. activate seo boost urls for products (Gambio Admin > Settings -> search for "seo" -> Activate search engine friendly URLs for the article page)
  3. open an invalid product link like http://your-shop-url/invalid.html

Expected:
A shop page is shown saying the product was not found

Actual:
An error message is displayed.


Dateien

2020-11-26_12-20.png (47,8 KB) 2020-11-26_12-20.png invalid product url causes error message Moritz Bunjes, 26.11.2020 12:20
2020-11-26_12-19.png (72,3 KB) 2020-11-26_12-19.png seo setting Moritz Bunjes, 26.11.2020 12:20
2020-11-26_12-17.png (65,2 KB) 2020-11-26_12-17.png deactivating error page Moritz Bunjes, 26.11.2020 12:20
2020-11-26_12-30.png (40,6 KB) 2020-11-26_12-30.png expected result page Moritz Bunjes, 26.11.2020 12:30


Zugehörige Tickets

Kopiert von GX-Entwicklung - GX-Bug #67969: Invalid product links lead to an error message if no error page has been activated | Ungültige Produktlinks führen zu einer Fehlermeldung, sofern keine Fehlerseite aktiviert wurdeErledigtAlexandre Ataides

Aktionen
Aktionen

Auch abrufbar als: Atom PDF