On the trial of the action, the court shall determine the rights of all the parties thereto.
Ca. Rev. and Tax. Code § 3963