[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
https://bugzilla.novell.com/show_bug.cgi?id=641328
https://bugzilla.novell.com/show_bug.cgi?id=641328#c2
--- Comment #2 from Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=641328
https://bugzilla.novell.com/show_bug.cgi?id=641328#c3
Christopher Loessl
https://bugzilla.novell.com/show_bug.cgi?id=641328
https://bugzilla.novell.com/show_bug.cgi?id=641328#c4
--- Comment #4 from Christopher Loessl
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
https://bugzilla.novell.com/show_bug.cgi?id=641328
https://bugzilla.novell.com/show_bug.cgi?id=641328#c5
Ján Kupec
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
https://bugzilla.novell.com/show_bug.cgi?id=641328
https://bugzilla.novell.com/show_bug.cgi?id=641328#c9
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=641328
https://bugzilla.novell.com/show_bug.cgi?id=641328#c10
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com