Replying to a deleted topic returns a cryptic message


(Sam Saffron) #1

One repro is (as admin)

  1. Go to PM
  2. In another window delete PM
  3. Reply to PM

You will get a weird 500 error as opposed to a message telling you the PM was deleted.

This may also be the case for standard topics


(Jeff Atwood) #2

@neil can you add this to your list, 500 is not good in this scenario.

(there is a related badness when you reply to a closed topic but it is not a 500)


(mountain) #3

Just happened to me. 500 server error in replying to a topic I didn’t know was deleted. This has happened before every time this scenario happens.

Only idea I can think of is to flash a warning when it is deleted and disable the reply button (which then prompts a user to decide to cancel the post).


(Johan Jatko) #4

Just happened to me as well.

Is it possible to maybe push an “topic moved/deleted” message in realtime to notify the user when he is writing?


(mountain) #5

Especially when he’s typing a manifesto and oops, all gone. Woe. :anger:


(Jeff Atwood) #6

This also happens for closed topics. It’s quite bad, @techapj you should add this to your list.


(James Kiesel) #7

I can grab this over the next couple days if it’s not imminently fixed.


(James Kiesel) #8

https://github.com/discourse/discourse/pull/3202


(Jeff Atwood) #9

Did we ever merge in this PR? I would like this addressed. Both for a closed topic and a deleted topic…


(Sam Saffron) #10

No, it needs a bit more work


(Jeff Atwood) #11

Perhaps you can help @techapj


(Arpit Jalan) #12

Fixed via

https://github.com/discourse/discourse/pull/3277


(Sam Saffron) #13