With FMUC, it seems desirable to be able to establish federation between nodes out of the context of an occupant that joins the room, for example when an administrator configures FMUC for a pre-existing room, or when network connectivity recovered causing a previous federation to be "re-established"
Guus
The act of establishing federation as described in the XEP is triggered by the event of an occupant joining a room. The XEP is not overly clear on how federation is established for a pre-existing room.
Guus
what's the best approach here? Simulate a join using a random occupant?
Guusnudges Kev
Kev
Yep, you can just pick someone to be the first user.
Guus
ok, thanks. Not very elegant, but it'll do, I guess.
paulhas left
neshtaxmpphas left
govanifyhas left
govanifyhas joined
matkorhas left
matkorhas joined
alexishas left
matkorhas left
Shellhas left
matkorhas joined
neshtaxmpphas joined
Shellhas joined
adiaholic_has left
adiaholic_has joined
mukt2has joined
govanifyhas left
govanifyhas joined
stpeterhas joined
andrey.ghas joined
Andrzejhas left
karoshihas left
emushas left
Shellhas left
Shellhas joined
emushas joined
alexishas joined
Shellhas left
Shellhas joined
karoshihas joined
mukt2has left
mukt2has joined
neshtaxmpphas left
Shellhas left
Shellhas joined
Shellhas left
Shellhas joined
neshtaxmpphas joined
calvinhas left
jonas’
from council@, we were discussing PR#591 and the XEP-0050 'execute' problem
jonas’
pasting some logs from there, you can read for yourself, too: https://logs.xmpp.org/council/2020-06-03#2020-06-03-04158e5cf65364df
15:28:47 jonas’> flow, at a first glance, 591 has multiple problems:
- It defines previously undefined behaviour, making implementations which were previously neutral
non-compliant
- It does not solve the issue for when neither next nor complete are allowed.
jonas’
flow, for later: the key difference between 591 and 598 in my eyes (and why I prefer 598) is for "clients" of the Ad-Hoc protocol: With 591, clients could, theoretically, start to rely on execute = complete if and only if next is not allowed. If they talk to an old implementation, that implementation will do whatever instead. In case of 598, a new client will see "ah, so that’s an invalid state" (ideally + wording that it was UB before) and will avoid using execute in that situation
jonas’
but rather explicitly call complete
jonas’
so both PRs do indeed make implementations non-compliant, but I think 598 is slightly better since it doesn’t "promise" behaviour to clients which existing servers may not provide.
calvinhas joined
calvinhas left
chynahas left
neshtaxmpphas left
Zash
An observation: All ad-hoc commands provided by Prosody are 1-step commands, and the 'action' is basically ignored since there's never any previous step and 'next' completes the command, so it's redundant with 'complete'.
Zash
Well. I think there's one or two 0-step commands.
Zash
So, I wonder about what the distribution of step-lengths in the wild might be.
matkorhas left
matkorhas joined
Guus
FMUC exampel 9 (https://xmpp.org/extensions/xep-0289.html#example-9) lists 5 presence stanzas, to illustrate how a 'leave' presence fans out. Am I correct that the 'to' address of the fourth stanza is not correct? I am specifically looking at the resource (nickname). I think that should be the nickname of the user that is leaving, instead of the nickname of the intended recipient of the presence (elsinore@talk.denmark.lit/Hatter instead of elsinore@talk.denmark.lit/Hamlet).
Guus
I think that would correspond with the 'join' example above.
alexishas left
matkorhas left
matkorhas joined
Kev
Kev in Stupid Typo Shocker?
Wojtekhas joined
Guus
well, things get complicated fast, and I'm known to not interpret things correctly.
Guus
So a confirmation that this indeed is a stupid typo would be welcome. 🙂
karoshihas left
Kev
I'm not immediately 100% sure that's wrong, hang on.
mukt2has left
karoshihas joined
Kev
I've checked M-Link. We iterate across the remote rooms, create a JID by appending the resource of the 'from' JID to the bare JID of the remote room, and use that as the 'to'.
My reasoning is that you would not want to address each individual occupant on the remote node
paulhas joined
paulhas left
Guus
Thanks for checking Kev
krauqhas left
Mikaelahas left
paulhas joined
krauqhas joined
bearhas left
waqashas left
bearhas joined
Mikaelahas joined
alexishas joined
karoshihas left
neshtaxmpphas joined
matkorhas left
matkorhas joined
sonnyhas left
sonnyhas joined
alexishas left
mukt2has joined
andrey.ghas left
calvinhas joined
calvinhas left
Shellhas left
Shellhas joined
karoshihas joined
bearhas left
karoshihas left
karoshihas joined
wurstsalathas left
wurstsalathas joined
calvinhas joined
winfriedhas left
queen_tilfaarhas joined
winfriedhas joined
calvinhas left
neshtaxmpphas left
queen_tilfaarhas left
Alexhas left
Alexhas joined
neshtaxmpphas joined
Shellhas left
chynahas joined
chynahas left
chynahas joined
krauqhas left
krauqhas joined
bearhas joined
papatutuwawahas joined
sonnyhas left
sonnyhas joined
winfriedhas left
winfriedhas joined
Mikaelahas left
Mikaelahas joined
chynahas left
chynahas joined
krauqhas left
mukt2has left
mukt2has joined
krauqhas joined
matkorhas left
matkorhas joined
matkorhas left
matkorhas joined
debaclehas joined
matkorhas left
debaclehas left
debaclehas joined
matkorhas joined
papatutuwawahas left
sonnyhas left
sonnyhas joined
Mikaelahas left
sonnyhas left
sonnyhas joined
Neustradamus
Link Mauve and pep.: Have you looked for Alex memberbot problem?
pep.
Neustradamus, no, have you?
Neustradamus
Alex: Can you explain? It is linked to slixmpp
pep.
So what? Because I contribute to a project that uses slixmpp I don't have a choice but to fix everybody's slixmpp bots?
Shellhas joined
pep.
I have looked in the past, I don't even manage to make the thing run on my machine, for different reasons than Alex.. so there's that
neshtaxmpphas left
archas left
archas joined
archas left
Shellhas left
mukt2has left
archas joined
archas left
archas joined
Nekithas joined
mukt2has joined
Alex
I have left a comment here on the PR:
https://github.com/xsf/memberbot/pull/2
The code on master does not work anymore. Lance's original code works fine, but is using sleek and python 2
archas left
archas joined
Alex
I can add instructions on how to run the code. It's super simple. Only requires 2 jids, and the voter jid must be in the roster file
papatutuwawahas joined
chynahas left
Shellhas joined
neshtaxmpphas joined
chynahas joined
chynahas left
chynahas joined
Yagizahas left
winfriedhas left
winfriedhas joined
j.rhas left
Shellhas left
APachhas joined
j.rhas joined
APachhas left
APachhas joined
APachhas left
APachhas joined
sonnyhas left
sonnyhas joined
waqashas joined
neshtaxmpphas left
j.rhas left
j.rhas joined
karoshihas left
karoshihas joined
eevvoorhas left
j.rhas left
j.rhas joined
sonnyhas left
sonnyhas joined
dwd
Alex, I'll take a look once I'm slightly less busy. Feel free to nag me if I don't seem to get around to it.
chynahas left
emushas left
emushas joined
APachhas left
APachhas joined
sonnyhas left
alexishas joined
sonnyhas joined
Neustradamus
Thanks in advance dwd!
sonnyhas left
goffihas left
archas left
archas joined
dwd
I think I might make it use pipenv as a first step.
Tobiashas left
papatutuwawahas left
adiaholic_has left
adiaholic_has joined
mukt2has left
gavhas left
Bezihas left
gavhas joined
Bezihas joined
xeckshas left
wurstsalathas left
xeckshas joined
Marandahas left
j.rhas left
j.rhas joined
moparisthebesthas left
moparisthebesthas joined
dwd
Alex, Cloned and running in pipenv. Easy enough. Nudge me when you're around and we can discuss what's needed.
robertooohas left
robertooohas joined
Neustradamus
dwd: I have informed about the problem of "no" which is transformed in "No" in my client, my client has a function: automatically capitalize the first letter.
There is no problem with "yes", no change, it is always "yes".
dwd
Got it. Seems trivial to fix, I'll do so and make up a PR. I should probably lint this too, looks a little rough in places.
pep.
There's already a PR for this
dwd
pep., Where? I see a vcard one and the requirements.txt one.
pep.
https://github.com/xsf/memberbot/commits/master ah it's been merged
dwd
Ah, so there's cases I can see that haven't been fixed.
pep.
k
mukt2has joined
Neustradamus
But when we click on "no" it is always "No", when we click on "yes" it is "yes"
karoshihas left
karoshihas joined
mukt2has left
dwd
Bug fixed, PEP8 applied, linted, pipenv. Properly test it in the morning, then PR. Do we want it dockerized while I'm at it?
stpeterhas left
pep.
it's supposed to be a simple python script :/
chynahas joined
pep.
Where is the world going :(
emushas left
emushas joined
dwd
I run a lot of Python scripts, many of them much simpler than this. I always run them in pipenv and usually docker.
dwd
I think pipenv makes things simpler. Docker makes deploying things simpler, but I don't know if the XSF/Alex needs it.