r2dbc-spi icon indicating copy to clipboard operation
r2dbc-spi copied to clipboard

Support hostname with _ in name

Open piotrwielgolaski-tomtom opened this issue 1 year ago • 1 comments

Bug Report

I spotted the same issue that was described here https://www.chrissearle.org/2022/02/22/r2dbc-postgresql-invalid-ipv6-address-when-dockerized/ When using docker host alias with _ host and port are incorrectly parsed.

Versions

  • Driver: 1.0.0
  • Database: not relevant
  • Java: 11
  • OS: macOS

Current Behavior

Host is incorrect parsed. Host contains port instead keeping port in port variable.

Stack trace
// your stack trace here

Table schema

Input Code
-- your SQL here;

Steps to reproduce

Input Code
// your code here;

Expected behavior/code

Possible Solution

Additional context

piotrwielgolaski-tomtom avatar May 02 '23 05:05 piotrwielgolaski-tomtom

It looks that this is underlying issue https://stackoverflow.com/questions/28568188/java-net-uri-get-host-with-underscores

piotrwielgolaski-tomtom avatar May 02 '23 06:05 piotrwielgolaski-tomtom