Am 11.06.2014 20:16, schrieb Graham King:
Hi,

In XEP-0030 (Service Discovery - http://xmpp.org/extensions/xep-0030.html#security), it says 
"the server MUST return a <service-unavailable/> error if":

The requesting entity is not authorized to receive presence from the target entity (i.e., via a 
presence subscription of type "both" or "from")

That reads to me like the requesting entity needs a "both" or "from" subscription. That 
wouldn't make sense though, because a "from" would imply the target is not sharing presence with 
the requesting entity. To make it work I read it like this, capitals my additions:

The requesting entity is not authorized to receive presence from the target entity (i.e., via [THE 
TARGET HAVING] a presence subscription [TO THE REQUESTING ENTITY] of type "both" or 
"from")

Is this a correct reading? From the code I think this is how Prosody interprets 
it, and it makes intuitive sense (to me at least!). If this reading is correct, 
could I submit a patch to the XEP to clarify?

I thought I had an open issue with this because the requesting entity might also be authorized via directed presence... but can't find it right now.

I like "sharing presence with the requesting entity". This covers both presence subscriptions and directed presence.

Reply via email to