We have a recurring problem on large posts throwing a 403 Forbidden on attempts to edit the post.
We’re currently running v2.0.0.beta3+20 in Docker.
The posts in question are large, they contain a couple of images, a little formatting, and a couple of images. The pages are generated strictly using the Discourse editor features. On testing, I find that the problem is related to the images embedded.
For example, I have a large post created by someone else where I was asked to edit text. Even adding a single space to the post and saving throws the Forbidden, even if I’m logged in as admin.
If I enter the editor, copy-paste the entire contents, abandon the edits, and then do a reply, I can paste the entire things, make my edits, and save.
So the “save,” itself, works… however, if I go in to edit that post, even adding a single space, attempting to save the edit will throw the Forbidden.
As an experiment, I just chopped up a post into pieces, and tested which pieces are editable - the pieces which weren’t editable, I chopped down smaller, until they were editable an not throwing errors.
I took a long post which had four images, and ended up with 4 smaller pieces… each of which had one image. If a post has two images, it’s uneditable.
The images were originally inserted with simple image pasting; the editor content looks like this:
All the posts - copied or edited - render the images just fine.
How can we troubleshoot this further or address the error?