Summary: | kopete does not save passwords correctly if it contains symbols | ||
---|---|---|---|
Product: | [Unmaintained] kopete | Reporter: | shishir verma <shiverma> |
Component: | libkopete | Assignee: | Kopete Developers <kopete-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alex.danila.web, dorin.scutarasu, kalpik, lamarque, uwolfer |
Priority: | NOR | ||
Version: | 0.50.0 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Modify the Yahoo login URL to percent encode username and password |
Description
shishir verma
2008-06-29 13:28:17 UTC
Same here with Kopete from KDE 4. are you using kwallet or not? I am using kwallet now, but the save password feature might not necessarily need me to use kwallet. It works with kwallet, but I would like to believe that if kwallet is not desired, then the password should get saved properly. Or it should not be allowed to be saved if kwallet is not being used. *** Bug 224869 has been marked as a duplicate of this bug. *** *** Bug 233974 has been marked as a duplicate of this bug. *** Hi, the password and user name should be encoded before sending out. There's one function which needs to be modified like this: void LoginTask::sendAuthSixteenStage1(const QString& sn, const QString& seed) { const QString YahooTokenUrl = "https://login.yahoo.com/config/pwtoken_get?src=ymsgr&ts=&login=%1&passwd=%2&chal=%3"; kDebug(YAHOO_RAW_DEBUG) << "seed:" << seed; m_stage1Data.clear(); /* construct a URL from the seed and request tokens */ QString encodedPassword(QUrl::toPercentEncoding(client()->password())); QString encodedUser(QUrl::toPercentEncoding(sn)); QString fullUrl = YahooTokenUrl.arg(encodedUser, encodedPassword, seed); KUrl tokenUrl(fullUrl); KIO::Job* job = KIO::get(tokenUrl, KIO::Reload, KIO::HideProgressInfo); connect(job, SIGNAL(data(KIO::Job*, const QByteArray&)), this, SLOT(handleAuthSixteenStage1Data(KIO::Job*, const QByteArray&))); connect(job, SIGNAL(result(KJob*)), this, SLOT(handleAuthSixteenStage1Result(KJob*))); } I'll to attach a patch file. Alex This works for Yahoo, other protocols might need to be for checked percent encoding too. Created attachment 68412 [details]
Modify the Yahoo login URL to percent encode username and password
SVN commit 1281263 by lvsouza: Modify the Yahoo login URL to percent encode username and password. Fixes kopete does not save passwords correctly if it contains symbols Thanks to Alex Dănilă for this patch. M +3 -2 logintask.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1281263 SVN commit 1281264 by lvsouza: Backport SVN commit 1281263 to the 4.8 branch: Modify the Yahoo login URL to percent encode username and password. Fixes kopete does not save passwords correctly if it contains symbols Thanks to Alex Dănilă for this patch. M +3 -2 logintask.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1281264 Is this fixed for all protocols? IIRC I have had this issue with MSN. I use Kopete 4.8.0 with WLM protocol and password with non-alphanumeric characters. I can connect normally here. Actually, the only problem I had to connect in the past years was because of the server IP redirection Microsoft established in their servers some months ago. |