papyon doesn't answer server's pings

Bug #768974 reported by Riccardo 'c10ud'
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
papyon
Fix Released
Undecided
Unassigned
papyon (Ubuntu)
Fix Released
High
Ken VanDine
Natty
Fix Released
Medium
Unassigned
Oneiric
Fix Released
High
Ken VanDine

Bug Description

together with Luis Francis we found a nasty bug that affects the
current papyon HEAD (read: 0.5.5). In C you would get a nice linker
error, but in python you won't.
The bug consists in the method that handles QNGs from the server being
defined twice, and the 2nd one being the BAD version. So you will
(not!) see the server thinking your client is offline after some time
and silently disconnecting you. But you won't get any notification
about it because your client is like network timed out. Anyway simply
removing the offending method will solve the issue, and you'll see the
usual PNG-QNG flow back.

This is quite a critical bug to me, and if lfrb won't be able to
release a new version of papyon soon i suggest distro packagers to
manually patch the code, it's a tiny diff you can drop once the next
papyon version is out.

greets
Riccardo
__

diff --git a/papyon/msnp/notification.py b/papyon/msnp/notification.py
index 5aee9f3..8aa691f 100644
--- a/papyon/msnp/notification.py
+++ b/papyon/msnp/notification.py
@@ -695,9 +695,6 @@ class NotificationProtocol(BaseProtocol, Timer):
        self.emit("switchboard-invitation-received", session, inviter)

    # --------- Challenge ----------------------------------------------------
- def _handle_QNG(self, command):
- pass
-
    def _handle_QRY(self, command):
        pass

Related branches

Revision history for this message
Omer Akram (om26er) wrote :

i'll work on this backport. didrocks in #ubuntu-desktop says the fix can be SRU'ed as we are quite late in the cycle. Hopefully it'll be a zero day SRU.

Changed in papyon (Ubuntu):
assignee: nobody → Omer Akram (om26er)
importance: Undecided → Medium
Changed in papyon (Ubuntu Natty):
status: New → Confirmed
Revision history for this message
Michael Terry (mterry) wrote :
Revision history for this message
Michael Terry (mterry) wrote :

I've uploaded Omer's branch to natty-proposed. Testing would be very much appreciated. See https://wiki.ubuntu.com/QATeam/PerformingSRUVerification

Subscribing ubuntu-sru for SRU approval.

Changed in papyon (Ubuntu Natty):
assignee: Omer Akram (om26er) → nobody
tags: added: verification-needed
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted papyon into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in papyon (Ubuntu Natty):
status: Confirmed → Fix Committed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Hello folks, is there any test case for this? or just making sure it doesn't cause a regression is enough? Thanks!.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

the team already answered on the IRC channel, will install and keep an eye for a few days, thanks all.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

no regressions noticed during this whole time also there's no reports indicating that there's one with this proposed package, marking this as verification done, thanks all.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package papyon - 0.5.5-1ubuntu1.1

---------------
papyon (0.5.5-1ubuntu1.1) natty-proposed; urgency=low

  * papyon/msnp/notification.py:
    - Papyon doesn't answer server's pings. (LP: #768974)
 -- Omer Akram <email address hidden> Sun, 24 Apr 2011 18:08:10 +0500

Changed in papyon (Ubuntu Natty):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Oneiric got an upload for a different bug fix, so I cannot copy this to oneiric. Milestoning for alpha-1 to avoid permanent divergence, and to avoid forgetting about this.

Changed in papyon (Ubuntu Oneiric):
assignee: nobody → Ken VanDine (ken-vandine)
importance: Medium → High
milestone: none → oneiric-alpha-1
Changed in papyon (Ubuntu Oneiric):
status: Fix Committed → Fix Released
Changed in papyon:
status: New → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.