1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-22 01:02:17 -05:00

XEP-0060: Include publisher with item retrieval

Also remove extra whitespace
This commit is contained in:
Sam Whited 2016-12-08 15:08:26 -06:00
commit 1065c4b816

View File

@ -49,6 +49,12 @@
&stpeter; &stpeter;
&ralphm; &ralphm;
<revision>
<version>1.13.3</version>
<date>2016-12-08</date>
<initials>ss (XEP Editor: ssw)</initials>
<remark><p>Include publisher with any item retrieval.</p></remark>
</revision>
<revision> <revision>
<version>1.13.2</version> <version>1.13.2</version>
<date>2016-10-11</date> <date>2016-10-11</date>
@ -2717,6 +2723,23 @@ And by opposing end them?
</items> </items>
</event> </event>
</message> </message>
]]></example>
<p>If so, the service MUST also include the publisher with every other form of item retrieval.</p>
<example caption='Service returns items'><![CDATA[
<iq type='result'
from='pubsub.shakespeare.lit'
to='francisco@denmark.lit/barracks'
id='items1'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<items node='princely_musings'>
<item id='ae890ac52d0df67ed7cfdf51b644e901'
publisher='hamlet@denmark.lit'>
[ ... ENTRY ... ]
</item>
[ ... MORE ITEMS ... ]
</items>
</pubsub>
</iq>
]]></example> ]]></example>
<p>The value of the 'publisher' attribute MUST be generated by the service, not accepted by the service in the published item, since allowing the publisher to assert its JID would open the possibility of spoofing.</p> <p>The value of the 'publisher' attribute MUST be generated by the service, not accepted by the service in the published item, since allowing the publisher to assert its JID would open the possibility of spoofing.</p>
<p>The JID stamped by the service can be either (1) the full JID &LOCALFULL; of the publisher as taken the 'from' attribute of the IQ-set used to publish the item or (2) the bare JID &LOCALBARE; of the publisher as derived from a formal affiliation in the explicit list of whitelisted publishers.</p> <p>The JID stamped by the service can be either (1) the full JID &LOCALFULL; of the publisher as taken the 'from' attribute of the IQ-set used to publish the item or (2) the bare JID &LOCALBARE; of the publisher as derived from a formal affiliation in the explicit list of whitelisted publishers.</p>