blob: bbe067fdbabdf00d099587c917bedba7cccf61ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
# MUC: Allow members to fetch the affiliation lists in open non-anonymous rooms
[Client] Romeo
jid: 4e2pm7er@localhost
password: password
[Client] Juliet
jid: qnjm5253@localhost
password: password
[Client] Random
jid: iqizbcus@localhost
password: password
-----
Romeo connects
Juliet connects
Random connects
# Romeo joins and creates the MUC
Romeo sends:
<presence to="mcgczevx@conference.localhost/Romeo">
<x xmlns="http://jabber.org/protocol/muc"/>
</presence>
Romeo receives:
<presence from="mcgczevx@conference.localhost/Romeo">
<x xmlns="http://jabber.org/protocol/muc#user" scansion:strict="false">
<item affiliation="owner" jid="${Romeo's full JID}" role="moderator"/>
<status code="110"/>
<status code="201"/>
</x>
</presence>
Romeo receives:
<message from="mcgczevx@conference.localhost" type="groupchat">
<subject/>
</message>
# and configures it for private chat
Romeo sends:
<iq type="set" id="17fb8e7e-c75e-447c-b86f-3f1df8f507c4" to="mcgczevx@conference.localhost">
<query xmlns="http://jabber.org/protocol/muc#owner">
<x type="submit" xmlns="jabber:x:data">
<field var="FORM_TYPE">
<value>http://jabber.org/protocol/muc#roomconfig</value>
</field>
<field var="muc#roomconfig_membersonly">
<value>1</value>
</field>
<field var="muc#roomconfig_whois">
<value>anyone</value>
</field>
</x>
</query>
</iq>
Romeo receives:
<iq from="mcgczevx@conference.localhost" id="17fb8e7e-c75e-447c-b86f-3f1df8f507c4" type="result"/>
Romeo receives:
<message from="mcgczevx@conference.localhost" type="groupchat">
<x xmlns="http://jabber.org/protocol/muc#user" scansion:strict="false">
<status code="104"/>
<status code="172"/>
</x>
</message>
# Juliet is made a member
Romeo sends:
<iq type="set" id="32d81574-e1dc-4221-b36d-4c44debb7c19" to="mcgczevx@conference.localhost">
<query xmlns="http://jabber.org/protocol/muc#admin">
<item affiliation="member" jid="${Juliet's JID}"/>
</query>
</iq>
# Juliet can read affiliations
Juliet sends:
<iq type="get" id="32d81574-e1dc-4221-b36d-4c44debb7c19" to="mcgczevx@conference.localhost">
<query xmlns="http://jabber.org/protocol/muc#admin">
<item affiliation="owner"/>
</query>
</iq>
Juliet receives:
<iq from="mcgczevx@conference.localhost" id="32d81574-e1dc-4221-b36d-4c44debb7c19" type="result">
<query xmlns="http://jabber.org/protocol/muc#admin">
<item affiliation="owner" jid="${Romeo's JID}"/>
</query>
</iq>
Juliet sends:
<iq type="get" id="05e3fe30-976f-4919-8221-ca1ac333eb9b" to="mcgczevx@conference.localhost">
<query xmlns="http://jabber.org/protocol/muc#admin">
<item affiliation="member"/>
</query>
</iq>
Juliet receives:
<iq from="mcgczevx@conference.localhost" id="05e3fe30-976f-4919-8221-ca1ac333eb9b" type="result">
<query xmlns="http://jabber.org/protocol/muc#admin">
<item affiliation="member" jid="${Juliet's JID}"/>
</query>
</iq>
# Others can't read affiliations
Random sends:
<iq type="get" id="df1195e1-7ec8-4102-8561-3e3a1d942adf" to="mcgczevx@conference.localhost">
<query xmlns="http://jabber.org/protocol/muc#admin">
<item affiliation="owner"/>
</query>
</iq>
Random receives:
<iq from="mcgczevx@conference.localhost" id="df1195e1-7ec8-4102-8561-3e3a1d942adf" type="error"/>
Juliet disconnects
Romeo disconnects
Random disconnects
# recording ended on 2021-07-23T12:09:48Z
|