Comment 5 for bug 770464

Revision history for this message
Vincent Ladeuil (vila) wrote : Re: Need realm parameter in authentication config file

> But why do I receive the same information about host during both authentication?

That is a bug. You should be queried for the proxy credentials with a prompt for the proxy host and authentication.conf should be queried for this host first.

Then you should be queried with a prompt for the remote host (and authentication.conf should be queried for this second host too). Except that this last part is going through bzr-svn which talks to svn directly without involving authentication.conf which is why svn needs to be involved so the credentials are saved in svn credential cache.

> Subversion is only on remote server.

That's where you need to authenticate then.

> And I don't understand how proxy and http authentication are related to subversion.

You access the subversion repository via http, so you need to authenticate for the remote server and to get there you need to authenticate for the proxy.

> Bzr has no information about destination repository during auth phase.

It knows the url and it knows the proxy. You're asked for the remote server credentials because access there is required for the operation you're asking.

> Settings for wpad:8080 are ignored

That's weird, are you sure you use:
[http_proxy]
scheme=http
host=wpad
port=8080
user=KDanilov
password=xxx

not host=wpad:8080 ?

Using -Dauth in addition to -Dhttp should help understand what is going on here...

(and note that I'm not discussing adding realm in auth.conf because your use case *should* work without it).

Also, the log you pasted says:

  Proxy HTTPS subversion.mycompany.net, Realm: 'PRV-ISA-01.mycompany.ru' username: KDanilov
  Proxy HTTPS <email address hidden>, Realm: 'PRV-ISA-01.mycompany.ru' password:
  HTTPS subversion.mycompany.net, Realm: 'Main Subversion repository' username: danilov
  HTTPS <email address hidden>, Realm: 'Main Subversion repository' password:

but the associated .bzr.log says:

  0.294 > CONNECT subversion.mycompany.net:443
  0.295 > Host: wpad:8080

i.e. the prompt should really be:

Proxy HTTPS wpad:8080, Realm: 'PRV-ISA-01.mycompany.ru' username: KDanilov

Also, you said: "with and without http_proxy params in bazaar.conf" but http_proxy should be specified as an environment variable, we never look for it into bazaar.conf (may be we should), so it's unclear to me what you're doing exactly there :-/