Whoever did not latch the door properly after doing maintenance checks. Which is either a mechanic at the airline itself or someone at a maintenance hub that is contracted by the airline. Not the job of the manufacturer whatsoever.
The point s_dev is trying to make is that the designer can (and should) design things so that the mechanic "doesn't have to think". Seems like Airbus has evolved their design accordingly.