[
https://issues.apache.org/jira/browse/CALCITE-7445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18066885#comment-18066885
]
Mihai Budiu commented on CALCITE-7445:
--------------------------------------
Since your tool has created a reproduction, could you also paste it here to
make it easier for whoever fixes the bug?
> RuntimeException for unhandled protobuf Severity in AvaticaSeverity.fromProto
> -----------------------------------------------------------------------------
>
> Key: CALCITE-7445
> URL: https://issues.apache.org/jira/browse/CALCITE-7445
> Project: Calcite
> Issue Type: Bug
> Components: avatica
> Reporter: Vishal Satish
> Priority: Minor
>
> AvaticaSeverity.fromProto() throws RuntimeException for unknown protobuf
> severity levels:
> throw new RuntimeException("Unhandled protobuf Severity level: " + proto).
> This crashes the server when receiving malformed protobuf messages with
> unexpected severity values, instead of gracefully handling the error.
> Fix: Return AvaticaSeverity.UNKNOWN or handle unknown protobuf values
> gracefully.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)