-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Component/s: Work Item - Attachments
-
None
-
2
-
Severity 3 - Minor
Issue Summary
There is a JWT token timeout for media. In case a work item was inactive for 1 hour, attachment upload fails with error "Token verification failed: jwt expired"
When the page is refreshed, Attachment shows "Preview Unavailable" with error "The file with the given id does not exist in collection" in Browser DevTools:
Steps to Reproduce
- Open a work item in a browser and leave it for ~ 1 hour. Do not refresh a page.
- Come back to the page after 1 hour and try modifying description - add an attachment and click "Save".
- Saving will throw error "We couldn’t update the Description value.You can try again in a few minutes, or refresh the page.".
- Open the same work item in a new tab, click on Description to edit and observe.
Expected Results
In case JWT token expiration for media is intentional, it should ask to refresh page OR/AND do not show failed attachment,
Actual Results
Attachment fails to load due to JWT token timeout, but leaves "Preview Unavailable"
Workaround
- Hard refresh page, go to edit Description and remove attachment
- Re-upload the attachment