We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binary starts and throws an error "invalid port \":XxXxX\" after host" if password in URI string contains # symbol.
"invalid port \":XxXxX\" after host"
#
$ export DATA_SOURCE_NAME=oracle://user:PaSs#wOrd@testora:1521/TEST1 $ echo $DATA_SOURCE_NAME oracle://user:PaSs#wOrd@testora:1521/TEST1 $ /usr/local/bin/oracledb_exporter-0.5.2 --default.metrics "/etc/oracledb_exporter/default-metrics.toml" --log.level debug --web.listen-address 0.0.0.0:9161 ts=2023-11-21T22:36:57.951Z caller=collector.go:327 level=debug launchingconnection:=***@testora:1521/TEST1 ts=2023-11-21T22:36:57.951Z caller=collector.go:333 level=debug setmaxidleconnectionsto=0 ts=2023-11-21T22:36:57.951Z caller=collector.go:335 level=debug setmaxopenconnectionsto=10 ts=2023-11-21T22:36:57.951Z caller=collector.go:337 level=debug successfullyconnectedto:=***@testora:1521/TEST1 ts=2023-11-21T22:36:57.951Z caller=collector.go:262 level=error errorpingingoracle:="parse \"oracle://user:PaSs\": invalid port \":PaSs\" after host"
Parse URI correctly: port=1521, password=PaSs#wOrd
1521
PaSs#wOrd
Fix it
Oracle Linux 8.8 5.4.17-2136.324.5.3.el7uek.x86_64 Version: 0.5.1, 0.5.2-rc
The text was updated successfully, but these errors were encountered:
Same problem ... i have problem with "#" in username as i'm connecting with a CDB User C## ...
Sorry, something went wrong.
The value is directly passed down to url.Parse (and treated as a URL).
Replacing "#" with its url encoded equivalent should fix the problem (i.e replace the # in your connection string with %23)
No branches or pull requests
I'm submitting a ...
What is the current behavior?
Binary starts and throws an error
"invalid port \":XxXxX\" after host"
if password in URI string contains#
symbol.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
Parse URI correctly: port=
1521
, password=PaSs#wOrd
What is the motivation / use case for changing the behavior?
Fix it
Please tell us about your environment:
Oracle Linux 8.8 5.4.17-2136.324.5.3.el7uek.x86_64
Version: 0.5.1, 0.5.2-rc
The text was updated successfully, but these errors were encountered: