What steps will reproduce the problem?
<iq type='get' xml:lang='sv' id='lx5' to='localhost'>
<credentials xmlns='urn:xmpp:extdisco:2'>
<service host='default.example' />
</credentials>
</iq>
What is the expected output?
<iq type='error' id='lx5' from='localhost'>
<error type='modify'>
<bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
<text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>The 'port' and 'type' attributes are required.</text>
</error>
</iq>
What do you see instead?
<iq type='error' id='lx5' from='localhost'>
<error type='modify'>
<bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</iq>
What version of the product are you using?
Prosody 0.12.0
since https://hg.prosody.im/trunk/rev/c4599a7c534c
Please provide any additional information below.
The error <text> message was mistakenly added in an authorization check instead of the correct place.
What steps will reproduce the problem? <iq type='get' xml:lang='sv' id='lx5' to='localhost'> <credentials xmlns='urn:xmpp:extdisco:2'> <service host='default.example' /> </credentials> </iq> What is the expected output? <iq type='error' id='lx5' from='localhost'> <error type='modify'> <bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>The 'port' and 'type' attributes are required.</text> </error> </iq> What do you see instead? <iq type='error' id='lx5' from='localhost'> <error type='modify'> <bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> </error> </iq> What version of the product are you using? Prosody 0.12.0 since https://hg.prosody.im/trunk/rev/c4599a7c534c Please provide any additional information below. The error <text> message was mistakenly added in an authorization check instead of the correct place.
fixed in https://hg.prosody.im/trunk/rev/95f33a006c03
Changes