incidents of cargo doors opening in flight have occurred as a result of the latches not been fully engaged.
This was due to the doors not been correctly rigged. A failure of maintenance procedures, as opposed to design or equipment failure.
But if you've got a cargo door that can be incorrectly latched, or incorrectly "rigged" then that in itself is a design failure.