Projekt

Allgemein

Profil

GX-Bug #68085

Von Till Tepelmann vor mehr als 3 Jahren aktualisiert

Wenn eine XML Datei für das alte Gambio Admin Menüsystem eingelesen wird und diese fehlerhaft ist, ist der gesamte Gambio Admin nicht mehr aufrufbar 

 Kann wie folgt reproduziert werden: 

 1. Shopversion 4.3.1.0 oder 4.3.2.0 installieren 
 2. Die Datei /GXModules/Gambio/Google/Admin/Menu/menu_google.xml mit der Datei aus dem Anhang tauschen 
 3. Unter "Toolbox->Cache" den Modulcache erneuern 

 Erwartetes Ergebnis: 
 Der Gambio Admin ist weiterhin mit Menü aufrufbar und kann ohne weiteres bedient werden. Der Fehler wird in eine Log-Datei geschrieben aber beinträchtigt den Gambio Admin in keinster Weise. 

 Tatsächliches Ergebnis: 
 Es wird eine Fehlermeldung angezeigt der Gambio Admin ist nicht mehr bedienbar das Menü fehlt. 

 ----- 

 When an XML file for the old Gambio Admin menu system is read in and it is corrupted, the entire Gambio Admin is no longer accessible 

 Can be reproduced as follows: 

 1. install shop version 4.3.1.0 or 4.3.2.0 
 2. swap the file /GXModules/Gambio/Google/Admin/Menu/menu_google.xml with the file from the attachment 
 3. under "Toolbox->Cache" renew the module cache 

 Expected result: 
 The Gambio Admin is still usabale with menu and can be operated further. The error is written to a log file but does not affect the Gambio Admin in any way. 

 Actual result: 
 An error message is displayed the Gambio Admin is no longer operable the menu is missing. 


 ------- 

 Uncaught TypeError: Argument 1 passed to Gambio\Admin\Layout\Menu\Models\Cache\MenuItem::__construct() must be of the type string, null given, called in /var/www/tt/dev/GambioAdmin/Layout/Menu/Models/Cache/MenuItem.php on line 89 and defined in /var/www/tt/dev/GambioAdmin/Layout/Menu/Models/Cache/MenuItem.php:60 
 Stack trace: 
 #0 /GambioAdmin/Layout/Menu/Models/Cache/MenuItem.php(89): Gambio\Admin\Layout\Menu\Models\Cache\MenuItem->__construct(NULL, 'admin.php', 10, 'do=GoogleShoppi...', NULL) 
 #1 /GambioAdmin/Layout/Menu/Factories/CacheMenuFactory.php(121): Gambio\Admin\Layout\Menu\Models\Cache\MenuItem::fromArray(Array, NULL) 
 #2 /GambioAdmin/Layout/Menu/EventListeners/GxModules/Xml/XmlMenuListener.php(144): Gambio\Admin\Layout\Menu\Factories\CacheMenuFactory->createMenuItem(Array, NULL) 
 #3 /GambioAdmin/Layout/Menu/EventListeners/GxModules/Xml/XmlMenuListener.php(100): Gambio\Admin\Layout\Menu\EventListeners\GxModules\Xml\XmlMenuListener->addGroup(Obje 

Zurück