core icon indicating copy to clipboard operation
core copied to clipboard

No Connection behind proxy

Open chackl opened this issue 12 years ago • 10 comments

Since owncloud 6.x there couldn´t be connect to internet through proxy. Owncloud ignores the setting in config.php

Owncloud 5.x works fine.

chackl avatar Jan 23 '14 10:01 chackl

@chackl Thanks a lot for reporting issues back to us!

We need some more information to properly support you with your issue!

Can I ask you to follow our guidelines for submitting bugs as described here: https://github.com/owncloud/core/blob/master/CONTRIBUTING.md

Thanks a lot!

DeepDiver1975 avatar Jan 23 '14 12:01 DeepDiver1975

I think i found a solution because i've got the same. In /lib/private/util.php there is a function called isInternetConnectionWorking(). Probably the programers forgot to put in the proxy check there, so i put it in manually according to this Thread from OC-Forum: https://forum.owncloud.org/viewtopic.php?f=26&t=18623

$proxy = OC_Config::getValue('proxy', '');
if($proxy <> '') {
list($proxy_host, $proxy_port) = explode(':',$proxy);
$connected = @fsockopen($proxy_host, $proxy_port, $errno, $errstr, 5);
if ($connected) {
fclose($connected);
return true;
}
\OC_Log::write('core', 'Couldn\'t connect to proxy server', \OC_log::WARN);
return false;
}

BTW: I'm new to GitHub... So i want to excuse myself for the style of write and format

LassMiRanDa avatar Jan 24 '14 11:01 LassMiRanDa

This is fixed in master and will be released with the next version. Thanks for the report

karlitschek avatar Jan 24 '14 19:01 karlitschek

@karlitschek Seems this isn't fixed in 6.0.2. Can it be back ported to 6.0.3? I see the fix in Master but not in the 6.0.2 branch...

Have a client who needs this in oC6.

ser72 avatar Apr 10 '14 12:04 ser72

@DeepDiver1975 What do you think?

karlitschek avatar Apr 10 '14 13:04 karlitschek

Let me see if I find the related changes

DeepDiver1975 avatar Apr 10 '14 13:04 DeepDiver1975

here we go: https://github.com/owncloud/core/pull/6676/files

DeepDiver1975 avatar Apr 10 '14 13:04 DeepDiver1975

I'll backport this fix

DeepDiver1975 avatar Apr 10 '14 13:04 DeepDiver1975

@DeepDiver1975 Thanks. Pls let me know the pull request for the back port when it is approved so I can get a patch to the customer.

ser72 avatar Apr 10 '14 13:04 ser72

PR: https://github.com/owncloud/core/pull/8148

DeepDiver1975 avatar Apr 10 '14 13:04 DeepDiver1975