Skip to content

error is displayed on firefox when changing thread lock date #11535

@max1dyer

Description

@max1dyer

Describe the bug
When changing the thread lock date on an existing forum thread an error pops up that says "Something went wrong when adding new thread. Please refresh the page.". The page automatically reloads after a few seconds and the update is saved. This error also occurs when editing a thread with a lock date, even if you do not change the lock date or any other fields. This error is likely to do with the websocket reconnect timing on firefox that makes this error appear to the user where it doesn't on Chrome or Edge.

Expected behavior
No error should pop-up since the thread is changed appropriately.

To Reproduce
Steps to reproduce the behavior:

  1. Open Submitty on firefox and log in as instructor
  2. Edit a thread that has a non-null Lock Thread Date
  3. Hit Update Post
  4. See error

Configuration

  • OS: Windows
  • Browser: Firefox

Screenshots

thread.lock.date.error.mp4

Additional context
This is not connected to setting the Thread Lock Date to null. I tested this on firefox, chrome, and edge. I found the error function in forum.js socketNewOrEditThreadHandler.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions