Import a project via SSH is not working over a proxy.
How to reproduce:
1-) Configure BC to connect via a proxy (HTTP or https):
./standalone.sh -c standalone-full.xml --debug -Dorg.uberfire.nio.git.proxy.ssh.over.http=true -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8888
./standalone.sh -c standalone-full.xml --debug -Dorg.uberfire.nio.git.proxy.ssh.over.https=true -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=8888
2-) Try to import a project via ssh, i.e. git@bitbucket.org:eignatow/kiedora.git
Expected results: the project is imported (works without proxy)
Error on BC: https://gist.github.com/ederign/174153c9619182d959580c1be0baa656
3-) Error on Proxy Log:
CONNECT Oct 12 18:55:33 [21]: Connect (file descriptor 10): 172.17.0.1 [172.17.0.1]
CONNECT Oct 12 18:55:33 [21]: Request (file descriptor 10): CONNECT bitbucket.org:22 HTTP/1.0
INFO Oct 12 18:55:33 [21]: Refused CONNECT method on port 22
INFO Oct 12 18:55:33 [21]: no entity
How to reproduce:
1. Setup local proxy with https://github.com/Travix-International/docker-tinyproxy, run it with docker compose.
Access the pod (i.e. docker exec -it e1b8b95e8aa8ca2170181bd09c952dd2d6ce28a02f15689d03ae77a3781689f4 /bin/sh). Remember to change the pod.
Check the log: tail -f /var/log/tinyproxy/tinyproxy.log
2. Connect BC with the proxy via startup parameters
3. Try to import the project