Projekt

Allgemein

Profil

GX-Bug #69677

Von Till Tepelmann vor etwa 2 Jahren aktualisiert

Wenn eine .cache Datei leer 0 Byte ist, kann der Shop nicht aufgerufen werden 

 Kann wie folgt reproduziert werden: 

 1. Shop installieren mit G-Protector 
 2. Shop aufrufen 
 3. Auf dem FP Server im Ordner /GProtector/cache/ die Datei meta_data.cache öffnen und den Inhalt entfernen 
 4. Datei wieder hochladen 
 5. Shop erneut aufrufen 

 Erwartetes Ergebnis: 
 Shop muss weiterhin aufrufbar sein und die Datei sollte automatisch wieder mit Inhalt gefüllt werden 

 Tatsächliches Ergebnis: 
 Shop ist nicht mehr aufrufbar und es erscheint eine Fehlermeldung 

 ------------------- 

 If a .cache file is empty 0 bytes, the shop cannot be accessed 

 Can be reproduced as follows: 

 1. install store with G-Protector 
 2. call the store 
 3. open the file meta_data.cache on the FP server in the folder /GProtector/cache/ and remove the content 
 4. upload the file again 
 5. open the store again 

 Expected result: 
 Store should still be callable and the file should be automatically filled with content again 

 Actual result: 
 Store is no longer callable and an error message appears 


 ``` php 

 Fatal error: Uncaught Error: Call to a member function modificationDateUnixTime() on boolean in /GProtector/classes/FilterCache.php:337 Stack trace: #0 /GProtector/classes/FilterCache.php(183): GProtector\FilterCache->getModificationDateUnixTime() #1 /GProtector/classes/FilterCache.php(84): GProtector\FilterCache->isCacheOlderThanRemoteFile() #2 /GProtector/classes/GProtector.inc.php(60): GProtector\FilterCache->renew() #3 /GProtector/start.inc.php(41): GProtector\GProtector->start() #4 /GXMainComponents/Application.inc.php(513): require('/var/www/tt/bet...') #5 /GXMainComponents/Application.inc.php(122): Gambio\GX\Application->runGProtector() #6 /includes/application_top.php(15): Gambio\GX\Application->run() #7 /index.php(27): include('/var/www/tt/bet...') #8 {main} thrown in /GProtector/classes/FilterCache.php on line 337 
 ``` 

Zurück