jbonofre opened a new issue, #1528:
URL: https://github.com/apache/arrow-java/issues/1528

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   `ArrowFlightSqlClientHandler#getStreams` compares endpoint location schemes 
case-sensitively, although URI schemes are case-insensitive ([RFC 3986, section 
3.1](https://www.rfc-editor.org/rfc/rfc3986#section-3.1)):
   
   - On an encrypted connection, a `GRPC+TLS://host:port` location is refused 
as unencrypted.
   - On a plaintext connection, a `GRPC+TLS://host:port` location is fetched 
over a new plaintext connection instead of TLS.
   - `ARROW-FLIGHT-REUSE-CONNECTION://?` is not recognized as the 
reuse-connection location.
   - With `followEndpointLocations=false` (#1526), an upper-case `GRPC`, 
`GRPC+TCP` or `GRPC+TLS` location on the connection's host and port is refused.
   
   A location without a scheme, such as `//host:443`, makes `getStreams` throw 
a `NullPointerException` at `endpointUri.getScheme().equals(...)`. The query 
fails even if the endpoint has another location that could be used, such as 
`arrow-flight-reuse-connection://?`. The `followEndpointLocations` 
documentation says that locations that cannot be used are skipped.
   
   Expected: schemes are compared case-insensitively, and a location without a 
scheme is skipped like other locations that cannot be used.
   


-- 
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]

Reply via email to