stargate / data-api

JSON document API for Apache Cassandra (formerly known as JSON API)
https://stargate.io
Apache License 2.0
13 stars 16 forks source link

Fixes #1210: pre-validate token before passing to Java CQL driver #1211

Closed tatu-at-datastax closed 3 months ago

tatu-at-datastax commented 3 months ago

What this PR does:

Adds explicit validation of cached token, to throw better exception instead of accidental IllegalArgumentException from CQL Driver (resulting in 500/unmapped response)

Which issue(s) this PR fixes: Fixes #1210

Checklist