Posting a reply on a topic that's been deleted by the author results in a weird error
I was typing a reply to this post and when I wanted to post it, the topic had been deleted meaning I got an error message. I didn't think of copying the error fast enough but it's reproducible in the dev env (currently not available to do it myself). The error at first didn't make sense to me as it including HTML tags and I believe a 403 error, could be different 40x one, as well as some extra text.
Steps to reproduce
(I hope it'll work)
- Create a topic
- Type out a reply, but don't post
- Delete the topic
- Post the reply
Just tried it and gave me this error:
<html> <head> <title>403 Forbidden</title> </head> <body> <h1>403 Forbidden</h1> Access was denied to this resource.<br/><br/> Unauthorized: post_toplevel_comment failed permission check <link rel="stylesheet" type="text/css" href="https://localhost:4443/_debug_toolbar/static/toolbar/toolbar_button.css"> <div id="pDebug"> <div id="pDebugToolbarHandle"> <a title="Show Toolbar" id="pShowToolBarButton" href="https://localhost:4443/_debug_toolbar/313339373234323937393036303438" target="pDebugToolbar">«</a> </div> </div> </body> </html>
A lot of that is because of debugging being enabled but the first 3-4 lines is what you get on the regular site.