util.x509: Nameprep commonName once
[prosody.git] / spec / scansion / issue978.scs
blob59db833514c425eaf7a40c8661d1bd251be78aef
1 # Issue 978: MUC does not carry error into occupant leave status (single client)
2 [Client] Romeo
3         jid: user@localhost
4         password: password
6 [Client] Juliet
7         jid: user2@localhost
8         password: password
10 -----
12 Romeo connects
14 Romeo sends:
15         <presence to="room@conference.localhost/Romeo">
16                 <x xmlns="http://jabber.org/protocol/muc"/>
17         </presence>
19 Romeo receives:
20         <presence from='room@conference.localhost/Romeo'>
21                 <x xmlns='http://jabber.org/protocol/muc#user'>
22                         <status code='201'/>
23                         <item jid="${Romeo's full JID}" affiliation='owner' role='moderator'/>
24                         <status code='110'/>
25                 </x>
26         </presence>
28 Romeo receives:
29         <message type='groupchat' from='room@conference.localhost'><subject/></message>
31 # Submit config form
32 Romeo sends:
33         <iq id='config1' to='room@conference.localhost' type='set'>
34                 <query xmlns='http://jabber.org/protocol/muc#owner'>
35                         <x xmlns='jabber:x:data' type='submit'>
36                                 <field var='FORM_TYPE'>
37                                         <value>http://jabber.org/protocol/muc#roomconfig</value>
38                                 </field>
39                                 <field var='muc#roomconfig_whois'>
40                                         <value>anyone</value>
41                                 </field>
42                         </x>
43                 </query>
44         </iq>
46 Romeo receives:
47         <iq id="config1" from="room@conference.localhost" type="result">
48         </iq>
50 # Juliet connects, and joins the room
51 Juliet connects
53 Juliet sends:
54         <presence to="room@conference.localhost/Juliet">
55                 <x xmlns="http://jabber.org/protocol/muc"/>
56         </presence>
58 Juliet receives:
59         <presence from="room@conference.localhost/Romeo" />
61 Juliet receives:
62         <presence from="room@conference.localhost/Juliet" />
64 Juliet receives:
65         <message type='groupchat' from='room@conference.localhost'><subject/></message>
67 Romeo receives:
68         <presence from="room@conference.localhost/Juliet" />
70 Juliet sends:
71         <presence type='error' to='room@conference.localhost'>
72                 <error type='cancel'>
73                         <service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
74                         <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Test error</text>
75                 </error>
76         </presence>
78 Romeo receives:
79         <presence type='unavailable' from='room@conference.localhost/Juliet'>
80                 <status>Kicked: service unavailable: Test error</status>
81                 <x xmlns='http://jabber.org/protocol/muc#user'>
82                         <status code='333'/>
83                         <item jid="${Juliet's full JID}" affiliation='none' role='none'/>
84                 </x>
85         </presence>