Readplace

The Day A Bug Was Fixed Only Because The CEO Called In

fagnerbrack.com 4 min read
View original
Summary (TL;DR)
A bug in a financial website caused duplicate credit card deposits when users lost internet signal. The development team ignored the issue because it was rare and cheap to reverse. The CEO encountered the bug while depositing money in a taxi, which forced the team to investigate. They discovered that the browser retried POST requests if the connection closed before receiving a response, as allowed by HTTP/1.1 spec. The team fixed it with a server-side middleware that checks for duplicate request IDs. The behavior still exists in some browsers today. The story highlights how minor bugs get ignored until they affect important people.