https://bugs.kde.org/show_bug.cgi?id=428078
Bug ID: 428078 Summary: SMTP AUTH Login truncates Base64 representation of username Product: trojita Version: git Platform: Compiled Sources OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: SMTP Assignee: trojita-b...@kde.org Reporter: marcel.bosl...@rwth-aachen.de Target Milestone: --- The username is truncated for my usecase when using a AUTH Login. Therefore the authentication fails with error 5.7.3. STEPS TO REPRODUCE 1. Try to connect to an SMTP server via AUTH Login/StartTLS (my case: rather long mail address) OBSERVED RESULT Authentication fails with error 5.7.3. EXPECTED RESULT Authentication should reach the next step and process the given password. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux Kernel 5.9.1 x64 (available in About System) KDE Plasma Version: 5.20.1 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.1 ADDITIONAL INFORMATION PATCH: diff --git a/src/qwwsmtpclient/qwwsmtpclient.cpp b/src/qwwsmtpclient/qwwsmtpclient.cpp index 1c34fb86..619244dc 100644 --- a/src/qwwsmtpclient/qwwsmtpclient.cpp +++ b/src/qwwsmtpclient/qwwsmtpclient.cpp @@ -12,6 +12,7 @@ #include "qwwsmtpclient.h" #include <QSslSocket> #include <QtDebug> +#include <QDebug> #include <QRegularExpression> #include <QQueue> #include <QVariant> @@ -544,7 +545,7 @@ void QwwSmtpClientPrivate::sendAuthPlain(const QString & username, const QString void QwwSmtpClientPrivate::sendAuthLogin(const QString & username, const QString & password, int stage) { if (stage==1) { - auto buf = username.toUtf8().toBase64() + "\r\n"; + QByteArray buf = username.toUtf8().toBase64() + "\r\n"; emit q->logSent(buf); socket->write(buf); } else if (stage==2) { -- You are receiving this mail because: You are watching all bug changes.