Please provide a snippet of the part of the specification which we violate
if possible:
<blockquote>[...] if the contact has no available resources when the subscription request is received by the contact's server, then the contact's server MUST keep a record of the complete presence stanza comprising the subscription request, including any extended content contained therein (see Section 8.4 of [XMPP‑CORE]), and then deliver the request when the contact next has an available resource. </blockquote>
Prosody keeps only the JID here.
Please provide a link to the specification:
http://xmpp.org/rfcs/rfc6121.html#sub-request-inbound
Please provide a snippet of the part of the specification which we violate if possible: <blockquote>[...] if the contact has no available resources when the subscription request is received by the contact's server, then the contact's server MUST keep a record of the complete presence stanza comprising the subscription request, including any extended content contained therein (see Section 8.4 of [XMPP‑CORE]), and then deliver the request when the contact next has an available resource. </blockquote> Prosody keeps only the JID here. Please provide a link to the specification: http://xmpp.org/rfcs/rfc6121.html#sub-request-inbound
So this is also a blocker for PARS (https://xmpp.org/extensions/xep-0379.html) if the other party is currently offline?
Possible patch? https://matthewwild.co.uk/uploads/stdin-uNHnqoPw.diff
ChangesPossible fix for possible patch: https://prosody.im/pastebin/fa78b1fe-1978-4b64-8d8d-ed48ef9fafc0
Final fix, looks to be working https://prosody.im/pastebin/be7cc8ef-d22a-43ba-884f-49c0c7123e51
Test added: https://hg.prosody.im/trunk/rev/e41d8b12cb47
ChangesFixed in https://hg.prosody.im/trunk/rev/e50559a42dfe
ChangesAre there any chances to get this backported into 0.11? :)