Project

General

Profile

Actions

Bug #16830

open

restClient Special Column Exception Handling

Added by Philipp Gröbelbauer 10 months ago. Updated 9 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
Carsten Rose
Target version:
Start date:
05.09.2023
Due date:
% Done:

0%

Estimated time:
Discuss:
Prio Planung:
No
Vote:

Description

The _restClient special column throws an exception if the call fails (e.g. server not reachable/ wrong url).

Example Call:

SELECT CONCAT('n:{{MY_URL:Y}}/typo3conf/ext/qfq/Classes/Api/rest.php/lectureREST|content:{"module": "', ev.module, '", "semester":"', sem.short, '", "eventType":"', IF(ev.eventType = 'Lecture', 'VL', IF(ev.eventType = 'Exercise', 'UE', '')),'"}|method:GET') AS '_restClient|_hide'

Can lead to an exeption that will take up the whole page:

The exception should not interfere with the rest of the page!
The user can already read if success/error from {{http-status:C}} and react to that. The exception could result in a status 500.


Files

clipboard-202309051600-0p7po.png View clipboard-202309051600-0p7po.png 17.4 KB Philipp Gröbelbauer, 05.09.2023 16:00
Actions #1

Updated by Enis Nuredini 10 months ago

  • Status changed from New to Feedback
  • Assignee changed from Support: Web to Carsten Rose

Es existiert bereits ein Fix dazu ab QFQ V.23.6.3 : https://git.math.uzh.ch/typo3/qfq/-/merge_requests/597/diffs
Neben der Variable {{http-status:C}} wird auch noch die Variable {{error-message:CE:all}} ausgegeben, in der Details zum Fehler erscheinen. Somit braucht es meiner Meinung nach keine weiteren Änderungen.

Laut Philipp wird auf Seminarlive die QFQ V23.6.2 verwendet. Kann dies nicht verifizieren da ich kein Zugriff auf Seminarlive habe. Bei der aktuellen QFQ Version erscheint jedenfalls kein Generic Error mehr.

Actions #2

Updated by Carsten Rose 10 months ago

Actions #3

Updated by Carsten Rose 9 months ago

  • Tracker changed from Support to Bug
  • Target version changed from 355 to REST
Actions

Also available in: Atom PDF