Github user spmallette commented on the issue:
https://github.com/apache/tinkerpop/pull/533
The driver shouldn't crash by sending a byte array in the results, because
it is only the SASL authentication process that was expecting `byte[]`. When it
would find a `String` that's when we'd get the failure as it tried to cast a
`byte[]` from that. A `byte[]` as a normal result from a script evaluation
should not have any problems. Please let me know if I'm missing something.
`serializeResultToString` is used by the Gremlin Console. It presents a
cheap way for the console to interact with the server by making the console
more of a dummy terminal that just prints the results from the server without
having to get a giant body of fully serialized results back. It also allows for
you to work with classes that aren't necessarily serializable as they will
simply be toString'd on the way back to the console.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---