Bug ID 933760
Summary The CredentialManager does not return saved password from /root/.zypp/credentials.cat file
Classification openSUSE
Product openSUSE Distribution
Version 13.2
Hardware Other
OS Other
Status NEW
Severity Major
Priority P5 - None
Component libzypp
Assignee zypp-maintainers@forge.provo.novell.com
Reporter lslezak@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

When adding a FTP repository with a password in the URL the password is saved
to /root/.zypp/credentials.cat file.

However, when editing the URL in YaST password is not found:

[zypp] IniParser.cc(parse):84 Start parsing /root/.zypp/credentials.cat[g___]
[zypp] IniParser.cc(parse):138 Done parsing /root/.zypp/credentials.cat[_eF_]
[Progress++] ProgressData.cc(report):88 {#21|/root/.zypp/credentials.cat}END
[zypp++] CredentialManager.cc(init_userCredentials):168 Got 1 user records.
[zypp++] CredentialManager.cc(getCred):222 No credentials for
'ftp://foo@127.0.0.1/13.2'

But the password is saved in the file:

# cat /root/.zypp/credentials.cat
[ftp://127.0.0.1/13.2]
username = foo
password = bar

It seems that the credential manager compares the URLs wrongly,
"ftp://foo@127.0.0.1/13.2" does not match "ftp://127.0.0.1/13.2" in the
credentials file and thus the credentials are not found.


You are receiving this mail because: