FreeBSD Bugzilla – Attachment 121937 Details for
Bug 165008
net-im/kmess-kde4 fails to connect
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.txt
file.txt (text/plain), 1.71 KB, created by
Axel Gonzalez
on 2012-02-12 01:00:28 UTC
(
hide
)
Description:
file.txt
Filename:
MIME Type:
Creator:
Axel Gonzalez
Created:
2012-02-12 01:00:28 UTC
Size:
1.71 KB
patch
obsolete
>Follow Location redirects, MS seems to have moved some accounts to other >servers. Forum topic reference: >Connection problem to wlm - http://kmess.org/board/viewtopic.php?f=4&t=20549 >diff -Nur a/src/network/soap/httpsoapconnection.cpp b/src/network/soap/httpsoapconnection.cpp >--- src/network/soap/httpsoapconnection.cpp 2011-02-16 08:16:45.000000000 +0100 >+++ src/network/soap/httpsoapconnection.cpp 2011-11-08 16:53:29.612517607 +0100 >@@ -456,6 +456,7 @@ > const QByteArray& replyContents = reply->readAll(); > const int statusCode = reply->attribute( QNetworkRequest::HttpStatusCodeAttribute ).toInt(); > const QString error ( reply->attribute( QNetworkRequest::HttpReasonPhraseAttribute ).toString() ); >+ QUrl redirectUrl = reply->attribute( QNetworkRequest::RedirectionTargetAttribute ).toUrl(); > > #ifdef KMESSDEBUG_HTTPSOAPCONNECTION_GENERAL > bool requestSuccess = false; >@@ -490,13 +491,16 @@ > #endif > > // Parse the message contents >- if( currentResponse->isFaultMessage() ) >+ if( !redirectUrl.isEmpty() || currentResponse->isFaultMessage() ) > { >- // Verify if the server is redirecting us to another server > if( currentResponse->getFaultCode() == "psf:Redirect" ) > { >+ redirectUrl = XmlFunctions::getNodeValue( currentResponse->getFault(), "redirectUrl" ); >+ } >+ // Verify if the server is redirecting us to another server >+ if( !redirectUrl.isEmpty() ) >+ { > const QUrl& originalUrl = currentResponse->getEndPoint(); >- const QUrl redirectUrl( XmlFunctions::getNodeValue( currentResponse->getFault(), "redirectUrl" ) ); > const QString originalHost( originalUrl.host() ); > const QString redirectHost( redirectUrl.host() );
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 165008
: 121937 |
121938