-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Acabado con issure #27
Ademas encontrado que si usuario va a la ruta
/export-questionssin poner?numberQuestions=[number], en este caso el servidor deja funcionar.
He areglado esta cosa con implemetacion dedownload-error.ejspara mandar una pantalla informativa a usuari como el puede descargar fichero con preguntas :
A normal user using a web browser should not be able to perform a GET request to /export-questions.
That said, at least we provide a clear and user-friendly error message. However, the user may not understand why they cannot access this endpoint. Additionally, only we, as developers, are aware of the existence of /export-questions.
With this in mind, we could consider the following options:
-
Set Default Values:
If a user performs a GET request to/export-questionswithout a query string, we could set default values fornumberQuestions. This way, the user would experience some "magic" functionality even if they don’t understand where the behavior originates. -
Optimal Approach:
If nonumberQuestionsparameter is provided to the endpoint, we could useres.redirectto send the user to/template-form.
Acceptance Criteria
- If a user navigates directly to
/export-questions, they should be redirected to/template-form. - If a user navigates to
/template-form, they should be able to download a file compatible with either the Kahoot or Blooket applications.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
