I once flew BA from DXB to JFK via LHR. Got off my first flight at LHR, had to go through the whole rigmarole of re-clearing transit security only to end up at the same gate and boarding the same plane I had arrived on! And I was in the same seat on both flights.