Bug #16830
openrestClient Special Column Exception Handling
0%
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
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.