Edit comment with an expired JWT doesn't throw an error #2006

Closed
opened 2023-01-23 15:00:28 +00:00 by jbd7 · 1 comment

Description

Issue: Editing a comment with an expired JWT doesn't throw an error

Steps to reproduce:

  • Log in self hosted Vikunja instance
  • Open a task wit comments, e.g. https://vikunja.tld/tasks/125
  • Leave it open for a long time and do something else
  • Go back to that opened page
  • Click on the "Edit" link below a comment
  • Edit comment and click "Save"

What happens:

  • the web page shows the edited comment, but that comment is actually not saved in the DB
  • no error is snown

What is expected:

  • Clicking on save throw a "error 401, invalid or expired jwt" error, just like what happens when trying to add a new comment to a task with an expired jwt.
  • the edited comment is still visible to the user, so that they can copy it and paste it after logging in again into Vikunja

Notes:

  • I didn't try on the Vikunja demo website as I don't control the JWT expiry.

Vikunja Frontend Version

0.19.1

Vikunja API Version

v0.19.2

Browser and version

Chrome Version 108.0.5359.125 (Official Build) (64-bit)

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

No response

### Description Issue: Editing a comment with an expired JWT doesn't throw an error Steps to reproduce: - Log in self hosted Vikunja instance - Open a task wit comments, e.g. https://vikunja.tld/tasks/125 - Leave it open for a long time and do something else - Go back to that opened page - Click on the "Edit" link below a comment - Edit comment and click "Save" What happens: - the web page shows the edited comment, but that comment is actually not saved in the DB - no error is snown What is expected: - Clicking on save throw a "error 401, invalid or expired jwt" error, just like what happens when trying to add a new comment to a task with an expired jwt. - the edited comment is still visible to the user, so that they can copy it and paste it after logging in again into Vikunja Notes: - I didn't try on the Vikunja demo website as I don't control the JWT expiry. ### Vikunja Frontend Version 0.19.1 ### Vikunja API Version v0.19.2 ### Browser and version Chrome Version 108.0.5359.125 (Official Build) (64-bit) ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots _No response_
jbd7 added the
kind/bug
label 2023-01-23 15:00:28 +00:00
Owner

Should be fixed with 4576da0dd3 - please check with the next unstable build or on try.

Should be fixed with https://kolaente.dev/vikunja/frontend/commit/4576da0dd394ee68801b1dc424c9550896d63737 - please check with the next unstable build or on try.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#2006
No description provided.