Commit 93e8525
authored
Separate address parsing logic for Core and Cloud connection URIs (#849)
## Usage and product changes
We fix an issue where attempting to parse `typedb-core://` connection
URIs would cause crashes
## Motivation
This issue made this feature unusable for TypeDB Core connection URIs
## Implementation
We separate the logic for parsing addresses for TypeDB Cloud - which
expects a username and password - from the address parsing logic for
TypeDB Core - which doesn't. Instead of attempting to extract data it
doesn't need from the `authority` component of the URI, which resulted
in an empty list of addresses, we simply take the entire `authority`
component as the address.1 parent 095ab3c commit 93e8525
1 file changed
Lines changed: 15 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
85 | | - | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
0 commit comments