1 # Issue 978: MUC does not carry error into occupant leave status (multiple clients)
11 [Client] Juliet's phone
20 <presence to="room@conference.localhost/Romeo">
21 <x xmlns="http://jabber.org/protocol/muc"/>
25 <presence from='room@conference.localhost/Romeo'>
26 <x xmlns='http://jabber.org/protocol/muc#user' scansion:strict='false'>
28 <item jid="${Romeo's full JID}" affiliation='owner' role='moderator'/>
34 <message type='groupchat' from='room@conference.localhost'><subject/></message>
38 <iq id='config1' to='room@conference.localhost' type='set'>
39 <query xmlns='http://jabber.org/protocol/muc#owner'>
40 <x xmlns='jabber:x:data' type='submit'>
41 <field var='FORM_TYPE'>
42 <value>http://jabber.org/protocol/muc#roomconfig</value>
49 <iq id="config1" from="room@conference.localhost" type="result">
52 # Juliet connects, and joins the room
56 <presence to="room@conference.localhost/Juliet">
57 <x xmlns="http://jabber.org/protocol/muc"/>
61 <presence from="room@conference.localhost/Romeo" />
64 <presence from="room@conference.localhost/Juliet" />
67 <message type='groupchat' from='room@conference.localhost'><subject/></message>
70 <presence from="room@conference.localhost/Juliet" />
72 # Juliet's phone connects, and joins the room
73 Juliet's phone connects
76 <presence to="room@conference.localhost/Juliet">
77 <x xmlns="http://jabber.org/protocol/muc"/>
80 Juliet's phone receives:
81 <presence from="room@conference.localhost/Romeo" />
83 Juliet's phone receives:
84 <presence from="room@conference.localhost/Juliet" />
86 Juliet's phone receives:
87 <message type='groupchat' from='room@conference.localhost'><subject/></message>
90 <presence from='room@conference.localhost/Juliet'>
91 <x xmlns='http://jabber.org/protocol/muc#user' scansion:strict='false'>
92 <item affiliation='none' jid="${Juliet's phone's full JID}" role='participant'/>
93 <item affiliation='none' jid="${Juliet's full JID}" role='participant'/>
97 # Juliet leaves with an error
99 <presence type='error' to='room@conference.localhost'>
100 <error type='cancel'>
101 <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
102 <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Test error</text>
107 <presence from='room@conference.localhost/Juliet'>
108 <x xmlns='http://jabber.org/protocol/muc#user'>
109 <item jid="${Juliet's phone's full JID}" affiliation='none' role='participant'/>