Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPanic when supplying malformed URL for -external.web-path #1229
Comments
This comment has been minimized.
This comment has been minimized.
|
Mh, could you provide the exact input and maybe the panic stack trace. I'm not quite sure where we would be throwing a panic. |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
|
Ok, so the problem is that github.com/julienschmidt/httprouter panics when an invalid path is provided, and that So unless we want to swap out the underlying HTTP library, we'll have to sanity-check the path / external URL by ourselves somehow. |
brian-brazil
added
the
bug
label
Dec 16, 2015
fabxc
closed this
in
#1340
Jan 27, 2016
grobie
referenced this issue
Sep 21, 2017
Merged
cmd/prometheus: remove govalidator for url validation #3199
pgier
added a commit
to pgier/prometheus
that referenced
this issue
Oct 4, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
bluecmd commentedNov 19, 2015
When I tried to use -external.web-path in 0.16.1 I got the following panic:
This turns out to be because I erroneously supplied extra quotes, but as @fabxc says it probably shouldn't panic but just print an error message.