mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-04 05:53:13 +00:00
Add missing IsString() checks to parsing date, time, uuid and inet types by introducing validated_to_string_view function which checks whether the value is of string type and otherwise throws marshal_exception. Without this check, a malformed input to those types would result in nasty ServerError with RapidJSON assertion instead of marshal_exception with detail about the problem. Add new tests checking passing non-string values for those types. Fixes #10115