Attachment shows "Preview Unavailable" in case it failed to upload due to timeout

XMLWordPrintable

    • 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

      1. Open a work item in a browser and leave it for ~ 1 hour. Do not refresh a page.
      2. Come back to the page after 1 hour and try modifying description - add an attachment and click "Save".
      3. Saving will throw error "We couldn’t update the Description value.You can try again in a few minutes, or refresh the page.".
      1. 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 

        1. Screenshot 2025-08-13 at 1.44.21 pm.png
          1.63 MB
          Andrey Lazarev
        2. Screenshot 2025-08-13 at 3.38.37 pm.png
          1.51 MB
          Andrey Lazarev

            Assignee:
            Unassigned
            Reporter:
            Andrey Lazarev
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: