@szhorvat when last did you do an upgrade in the command line ?
@tshenry could it be because of the PostgreSQL bug that was found ?
@szhorvat when last did you do an upgrade in the command line ?
@tshenry could it be because of the PostgreSQL bug that was found ?
We are using Discourseâs hosting, so I donât / canât do upgrades myself. I think itâs always automatically updated to the latest beta version.
This should be fixed in:
The repro steps are rather simple when you figure out whatâs going on :
As an admin, change the min_first_post_length
to something larger than 25
As a regular user, create a topic and delete it
Youâd expect the topic to be closed and edited to say (topic deleted by author)
, but it will only get closed
Whatâs happening here is the (topic deleted by author)
string is shorter than min_first_post_length
and when the system edits the topic, the post length validations will not allow the edit to go through but the topic will be closed because itâs done separately.
My fix above bypasses all validations for the revision that the system makes when a user deletes their posts.
That is an impressive bit of bug-hunting.
It definitely became a lot easier to track down thanks to everyoneâs efforts here! I imagine itâd have taken me 2-3 times as much time if it were not for the awesome detective work done here
This topic was automatically closed after 10 days. New replies are no longer allowed.