On the trial of the action, the court shall determine the rights of all the parties thereto.
(Added by Stats. 1943, Ch. 897.)