What steps will reproduce the problem?
1. Restrictive configuration on vcard4 PEP node
2. Query from an account that should not have access
What is the expected output?
<iq type='error' from='...' id='7' xml:lang='en'>
<error type='auth'>
<forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</iq>
What do you see instead?
<iq type='error' from='...' id='lx8' xml:lang='en'>
<error type='modify'>
<undefined-condition xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
</error>
</iq>
What version of the product are you using? On what operating system?
0.11
Please provide any additional information below.
The module checks the wrong return value for the error condition.
What steps will reproduce the problem? 1. Restrictive configuration on vcard4 PEP node 2. Query from an account that should not have access What is the expected output? <iq type='error' from='...' id='7' xml:lang='en'> <error type='auth'> <forbidden xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> </error> </iq> What do you see instead? <iq type='error' from='...' id='lx8' xml:lang='en'> <error type='modify'> <undefined-condition xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> </error> </iq> What version of the product are you using? On what operating system? 0.11 Please provide any additional information below. The module checks the wrong return value for the error condition.
Fixed in https://hg.prosody.im/trunk/rev/c4b49939b471
ChangesIt should more or less return the same error as a pubsub items query to the vcard4 node.