Bug - Not A Bug SVN doesn't use proxy settings

BleedingFingers

New member
Sorry if this has been reported already - I searched through the forums and could only find a reference to other people who have the same problem, but doesn't appear to have been logged as a bug. (http://kolmafia.us/showthread.php?12488-Mafia-SVN-for-Scripts&p=92056&viewfull=1#post92056)

When trying to download scripts via SVN at work, using a proxy server, I get an Authentication Failed error, when at home, with no proxy, I can download scripts using SVN without a problem.

> svn checkout https://svn.code.sf.net/p/winterbay-mafia/wham/code/

svn: E170001: HTTP proxy authorization failed
Unable to connect with repository at /p/winterbay-mafia/wham/code
Done.

Regards
BleedingFingers
 

roippi

Developer
That issue was later addressed in that thread. It sounds like your proxy is not properly configured.
 

BleedingFingers

New member
And yet I can connect to KoL through that same proxy - and can download the SVN files manually if I type in the URL into either Chrome or Internet Explorer... Seems like this is something specific to SVN within mafia (my TortoiseSVN can connect to external repos through the same proxy)...

Tried searching through the thread (there are 22 pages)... Can you show me the post where that issue was addressed?
 

roippi

Developer
What settings do you have on the proxy settings tab in the login frame? (I don't need your user/pass, just if the fields are blank or not)
 

BleedingFingers

New member
Logging into KoL I don't need to specify a username or password, just the proxy IP address as well as the port (IP would be useless to you as it's internal, but the port is 8080 if that makes any difference).

I've tried with both empty username and password and my Active Directory username and password, both allow logging into KoL, but fail the SVN update. If I remove the proxy IP or uncheck the "KoLmafia needs to connect through a proxy server" checkbox, then I'm unable to log into KoL.

Edit: I've tried the above combinations for just the HTTP proxy settings as well as the HTTPS settings.
 

roippi

Developer
I don't really know what to tell you. Your proxy is refusing the credentials that SVN is providing it. SVN gets the credentials directly from Java system properties, which mafia sets at login directly from those fields.

The discussion where svn + proxy was having issues and then was fixed was here. As you can see it is working for livercat; the only difference I can see is that he's running on a different port than you.
 

Darzil

Developer
I've tried with both empty username and password and my Active Directory username and password, both allow logging into KoL, but fail the SVN update. If I remove the proxy IP or uncheck the "KoLmafia needs to connect through a proxy server" checkbox, then I'm unable to log into KoL.

You don't mention it, but try DomainName\username as the username, this is the full username, which systems often don't need, but sometimes do.
 

BleedingFingers

New member
I have now tried with:

* no username or pass specified
* only pass specified
* only username specified
* only username with domain specified
* username & pass specified
* username & domain & pass specified...

All combinations can log into KoL, but none can connect to SVN repos...
 

BleedingFingers

New member
No, because if I use the SVN url in Chrome or IE, then I can browse the repo and download the file(s) manually, so it's definitely not blocked. If I get the time I'll get the source code and try and debug what is going on...
 

roippi

Developer
No, because if I use the SVN url in Chrome or IE, then I can browse the repo and download the file(s) manually, so it's definitely not blocked. If I get the time I'll get the source code and try and debug what is going on...

That is meaningless since the web interface is served over http and has nothing to do with svn.

(I know you were replying to something about sourceforge being blocked, just pointing out that being able to do something with a web browser is not a test for if svn is working)
 
Last edited:

BleedingFingers

New member
SOLVED!

There is a separate file that contains the config for SVN. It doesn't automagically use the proxy settings from kolmafia.
On my Windows 7 pc, the config file is C:\User\<name>\AppData\Roaming\Subversion\servers.

I edited the [global] section and put in:
http-proxy-host = <the ip address of my proxy server>
http-proxy-port = 8080
http-proxy-username = <domain>\<username>
http-proxy-password = <password>

Now it can connect to repo and update the script files...
 

roippi

Developer
Well, svnkit -does- automagically use the proxy settings from kolmafia, but it also uses settings from the svn configuration area (that file), and the latter overrides the former.

Either you had some settings in the config file before, or your proxy needs some specific setup that the automatic config doesn't handle. Either way, glad you got it working.
 
Top