A bug was reported where entering a large value for certain site settings in the admin dashboard causes a 500 error upon reload. rcfox demonstrated this by setting embed_post_limit to an extremely large number.
codinghoror suggested adding default integer validation for site settings. However, cpradio pointed out that even entering reasonable values could potentially cause issues.
Discussion around the maximum possible integer value ensued, with Mittineague and codinghorror debating the limits of Postgre Int and Ruby’s handling of large integers.
elberet identified the exact line of code causing the issue and codinghorror assigned the task to techAPJ, who has since added number validation in a pull request.
Entering a large value for some values in the admin settings can cause the settings dashboard to 500 upon reload. As an example, setting embed_post_limit to 999999999999999999999999999999999999999999999999999999999 will be successful, but breaks the settings page.
I was able to set it back to a non-broken value from the Rails repl, but I suspect most people won’t know how to do that.