Summary: | last.fm will not log in, but if previously logged in works fine, in Amarok 2.3.2 onwards | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | Sam Lade <sam> |
Component: | Services/Last.fm | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dmeltzer.devel, kde-bugzilla, kde, lfranchi, manu.wagner, paulo.miguel.dias, stuffcorpse, thev00d00, wesleyhg |
Priority: | NOR | ||
Version: | 2.3.2 | ||
Target Milestone: | 2.4.0 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 2.4 | |
Sentry Crash Report: |
Description
Sam Lade
2010-10-10 22:59:07 UTC
same here, amarok git from today, i was involved in the discussion of this bug in #amarok, so feel free to ask for patch testing. Confirmed by comment #1 Confirmed here too commit d01e51eee853596aa04e377253c6f3d83b6483c3 Author: Rick W. Chen <stuffcorpse@archlinux.us> Date: Fri Oct 15 14:49:22 2010 +1300 Fix last.fm auth failure introduced by ec210e0cf3119818a1d359885b77f6ef21a86cea BUG: 253788 CCMAIL: kretschmann@kde.org diff --git a/src/services/lastfm/LastFmService.cpp b/src/services/lastfm/LastFmService.cpp index e039cea..05bb948 100644 --- a/src/services/lastfm/LastFmService.cpp +++ b/src/services/lastfm/LastFmService.cpp @@ -251,7 +251,7 @@ LastFmService::init() debug() << "username:" << QString( QUrl::toPercentEncoding( lastfm::ws::Username ) ); - const QString authToken = md5( m_userName.toUtf8() ) + md5( password.toUtf8() ); + const QString authToken = md5( ( m_userName + md5( password.toUtf8() ) ).toUtf8() ); // now authenticate w/ last.fm and get our session key if we don't have one if( sessionKey.isEmpty() ) diff --git a/src/services/lastfm/LastFmServiceSettings.cpp b/src/services/lastfm/LastFmServiceSettings.cpp index 07eb64b..4b51ba1 100644 --- a/src/services/lastfm/LastFmServiceSettings.cpp +++ b/src/services/lastfm/LastFmServiceSettings.cpp @@ -14,6 +14,8 @@ * this program. If not, see <http://www.gnu.org/licenses/>. * ****************************************************************************************/ +#define DEBUG_PREFIX "LastFmServiceSettings" + #include "LastFmServiceSettings.h" #include "core/support/Amarok.h" @@ -112,8 +114,8 @@ LastFmServiceSettings::testLogin() debug() << "username:" << QString( QUrl::toPercentEncoding( lastfm::ws::Username ) ); - const QString authToken = QString( md5( m_configDialog->kcfg_ScrobblerUsername->text().toUtf8() ) + - md5( m_configDialog->kcfg_ScrobblerPassword->text().toUtf8() ) ); + const QString authToken = md5( ( m_configDialog->kcfg_ScrobblerUsername->text() + + md5( m_configDialog->kcfg_ScrobblerPassword->text().toUtf8() ) ).toUtf8() ); // now authenticate w/ last.fm and get our session key QMap<QString, QString> query; *** Bug 253923 has been marked as a duplicate of this bug. *** *** Bug 254006 has been marked as a duplicate of this bug. *** |