[Bug 641328] New: zypper can't add ftp repositories with a user and password
https://bugzilla.novell.com/show_bug.cgi?id=641328 https://bugzilla.novell.com/show_bug.cgi?id=641328#c0 Summary: zypper can't add ftp repositories with a user and password Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: PC OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: cloessl@x-berg.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100714 SUSE/3.5.11-0.1.1 Firefox/3.5.11 When adding a repo with user:password the password won't be stored. You have to add the password by hand into the repo file (/etc/zypp/repos.d/). Reproducible: Always Steps to Reproduce: 1. # zypper lr No repositories defined. Use the 'zypper addrepo' command to add one or more repositories. 2. # zypper ar -C ftp://USER:PASSWORD@SERVER/extra-update ftp.example.com Adding repository 'ftp.example.com' [done] Repository 'ftp.example.com' successfully added Enabled: Yes Autorefresh: No URI: ftp://USER@ftp.example.com/extra-update 3. # zypper ref Retrieving repository 'ftp.example.com' metadata [\] Failed to download /repodata/repomd.xml from ftp://USER@ftp.example.com/extra-update Abort, retry, ignore? [a/r/i/?] (a): a Retrieving repository 'ftp.example.com' metadata [error] Repository 'ftp.example.com' is invalid. Can't provide /repodata/repomd.xml : Failed to download /repodata/repomd.xml from ftp://USER@ftp.example.com/extra-update Please check if the URIs defined for this repository are pointing to a valid repository. Skipping repository 'ftp.example.com' because of the above error. Could not refresh the repositories because of errors. 4. # grep baseurl /etc/zypp/repos.d/ftp.example.com.repo baseurl=ftp://USER@ftp.example.com/extra-update ~~~ Workaround / Fix 5. # sed -i 's#baseurl.*#baseurl=ftp://USER:PASSWORD@ftp.example.com/extra-update#' /etc/zypp/repos.d/ftp.example.com.repo 6. # zypper ref Retrieving repository 'ftp.example.com' metadata [done] Building repository 'ftp.example.com' cache [done] All repositories have been refreshed. Actual Results: You can't refresh your repo because the password is missing for the repo Expected Results: You can refresh your repo because the password is stored somewhere, for example in /etc/zypp/repos.d/ftp.example.com in the baseurl line -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=641328 https://bugzilla.novell.com/show_bug.cgi?id=641328#c1 Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |cloessl@x-berg.de --- Comment #1 from Duncan Mac-Vicar <dmacvicar@novell.com> 2010-09-24 08:54:26 UTC --- Is this reproducible in openSUSE 11.3? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=641328 https://bugzilla.novell.com/show_bug.cgi?id=641328#c2 --- Comment #2 from Michael Andres <ma@novell.com> 2010-09-24 11:05:44 CEST --- Please attach the zypper logfile /var/log/zypper.log (or an older /var/log/zypper.log-YYYYMMDD.bz2) that shows the reported behavior. You can execute 'grep main.cc /var/log/zypper.log' (or 'zgrep main.cc /var/log/zypper.log-YYYYMMDD.bz2') to see execution dates and commands the log contains. The workaround works, but it's intended that just the user name stays in the baseurl. The corresponding password should be stored in /etc/zypp/credentials.cat (or ~/.zypp/credentials.cat). The logfile showing 2. # zypper ar -C ftp://USER:PASSWORD@SERVER/extra-update ftp.example.com 3. # zypper ref should help to find out why it does not work. Maybe you can also check the credentials.cat and tell whether it contained the correct password. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=641328 https://bugzilla.novell.com/show_bug.cgi?id=641328#c3 Christopher Loessl <cloessl@x-berg.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|cloessl@x-berg.de | --- Comment #3 from Christopher Loessl <cloessl@x-berg.de> 2010-09-28 11:57:02 UTC --- Created an attachment (id=391891) --> (http://bugzilla.novell.com/attachment.cgi?id=391891) zypper.log -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=641328 https://bugzilla.novell.com/show_bug.cgi?id=641328#c4 --- Comment #4 from Christopher Loessl <cloessl@x-berg.de> 2010-09-28 11:58:59 UTC --- (In reply to comment #1)
Is this reproducible in openSUSE 11.3?
openSuse 11.3 zypper version: 1.4.5 And yes, bug exists there as well. (And there is no /etc/zypp/credentials.cat too) (In reply to comment #2)
Please attach the zypper logfile /var/log/zypper.log
see attachment
The workaround works, but it's intended that just the user name stays in the baseurl. The corresponding password should be stored in /etc/zypp/credentials.cat
Yeah of course a saved encrypted password is much better, but there is no credentials.cat file at all. Whether in /etc/zypp nor in ~/.zypp $ ls /etc/zypp/ repos.d services.d systemCheck vendors.d zypp.conf zypper.conf The vendors.d was created by me the other day.
2. # zypper ar -C ftp://USER:PASSWORD@SERVER/extra-update ftp.example.com 3. # zypper ref
electdev8:~ # zypper ar -C ftp://USER:PASSWORD@ftp.example.com/online-update ftp.example.com Adding repository 'ftp.example.com' [done] Repository 'ftp.example.com' successfully added Enabled: Yes Autorefresh: No URI: ftp://USER@ftp.example.com/online-update < Already here without password electdev8:~ # zypper ref Retrieving repository 'ftp.example.com' metadata [\] Failed to download /repodata/repomd.xml from ftp://USER@ftp.example.com/online-update Abort, retry, ignore? [a/r/i/?] (a): Retrieving repository 'ftp.example.com' metadata [error] Repository 'ftp.example.com' is invalid. Can't provide /repodata/repomd.xml : Failed to download /repodata/repomd.xml from ftp://USER@ftp.example.com/online-update Please check if the URIs defined for this repository are pointing to a valid repository. Skipping repository 'ftp.example.com' because of the above error. Could not refresh the repositories because of errors. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=641328 https://bugzilla.novell.com/show_bug.cgi?id=641328#c Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium AssignedTo|zypp-maintainers@forge.prov |jkupec@novell.com |o.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=641328 https://bugzilla.novell.com/show_bug.cgi?id=641328#c5 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zypp-maintainers@forge.prov | |o.novell.com --- Comment #5 from Ján Kupec <jkupec@novell.com> 2010-10-01 13:39:13 UTC --- The problem is the MediaAria2.cc backend does not use the CredentialManager to pass the credentials to the aria command at all. That results in not saving the password if supplied, and not asking for one if not supplied. The bug is still in 11.3. 11.4 does good (the Curl backend) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=641328 https://bugzilla.novell.com/show_bug.cgi?id=641328#c6 --- Comment #6 from Ján Kupec <jkupec@novell.com> 2010-10-01 13:48:55 UTC --- The workaround is also starting your zypper command with ZYPP_ARIA2C=0. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=641328 https://bugzilla.novell.com/show_bug.cgi?id=641328#c9 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from Ján Kupec <jkupec@novell.com> 2010-10-07 07:28:36 UTC --- I disabled aria2c for FTP, as there is no advantage over curl for FTP. We won't fix this for HTTP, since the new MultiCurl backend is now the default in 114 and it does not have this bug. Done in libzypp>8.5.0, and libzypp-7.9.5. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=641328 https://bugzilla.novell.com/show_bug.cgi?id=641328#c10 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:11.3:37206 --- Comment #10 from Swamp Workflow Management <swamp@suse.com> 2010-12-02 09:52:07 UTC --- Update released for: libsatsolver, libsatsolver-debugsource, libsatsolver-demo, libsatsolver-demo-debuginfo, libsatsolver-devel, libsatsolver-devel-debuginfo, libzypp, libzypp-bindings, libzypp-debuginfo, libzypp-debugsource, libzypp-devel, perl-satsolver, perl-satsolver-debuginfo, perl-zypp, python-satsolver, python-satsolver-debuginfo, python-zypp, ruby-satsolver, ruby-satsolver-debuginfo, ruby-zypp, satsolver-tools, satsolver-tools-debuginfo, yast2-qt-pkg, yast2-qt-pkg-debuginfo, yast2-qt-pkg-debugsource, zypper, zypper-debuginfo, zypper-debugsource Products: openSUSE 11.3 (debug, i586, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com