issue #23894: validate inputs