I enabled mod_group and create a group.txt with:
[Teachers]
meaz@myserver=Maxime
denarhill@myserver=Dennis
emiliamln@myserver=Emilia
For some reason, emiliamln@myserver doesn't appear in the group.
Here is what I have in the logs for her:
Jul 07 17:42:25 myserver:groups debug New group: Teachers
Jul 07 17:42:25 myserver:groups debug entryjid = 'emiliamln@myserver', name = ''
Jul 07 17:42:25 myserver:groups debug New member of Teachers: emiliamln@myserver
Jul 07 17:42:25 myserver:groups debug entryjid = '', name = ''
entryjid = '', name = '' isn't empty for the two other ones that work...
Meaz
on
It now works: the contact has to accept the invitation before it works.
Zash
on
I was going test this, so I saved the text in the issue into a file. When opening that file, I see:
emiliamln<200e>@myserver=Emilia
What is that U+200E LEFT-TO-RIGHT MARK doing there? It is not valid in JIDs.
From looking at the code, I'm guessing the JID fails to validate and is ignored.
There is no logging for that however, which is probably a bug.
And no, mod_groups overrides rosters so you don't need to accept invites.
Changes
owner Zash
tags Status-Accepted
Zash
on
Changes
titlemod_group entryjid = '' mod_groups: No logging for invalid JIDs
I enabled mod_group and create a group.txt with: [Teachers] meaz@myserver=Maxime denarhill@myserver=Dennis emiliamln@myserver=Emilia For some reason, emiliamln@myserver doesn't appear in the group. Here is what I have in the logs for her: Jul 07 17:42:25 myserver:groups debug New group: Teachers Jul 07 17:42:25 myserver:groups debug entryjid = 'emiliamln@myserver', name = '' Jul 07 17:42:25 myserver:groups debug New member of Teachers: emiliamln@myserver Jul 07 17:42:25 myserver:groups debug entryjid = '', name = '' entryjid = '', name = '' isn't empty for the two other ones that work...
It now works: the contact has to accept the invitation before it works.
I was going test this, so I saved the text in the issue into a file. When opening that file, I see: emiliamln<200e>@myserver=Emilia What is that U+200E LEFT-TO-RIGHT MARK doing there? It is not valid in JIDs. From looking at the code, I'm guessing the JID fails to validate and is ignored. There is no logging for that however, which is probably a bug. And no, mod_groups overrides rosters so you don't need to accept invites.
Changesmod_group entryjid = ''mod_groups: No logging for invalid JIDsExtra logging added in https://hg.prosody.im/0.10/rev/37ebcc7c6768 Poke or open a new issue if you can reproduce the problem without seeing that log message.
Changes