Dekrate opened a new pull request, #4439:
URL: https://github.com/apache/cassandra/pull/4439

   Restrict BytesType compatibility to scalar types only
   
   BytesType.isValueCompatibleWith() previously accepted all types,
   including frozen collections and UDTs. This was incorrect because
   converting collections or UDTs to raw bytes is nonsensical - it
   allows reading raw serialized bytes which have no meaningful
   interpretation.
   
   This patch restricts BytesType to only accept simple scalar types
   by checking !isCollection() && !isUDT() in isValueCompatibleWithInternal().
   
   @driftx <- it was your task, I was happy to help!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to