Any person or persons claiming title under a patent of tideland, issued by the State of California, may bring suit against the State, or against the State with others, in accordance with law in any court of competent jurisdiction of the State, to quiet title or otherwise determine the validity of such patent or establish boundaries of the land granted thereby or both, and may prosecute the action to final judgment. Service of summons on the State in any such suit shall be made in the manner provided in Section 6462 of this code. If judgment is given against the State in any such action or proceeding, no costs shall be recovered from the State thereunder.