A Case of File Handling
by Remy Porter
in Representative Line
on 2017-12-07
Tim W caught a ticket. The PHP system he inherited allowed users to upload files, and then would process those files. It worked… most of the time. It seemed like a Heisenbug. Logging was non-existent, documentation was a fantasy, and to be honest, no one was exactly 100% certain what the processing feature was supposed to do- but whatever it was doing now was the right thing, except the times that it wasn’t right.
Specifically, some files got processed. Some files didn’t. They all were supposed to.