Actually, when it comes to joint ventures and the flight is operated by another company, the airline will pass the buck to the other company.
For the rest, it depends. Do all the segments have the same reservation number or not? Where did the glitch occur? For example, was it a European or Canadian connecting flight? That will affect the legal aspects.