Yair Zaslavsky has posted comments on this change.

Change subject: core: remove commons httpclient from provider proxy
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.ovirt.org/#/c/33458/3/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/host/provider/foreman/ForemanHostProviderProxy.java:

Line 343: 
Line 344:         URL hostUrl = getUrl();
Line 345:         Connection connection = null;
Line 346:         try {
Line 347:             if (isSecured()) {
> a url should be provided.
What is provided is indeed URL.
If you're getting a URL in form of
http://xxxx
or https://yyyy

don't you want the connection to connect to:
http://xxxx:80
and https://yyyy:443 ?

This is what the logic does.
Line 348:                 if (hostUrl.getPort() == -1) {
Line 349:                     hostUrl =
Line 350:                             createURLWithDefaultPort(
Line 351:                                     hostUrl,


-- 
To view, visit http://gerrit.ovirt.org/33458
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I727d34c33f357b93560d4b5a1784b3733b7fa293
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alo...@redhat.com>
Gerrit-Reviewer: Moti Asayag <masa...@redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to