What happened:
We run our Nexus repository behind Nginx, which routes the https request to the Nexus HTTP server.
When n3dr downloads the repositories list, nexus returns download URLs that look like this http://example.com:443, and when n3dr tries to use this URL to download from instead of the proxy's https address (example: https:://example.com), we encounter a failed 400 request.
What you expected to happen:
If I have https enabled on N3DR and if the downloaded URL contains :443 and http, I would expect the protocol to default to https.
current
http://www.example.com:443/repository/foo/bar.xml
expected
https://www.example.com/repository/foo/bar.xml
How to reproduce it (as minimally and precisely as possible):
docker-compose might be the easiest route.
What happened: We run our Nexus repository behind Nginx, which routes the https request to the Nexus HTTP server.
When n3dr downloads the repositories list, nexus returns download URLs that look like this
http
://example.com:443
, and when n3dr tries to use this URL to download from instead of the proxy's https address (example:https
:://example.com), we encounter a failed 400 request.What you expected to happen: If I have https enabled on N3DR and if the downloaded URL contains :443 and http, I would expect the protocol to default to https.
current
expected
How to reproduce it (as minimally and precisely as possible): docker-compose might be the easiest route.
nginx.conf:
Anything else we need to know?:
working on a fix
Environment:
n3dr -v
):cat /etc/os-release
):uname -a
):