Projekt

Allgemein

Profil

Aktionen

GX-Bug #67962

geschlossen

Vue app on logs page fails, if log files contain `null`

Von Mirko Janssen vor mehr als 3 Jahren hinzugefügt. Vor fast 3 Jahren aktualisiert.

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

0%

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

Die "Logs anzeigen"-Seite funktioniert nun auch, wenn das Log einen null-Wert enthält

Tags:
Fix

Beschreibung

If a log contains a null\n or null, the Vue app on the logging page will fail. This results in an endless loading spinner and no error message.
To fix this, the PHP backend should filter these "logs" out.

Steps to reproduce

  1. Add the buggy.log.json into the logfiles directory
  2. Try to open the corresponding logs in the Gambio Admin
  3. You should see a loading spinner endlessly spinning

How it should be

The loading spinner should vanish after a while and you should see some (or no) logs.

Note

See also the patch I added, which fixes this problem.


Dateien

filter_null_logs_from_log_files.patch (949 Bytes) filter_null_logs_from_log_files.patch Mirko Janssen, 24.11.2020 13:01
buggy.log.json (613 Bytes) buggy.log.json Mirko Janssen, 24.11.2020 13:08


Zugehörige Tickets

Kopiert nach GX-Entwicklung - GX-Bug #67988: Die Logs anzeigen Seite kann nicht angezeigt werden, wenn eine Logdatei 'null' als Wert enthält | Vue app on logs page fails, if log files contain `null`ErledigtAlexandre Ataides

Aktionen
Aktionen

Auch abrufbar als: Atom PDF