Closed Bug 1000480 Opened 10 years ago Closed 9 years ago

Don't attempt to send a presence stanza to the MUC if account is disconnected

Categories

(Chat Core :: XMPP, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: sawrubh, Unassigned)

References

Details

      No description provided.
Are there any error messages or more information you can add here?
My guess is that when the user leaves a MUC, the JS-XMPP code attempts to send to the server a presence stanza indicating that we have left the MUC; which obviously cannot work if the account is already disconnected.
This lacks steps to reproduce. It's not clear what the problem is either (the relevant part of a debug log or any errors/warnings would be helpful).
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INCOMPLETE
(In reply to aleth [:aleth] from comment #3)
> This lacks steps to reproduce.

1. Join a MUC with JS-XMPP.
2. Disconnect the XMPP account from the account manager.
3. Leave the MUC from the UI.

Expected result: nothing, as the MUC was already "left" because the account was offline.

Actual result: JS-XMPP attempts (and fails) to send a presence stanza to the server saying we have left the MUC.
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
(In reply to Florian Quèze [:florian] [:flo] from comment #4)
> Actual result: JS-XMPP attempts (and fails) to send a presence stanza to the
> server saying we have left the MUC.

I can't reproduce this. Where are you seeing this presence stanza being sent?
(In reply to aleth [:aleth] from comment #5)
> (In reply to Florian Quèze [:florian] [:flo] from comment #4)
> > Actual result: JS-XMPP attempts (and fails) to send a presence stanza to the
> > server saying we have left the MUC.
> 
> I can't reproduce this. Where are you seeing this presence stanza being sent?

That was visible in the debug log, and probably also causing a JS error due to the connection/socket being null.

It's quite possible this is WFM several years later, but closing as 'lacks STRs' didn't feel right ;).
(In reply to Florian Quèze [:florian] [:flo] from comment #6)
> It's quite possible this is WFM several years later, but closing as 'lacks
> STRs' didn't feel right ;).

Alright :-)
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.