Project

General

Profile

Actions

Bug #9013

open

Error in Twig template not handled

Added by Nicola Chiapolini about 3 years ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
Carsten Rose
Target version:
Start date:
04.09.2019
Due date:
% Done:

0%

Estimated time:
Discuss:
Prio Planung:

Description

Bei einem Fehler im Twig-Template wird die "Oops, an errro occured..." Meldung angezeigt und der Debug-Output ist nirgends sichtbar. (analog zu #6216)

Actions #1

Updated by Carsten Rose almost 3 years ago

  • Status changed from New to Some day maybe
Actions #2

Updated by Marc Egger over 2 years ago

  • Status changed from Some day maybe to New
  • Assignee set to Marc Egger
Actions #3

Updated by Marc Egger over 2 years ago

  • Status changed from New to In Progress
Actions #4

Updated by Marc Egger over 2 years ago

Created branch for issue and implemented it. Twig errors are shown.
Problem: QFQ removes new line characters early. The whole Twig template is on one line which makes the error messages useless.
Solution?: We have to find a way to keep the new line characters in the twig template when parsing a QFQ report.

Actions #5

Updated by Marc Egger over 2 years ago

  • Status changed from In Progress to Priorize
Actions #6

Updated by Marc Egger over 1 year ago

  • Status changed from Priorize to New
  • Assignee changed from Marc Egger to Carsten Rose

QFQ loescht alle new line characters raus, wenn es einen Report rendert. deshalb ist es nicht moeglich eine schoene Twig fehlermeldung auszugeben, da man das twig template nur als einzeiligen string und nicht mit originaler formatierung rendert.
Hast du irgend eine (quick and dirty) idee wie man das twig template samt newlines aus dem report ziehen koennte beim parsen?

Nicola wäre uns um dieses feature sehr dankbar

Actions #7

Updated by Carsten Rose over 1 year ago

  • Priority changed from Normal to High
Actions #8

Updated by Carsten Rose over 1 year ago

  • Assignee changed from Carsten Rose to Marc Egger

Was waere mit '<br>'?

Actions #9

Updated by Carsten Rose over 1 year ago

  • Target version set to next4
Actions #10

Updated by Carsten Rose over 1 year ago

  • Target version changed from next4 to next3
Actions #11

Updated by Carsten Rose over 1 year ago

  • Priority changed from High to Normal
Actions #12

Updated by Carsten Rose over 1 year ago

  • Status changed from New to Priorize
Actions #13

Updated by Marc Egger over 1 year ago

  • Status changed from Priorize to New
Actions #14

Updated by Marc Egger over 1 year ago

Carsten weiss gerade nicht, weshalb alle \n geloescht werden.
Ansatz: das loeschen raus nehmen und probieren ob QFQ noch laeuft.
Falls nein: dann Twig keyword fuehzeitig erkennen und das loeschen der \n nur fuer non-twig machen
Falls ja: check ob wir das komplett rauslassen koennen

Actions #15

Updated by Marc Egger over 1 year ago

  • Status changed from New to Priorize
Actions #16

Updated by Marc Egger about 1 year ago

  • Assignee changed from Marc Egger to Carsten Rose
Actions #17

Updated by Carsten Rose about 1 year ago

  • Status changed from Priorize to New
Actions

Also available in: Atom PDF