aboutsummaryrefslogtreecommitdiff
path: root/net-im/kmess-kde4/files
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2012-02-27 14:14:20 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2012-02-27 14:14:20 +0000
commit99ede11a3acfe3c9535f931cbf89cd8f08006f97 (patch)
treee8bfbdf70e2f1fb7936fee09ca5a6b4358b02235 /net-im/kmess-kde4/files
parenta7d142473ad138940a11946cdc41131e347d489d (diff)
downloadports-99ede11a3acfe3c9535f931cbf89cd8f08006f97.tar.gz
ports-99ede11a3acfe3c9535f931cbf89cd8f08006f97.zip
Notes
Diffstat (limited to 'net-im/kmess-kde4/files')
-rw-r--r--net-im/kmess-kde4/files/patch-soap33
1 files changed, 33 insertions, 0 deletions
diff --git a/net-im/kmess-kde4/files/patch-soap b/net-im/kmess-kde4/files/patch-soap
new file mode 100644
index 000000000000..f8604e5563a5
--- /dev/null
+++ b/net-im/kmess-kde4/files/patch-soap
@@ -0,0 +1,33 @@
+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() ); \ No newline at end of file