[PubSub] replyto madness

Peter Saint-Andre stpeter at stpeter.im
Mon Apr 20 14:00:36 CDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

XEP-0060 currently uses an Extended Stanza Addressing (XEP-0033) field
of "replyto" as a way of indicating the publisher of an item:

<message from='pubsub.shakespeare.lit'
         to='bassanio at merchantofvenice.lit'>
  <event xmlns='http://jabber.org/protocol/pubsub#event'>
    <items node='n48ad4fj78zn38st734'>
      <item id='i1s2d3f4g5h6bjeh936'>
        <geoloc xmlns='http://jabber.org/protocol/geoloc'>
          <description>Venice</description>
          <lat>45.44</lat>
          <lon>12.33</lon>
        </geoloc>
      </item>
    </items>
  </event>
  <addresses xmlns='http://jabber.org/protocol/address'>
    <address type='replyto' jid='portia at merchantofvenice.lit'/>
  </addresses>
</message>

I would strongly prefer to get rid of this and to instead define a new
'publisher' attribute on the <item/> element:

<message from='pubsub.shakespeare.lit'
         to='bassanio at merchantofvenice.lit'>
  <event xmlns='http://jabber.org/protocol/pubsub#event'>
    <items node='n48ad4fj78zn38st734'>
      <item id='i1s2d3f4g5h6bjeh936'
            publisher='portia at merchantofvenice.lit'>
        <geoloc xmlns='http://jabber.org/protocol/geoloc'>
          <description>Venice</description>
          <lat>45.44</lat>
          <lon>12.33</lon>
        </geoloc>
      </item>
    </items>
  </event>
</message>

My reasoning: it's possible that a notification might include multiple
items, and each item might have a different publisher. Also, I think the
 replyto might get lost if items are forwarded, aggregated through a
collection node, etc. Better, I think, to keep the publisher info with
the item.

Are there any objections?

Peter

- --
Peter Saint-Andre
https://stpeter.im/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknsxlMACgkQNL8k5A2w/vx3IwCff79QsoErbGomiaMHcLnbmU4c
OgkAmwanf5YDf2Rklaan6TjcvTQlkloS
=LSQ9
-----END PGP SIGNATURE-----


More information about the PubSub mailing list