Permalink
Browse files

Add more debug logs in the DataDirect and MythDLMgr code

Refs #10662

Turns out the problem we are seeing is a known bug in Qt 4.7.1 that is fixed
in 4.7.2 (and wasn't there before 4.7.1).

In particular, if your Schedules Direct username is an email address, Qt4.7.1
stupidly puts the username as the part before the @ and the realm as the
portion after the @, even though the realm was already provided.

SO, if you have a Schedules Direct username that is an email address, either
upgrade to 4.7.2 (or higher), or downgrade to 4.7.0 (or lower).
  • Loading branch information...
Beirdo committed Apr 30, 2012
1 parent ef2c748 commit e778f23d0eeabf99be23121cebc190191aa7041f
Showing with 14 additions and 0 deletions.
  1. +13 −0 mythtv/libs/libmythbase/mythdownloadmanager.cpp
  2. +1 −0 mythtv/libs/libmythtv/datadirect.cpp
@@ -768,7 +768,10 @@ void MythDownloadManager::authCallback(QNetworkReply *reply,
return;
if (dlInfo->m_authCallback)
+ {
+ LOG(VB_FILE, LOG_DEBUG, "Calling auth callback");
dlInfo->m_authCallback(reply, authenticator, dlInfo->m_authArg);
+ }
}
/** \brief Download helper for download() blocking methods.
@@ -817,7 +820,11 @@ bool MythDownloadManager::downloadNow(MythDownloadInfo *dlInfo, bool deleteInfo)
dlInfo->m_syncMode = false; // Let downloadFinished() cleanup for us
if ((dlInfo->m_reply) &&
(dlInfo->m_errorCode == QNetworkReply::NoError))
+ {
+ LOG(VB_FILE, LOG_DEBUG,
+ LOC + QString("Aborting download - lack of data transfer"));
dlInfo->m_reply->abort();
+ }
}
else if (deleteInfo)
{
@@ -847,7 +854,11 @@ void MythDownloadManager::cancelDownload(const QString &url)
{
// this shouldn't happen
if (dlInfo->m_reply)
+ {
+ LOG(VB_FILE, LOG_DEBUG,
+ LOC + QString("Aborting download - user request"));
dlInfo->m_reply->abort();
+ }
lit.remove();
delete dlInfo;
dlInfo = NULL;
@@ -859,6 +870,8 @@ void MythDownloadManager::cancelDownload(const QString &url)
dlInfo = m_downloadInfos[url];
if (dlInfo->m_reply)
{
+ LOG(VB_FILE, LOG_DEBUG,
+ LOC + QString("Aborting download - user request"));
m_downloadReplies.remove(dlInfo->m_reply);
dlInfo->m_reply->abort();
}
@@ -975,6 +975,7 @@ void authenticationCallback(QNetworkReply *reply, QAuthenticator *auth,
void DataDirectProcessor::authenticationCallback(QNetworkReply *reply,
QAuthenticator *auth)
{
+ LOG(VB_FILE, LOG_DEBUG, "DataDirect auth callback");
(void)reply;
auth->setUser(GetUserID());
auth->setPassword(GetPassword());

0 comments on commit e778f23

Please sign in to comment.