-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/6/13 9:18 AM, Adrien wrote: > Hi everybody, > > does this specification cover the case where one would like to > update an item? I don't find any explicit recommandation and I > wonder what implementation would be the best: > > - allow the owner or the original publisher to use "publish" again > with the same item identifier, so directly update the item; - > simulate an update via deleting the item and creating another one > with the same identifier. > > The first one is of course better, also it is atomic, but is it > conform to the specification?!
Yes, that's what XEP-0060 supports: "Note: If the publisher previously published an item with the same ItemID, successfully processing the request means that the service MUST overwrite the old item with the new item and then proceed as follows." http://xmpp.org/extensions/xep-0060.html#publisher-publish-success Peter - -- Peter Saint-Andre https://stpeter.im/ -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.19 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJSofvaAAoJEOoGpJErxa2pxCgP/j3EiXxX5FbOBX1L8hTO9fHA yC8ce4qhUgo+VEVFBgZN5Rzq0szeK2bEFi0Q2hCLc18MH8hoiW10uabkb7Y2+NGH 9+zxckjCPunpEpuBSo/DkFhRXMo67d5+0h5SRyypXH2WlEThWPtHUDTaC98He+4s 7iKY5ao4KXq7R9tux9sIZepHgpC1tSZHDl28Tx8IJvrkc1bqU1vZjBruzMW8f2MV ZQoaUMtc7F8Bufvrw6tGu5rEAi54rOdARrP8m6ZCVLXXfvTcTx9IRv+g7h5WzW3y IavtKgjar9u/uUt/pBrQuQUHc5+mAVMSit9JmnVYDkC3uQvzmlD1hFzY0TkskycX xFrcf1obfNkJQaV3Kj+mouwX8RK6cAn5W9hEN8RZbA5cjW03k9zZ5HFwvviroJuD WgYHf52vcioac7DtS1d/f0RGLUhyH8quzlrq7jIUXSJSaCzL5UFbUD/gzX9H2p0S MdSlvqtxvlrBMxMOwpUOtZnknbsBoZqyXsbrzXGAVrHqIkmSxTKhdW1r6JvnjhPj ZtbP/MwxwHkd/JwMx7jr5HSRpSsWuCUR4vWTutl6VYDFlRUTKEYodJcinZ0Qd+xO +gN2zg5+rT4GJa8rNmt12A5+JkNrRp4+PheLQeUOhMFDqw7CMHAJTciUbuEoyemc n1g50RaVJCCbX9uih5ME =hQwL -----END PGP SIGNATURE-----
