| Summary: | URPMI does not follow --proxy-user=ask parameter | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Luzemário Dantas <luzemario> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | Normal | CC: | thierry.vignaud |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | https://forums.mageia.org/en/viewtopic.php?f=25&t=4780 | ||
| Whiteboard: | MAGEIA1TOO, MAGEIA2TOO | ||
| Source RPM: | urpmi-6.48.3-2.mga2.noarch | CVE: | |
| Status comment: | |||
|
Description
Luzemário Dantas
2013-04-25 20:54:59 CEST
Luzemário Dantas
2013-04-25 20:56:02 CEST
Whiteboard:
(none) =>
MAGEIA1TOO, MAGEIA2TOO urpmi will only ask user/password if user is not set in config CC:
(none) =>
thierry.vignaud (In reply to Thierry Vignaud from comment #1) > urpmi will only ask user/password if user is not set in config Ignoring a command line parameter without advice makes no sense to me... If a user specify a additional parameter in command line, this parameter must take precedence to previous settings. The user explicitly says what he/she want. This behavior is not user friendly, and maybe not standard... (In reply to Thierry Vignaud from comment #1) > urpmi will only ask user/password if user is not set in config Update: urpmi DO NOT ask for user/password, despite config settings. Conditions tested: urpmi xfce --curl --proxy-user-ask --proxy-ntlm //(NTLM needed here) prxoy environment variables unset (cleared) - Downloader do not download nor timeouts. Waiting forever; prxoy environment variables set - Downloader gets a HTTP 407 drakproxy set - Downloader gets a HTTP 407 drakproxy unset (cleared) - Downloader do not download nor timeouts. Waiting forever; *** Bug 10003 has been marked as a duplicate of this bug. *** This bug was resolved with urpmi version included in original Mageia 3 release. Thierry, feel free to reopen it if you want, i.e. if you plan to make a backport or another adjust. Status:
NEW =>
RESOLVED There really was no change regarding this. Maybe this was a transient issue in your network? No, it won't... I have two machines side by side in same network segment... The machine running mga3 can traverse proxy. Here we need NTLM, so I added 'curl-options: --proxy-ntlm' in urpmi.cfg and all went fine. Using the same setup on Mga2 makes urpmi 'not see' the --proxy-user=ask parameter. I don't know if it was some obscure misconfig in my Mga2 installation. I simply filled in proxy config in drakrpm-edit-media in both machines then added curl option in urpmi.cfg to both. Mga3 works and Mga2 won't... Adding 'proxy_user_ask' in urpmi.cfg of both setups brings the following: - mga3 machine asks for password every time, in both urpmi and gurpmi, and all operations succeded, for both graphical and text updates; - mga2 machine asks for password every time, but when using gurpmi curl gets a HTTP 407 from proxy. Text mode urpmi asks for user/password, parse urpmi.cfg and send this all to curl, and curl succeded. The man pages of urpmi tools do not always list all switches accepted. For example, urpmi.addmedia accepts --debug switch, but it is not listed in urpmi.addmedia man page, and so on. There is a --debug for gurpmi also? (In reply to Luzemário Dantas from comment #7) > > Adding 'proxy_user_ask' in urpmi.cfg of both setups brings the following: > Oops.. I mean proxy.cfg... ;) Some funny thing: drakrpm-edit-media issues twice proxy settings for curl... better twice than missing... :) '/usr/bin/curl' '-q' '-x' 'proxy:3128' '-x' 'proxy:3128' '-U' 'myuser:mypass' '-H' 'Pragma:' '-s' '--location-trusted' '-R' '-f' '--disable-epsv' '--connect-timeout' '60' '--anyauth' '--proxy-ntlm' '--stderr' '-' '-O' 'http://mageia.fis.unb.br/distrib/3/x86_64/media/core/release/media_info/MD5SUM' The '-x' parameter appear two times in curl command line. I in turn filled/removed drakproxy settings but had no effect on this. |