util.encodings: Spell out all IDNA 2008 options ICU has
[prosody.git] / spec / scansion / issue1224.scs
blobb75cfbd1b8b1fe16a4def5bb93503a6ead58575f
1 # MUC: Handle affiliation changes from buggy clients
3 [Client] Romeo
4         jid: user@localhost
5         password: password
7 [Client] Juliet
8         jid: user2@localhost
9         password: password
11 -----
13 Romeo connects
15 Romeo sends:
16         <presence to="room@conference.localhost/Romeo">
17                 <x xmlns="http://jabber.org/protocol/muc"/>
18         </presence>
20 Romeo receives:
21         <presence from='room@conference.localhost/Romeo'>
22                 <x xmlns='http://jabber.org/protocol/muc#user'>
23                         <status code='201'/>
24                         <item jid="${Romeo's full JID}" affiliation='owner' role='moderator'/>
25                         <status code='110'/>
26                 </x>
27         </presence>
29 Romeo receives:
30         <message type='groupchat' from='room@conference.localhost'><subject/></message>
32 # Submit config form
33 Romeo sends:
34         <iq id='config1' to='room@conference.localhost' type='set'>
35                 <query xmlns='http://jabber.org/protocol/muc#owner'>
36                         <x xmlns='jabber:x:data' type='submit'>
37                                 <field var='FORM_TYPE'>
38                                         <value>http://jabber.org/protocol/muc#roomconfig</value>
39                                 </field>
40                         </x>
41                 </query>
42         </iq>
44 Romeo receives:
45         <iq id="config1" from="room@conference.localhost" type="result">
46         </iq>
48 Romeo sends:
49         <iq id='member1' to='room@conference.localhost' type='set'>
50                 <query xmlns='http://jabber.org/protocol/muc#admin'>
51                         <item affiliation='member' jid="${Juliet's JID}" />
52                 </query>
53         </iq>
55 Romeo receives:
56         <message from='room@conference.localhost'>
57                 <x xmlns='http://jabber.org/protocol/muc#user'>
58                         <item jid="${Juliet's JID}" affiliation='member' xmlns='http://jabber.org/protocol/muc#user'/>
59                 </x>
60         </message>
62 Romeo receives:
63         <iq from='room@conference.localhost' id='member1' type='result'/>
65 # Juliet connects, and joins the room
66 Juliet connects
68 Juliet sends:
69         <presence to="room@conference.localhost/Juliet">
70                 <x xmlns="http://jabber.org/protocol/muc"/>
71         </presence>
73 Juliet receives:
74         <presence from="room@conference.localhost/Romeo" />
76 Juliet receives:
77         <presence from="room@conference.localhost/Juliet" />
79 Juliet receives:
80         <message type='groupchat' from='room@conference.localhost'><subject/></message>
82 Romeo receives:
83         <presence from="room@conference.localhost/Juliet" />
85 # Romeo makes Juliet a member of the room, however his client is buggy and only
86 # specifies her nickname
88 Romeo sends:
89         <iq id='member1' to='room@conference.localhost' type='set'>
90                 <query xmlns='http://jabber.org/protocol/muc#admin'>
91                         <item affiliation='member' nick='Juliet' />
92                 </query>
93         </iq>
95 Romeo receives:
96         <presence from='room@conference.localhost/Juliet'>
97                 <x xmlns='http://jabber.org/protocol/muc#user'>
98                         <item affiliation='member' role='participant' jid="${Juliet's full JID}">
99                                 <actor jid="${Romeo's full JID}" nick='Romeo'/>
100                         </item>
101                 </x>
102         </presence>
104 Romeo receives:
105         <iq type='result' id='member1' from='room@conference.localhost' />
107 Juliet receives:
108         <presence from='room@conference.localhost/Juliet'>
109                 <x xmlns='http://jabber.org/protocol/muc#user'>
110                         <item affiliation='member' role='participant' jid="${Juliet's full JID}">
111                                 <actor nick='Romeo' />
112                         </item>
113                         <status xmlns='http://jabber.org/protocol/muc#user' code='110'/>
114                 </x>
115         </presence>