GX-Bug #55786
geschlossenWenn der Shop offline ist, wird im Hintergrund trotzdem die komplette Startseite verarbeitet.
100%
Es wird lediglich die Shop-Offline Seite verarbeitet, wenn der Offline-Modus des Shops aktiviert ist
Beschreibung
Wenn der Shop offline ist oder wenn ein Update durchgeführt wird, wird die Startseite komplett verarbeitet obwohl nur die Offline Seite angezeigt werden muss. Bei einem Fehler in der Startseite, z.B. bei einem Update werden bereits SQL Befehle auf der Startseite ausgeführt und durch das nicht vorhanden Datenbank-Update, wird die Weiterleitung zum Updater blockiert und ein SQL Fehler angezeigt.
Checkliste 0/0
Zugehörige Tickets
Von Amine Riad vor fast 6 Jahren aktualisiert
Proposal for a solution:
Tills first solution could be still the best approach: https://sources.gambio-server.net/gambio/gxdev/merge_requests/577/diffs
We just have to implement a whitelisting for specific calls the Gambio Hub makes. At the moment I think only a call to shop.php?do=ShopInfo is relevant. My idea is just not to diplay the offline page if the call was made via a shop.php?do=ShopInfo request (this is part of the communication between the shop and the Gambio Hub). So Tills solution should be reimplemented and modified until it works.