#1934 MUC: Error when join stanza sent without resource
Reporter
Zash
Owner
Zash
Created
Updated
Stars
★★ (2)
Tags
Component-MUC
Type-Defect
Priority-Medium
Status-Fixed
Milestone-13.0
Zash
on
What steps will reproduce the problem?
1. <presence to="group@groups.localhost"><x xmlns="http://jabber.org/protocol/muc"/></presence>
What is the expected output?
<presence type="error"/>
What do you see instead?
error Traceback[c2s]: plugins/muc/muc.lib.lua:475: bad argument #1 to 'resourceprep' (string expected, got nil)
stack traceback:
[C]: in upvalue 'resourceprep'
plugins/muc/muc.lib.lua:475: in field '?'
./util/events.lua:81: in function <./util/events.lua:77>
(...tail calls...)
plugins/muc/muc.lib.lua:503: in function <plugins/muc/muc.lib.lua:490>
(...tail calls...)
./util/events.lua:81: in function <./util/events.lua:77>
(...tail calls...)
./core/stanza_router.lua:188: in upvalue 'core_post_stanza'
./core/stanza_router.lua:128: in upvalue 'core_process_stanza'
plugins/mod_c2s.lua:366: in upvalue 'func'
./util/async.lua:149: in function <./util/async.lua:147>
What version of the product are you using?
Reproducible on 13.0.1 and most likely affects 0.12.x as well
Please provide any additional information below.
What steps will reproduce the problem? 1. <presence to="group@groups.localhost"><x xmlns="http://jabber.org/protocol/muc"/></presence> What is the expected output? <presence type="error"/> What do you see instead? error Traceback[c2s]: plugins/muc/muc.lib.lua:475: bad argument #1 to 'resourceprep' (string expected, got nil) stack traceback: [C]: in upvalue 'resourceprep' plugins/muc/muc.lib.lua:475: in field '?' ./util/events.lua:81: in function <./util/events.lua:77> (...tail calls...) plugins/muc/muc.lib.lua:503: in function <plugins/muc/muc.lib.lua:490> (...tail calls...) ./util/events.lua:81: in function <./util/events.lua:77> (...tail calls...) ./core/stanza_router.lua:188: in upvalue 'core_post_stanza' ./core/stanza_router.lua:128: in upvalue 'core_process_stanza' plugins/mod_c2s.lua:366: in upvalue 'func' ./util/async.lua:149: in function <./util/async.lua:147> What version of the product are you using? Reproducible on 13.0.1 and most likely affects 0.12.x as well Please provide any additional information below.
Fixed in https://hg.prosody.im/trunk/rev/3609d8fcad00
Changes