The Fedora instance ran into a situation where the code managed to leave a truncated upload without generating an error. Their case is unusual for a few reasons (multiple hubs behind reverse proxy, extremely high load from ai bots), but I think we can make the code somewhat better.
This PR makes a few adjustments to the overwrite logic and adds a number of tests.
The Fedora instance ran into a situation where the code managed to leave a truncated upload without generating an error. Their case is unusual for a few reasons (multiple hubs behind reverse proxy, extremely high load from ai bots), but I think we can make the code somewhat better.
This PR makes a few adjustments to the overwrite logic and adds a number of tests.
Fixes https://pagure.io/koji/issue/4371