A bug was reported by jomaxro where a user was able to post content exceeding the maximum length restriction. The post was submitted through the approval queue, and the system did not prevent it. cpradio suggests this is similar to another issue where the Post Approval Queue isnât validating posts before permitting them. eviltrout explains that the queueâs design assumed staff approval would be required, making validation less important. However, eviltrout has since added validation for post length. riking proposes a solution to call PostCreator with the âin transactionâ flag set, but eviltrout notes this would result in double the work and is not ideal.
Filing this as a bug, feel free to change to support if not the case.
Over at Stonehearth we had a user post a log directly as text in the editor, and was able to submit it. The post exceeds the maximum length allowed significantly, as I tried to edit the post to surround the log in a code block but was not allowed. The post in question was originally here and moved to here where I converted it to a Pastebin link.
The error received stated:
Body is limited to 32000 characters; you entered 2459079.
If it helps troubleshoot, this post likely went through the approval queue as the user is new and we currently have the first 2 posts from each user go into the queue.
In the sense, that the Post Approval Queue isnât validating the post before permitting it. Looks like another change in that area would need to be made so it abides by content length too.
Itâs honestly a little challenging to validate every little thing, due to the way the queue works. The (perhaps wrong) assumption I made when designing it was that the staff member had to approve it anyway, so the validation was less important.
Having said that, I did manage to get a bunch more validation in place, including the length: