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.