puzzle / unilu-pruefungsabfrage

The University Exam Feedback Tool is designed to digitalize the process of providing students with access to their corrected exams after each exam session. This tool aims to modernize and streamline the existing process, making it more efficient and convenient for both students and faculty.
GNU General Public License v3.0
2 stars 0 forks source link

Error Page für System Fehler #76

Open pizzi-cato opened 6 days ago

pizzi-cato commented 6 days ago

Als Anwender kann ich mit der allgemeinen Error Page nichts anfangen.

Image

Es genügt, wenn ich sehe, dass etwas schief gelaufen ist und das die Applikation im Moment nicht korrekt funktioniert.

Anforderungen

Akzeptanzkriterien

nevio18324 commented 1 day ago

Stand 17.9

Die Funktionalität ist da jedoch mit 2 Problemen

  1. Bei einem localhost:8080// mapping fängt dies der Errorhandler zwar ab aber alle imports die durch einen Relativen Pfad importiert sind funktionieren nicht, dass passiert nur bei einem // mapping bei einem /xxx/ funktioniert es einwandfrei.
  2. Stand jetzt wird mit redirect:error auf die error page weitergeleitet was dazu führt das man keine Attribute dem Model hinzufügen kann

Für Problem 1 habe wir noch keine Ursache oder Lösung gefunden. Problem 2 wäre lösbar mit einer pathvariable.

nevio18324 commented 1 day ago

Stand 17.9

Ich konnte das 1. Problem noch lösen es lag daran wenn man ein localhost:8080// mapping sucht wirft Springboot kein Fehler aber bei einem localhost:8080/xxx/ macht es dies, weswegen das eine vom ExceptionController abgefangen wird und das andere nicht, jedoch kam das error.html trozdem da Springboot in dieser Situation standartmässig auf /error forwarded ich konnte dies nun lösen in dem ich im application.properties den Error path auf redirect:/error geändert habe.