[kmess] added the follow-location-redirects patch to the build (fixes the "contact list not showing bug") fi
Rex Dieter
rdieter at fedoraproject.org
Wed Nov 30 13:51:30 UTC 2011
commit 3f6d6ddba8528d199352fd104def362ed00f2db9
Author: Rex Dieter <rdieter at fedoraproject.org>
Date: Wed Nov 30 07:51:27 2011 -0600
added the follow-location-redirects patch to the build (fixes the "contact list not showing bug")
fixed connection issues
kmess-2.0.6.1-follow-location-redirects.patch | 34 +++++++++++++++++++++++++
kmess.spec | 11 +++++++-
2 files changed, 44 insertions(+), 1 deletions(-)
---
diff --git a/kmess-2.0.6.1-follow-location-redirects.patch b/kmess-2.0.6.1-follow-location-redirects.patch
new file mode 100644
index 0000000..fbabdef
--- /dev/null
+++ b/kmess-2.0.6.1-follow-location-redirects.patch
@@ -0,0 +1,34 @@
+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
+--- a/src/network/soap/httpsoapconnection.cpp 2011-02-16 08:16:45.000000000 +0100
++++ b/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() );
+
diff --git a/kmess.spec b/kmess.spec
index 97d7bd6..9cba5ca 100644
--- a/kmess.spec
+++ b/kmess.spec
@@ -1,6 +1,6 @@
Name: kmess
Version: 2.0.6.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Messaging client for MSN
Group: Applications/Internet
License: GPLv2+
@@ -18,6 +18,9 @@ Patch50: kmess-2.0.6.1-kmesssendpluginlib_dsolinking.patch
# this static anyway
patch51: kmess-2.0.6.1-kmesssendpluginlib_static.patch
+#New Patch for the "Not Showing Contact List" Problem
+patch52: kmess-2.0.6.1-follow-location-redirects.patch
+
BuildRequires: kdelibs4-devel
BuildRequires: qca2-devel
BuildRequires: libxml2-devel
@@ -37,6 +40,7 @@ BuildRequires: kdebase4-devel
%{?_kde4_version:Requires: kdebase4 >= %{_kde4_version}}
%endif
+Provides: bundled(libisf-qt)
#-----------------------------------------------------------------------------
#-- The following OPTIONAL packages could NOT be located on your system.
#-- Consider installing them to enable more features from this software.
@@ -64,6 +68,7 @@ interface.
#patch50 -p1 -b .kmesssendpluginlib_dsolinking
%patch51 -p1 -b .kmesssendpluginlib_static
+%patch52 -p1 -b .follow-location-redirects
%build
mkdir -p %{_target_platform}
@@ -114,6 +119,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
%endif
%changelog
+* Wed Nov 23 2011 Manuel Escudero <manuelescudero at xenodesystems.com> 2.0.6.1-2
+- added the follow-location-redirects patch to the build (fixes the "contact list not showing bug")
+- fixed connection issues
+
* Wed Mar 16 2011 Rex Dieter <rdieter at fedoraproject.org> 2.0.6.1-1
- kmess-2.0.6.1 (#676443)
- make qca-ossl dep arch'd
More information about the scm-commits
mailing list