Hi,

this question came up when discussing the server side implementation of
pubsub#item_expire: Is expiry relative to original creation or to last
modification?

It looks like both options can make sense, but in most cases, last
modification is more useful, e.g. when a singleton node is updated or in
case of redacted blog posts.

Also, the standard already says, that re-publication were equivalent to
modification:

> Note: If a publisher publishes an item with an Item ID and the ItemID
> matches that of an existing item, the pubsub service MUST NOT fail the
> publication but instead MUST overwrite the existing item and generate
> a new event notification (i.e., re-publication is equivalent to
> modification).

To implement an absolute deadline of an item, the expiry time is not
useful anyway, because it is a per node option, not a per item one. In
such cases, the publisher should remove the node when time comes.

In any case, the standard should clear about what is intended.
Patch attached.

Cheers, Martin
diff --git a/xep-0060.xml b/xep-0060.xml
index 09638a6b..d5ea9ce7 100644
--- a/xep-0060.xml
+++ b/xep-0060.xml
@@ -3569,7 +3569,7 @@ And by opposing end them?
           <value>10</value>
         </field>
         <field var='pubsub#item_expire' type='text-single'
-               label='Time after which to automatically purge items. `max` for no specific limit other than a server imposed maximum.'>
+               label='Time after which to automatically purge items after last modification. `max` for no specific limit other than a server imposed maximum.'>
           <value>604800</value>
         </field>
         <field var='pubsub#subscribe' type='boolean'
@@ -3911,7 +3911,7 @@ And by opposing end them?
           <value>10</value>
         </field>
         <field var='pubsub#item_expire' type='text-single'
-               label='Time after which to automatically purge items. `max` for no specific limit other than a server imposed maximum.'>
+               label='Time after which to automatically purge items after last modification. `max` for no specific limit other than a server imposed maximum.'>
           <value>604800</value>
         </field>
         <field var='pubsub#subscribe' type='boolean'
@@ -6507,7 +6507,7 @@ xmpp:pubsub.shakespeare.lit?pubsub;action=retrieve;node=princely_musings;item=ae
          label='A description of the node'/>
   <field var='pubsub#item_expire'
          type='text-single'
-         label='Number of seconds after which to automatically purge items. `max` for no specific limit other than a server imposed maximum.'/>
+         label='Number of seconds after which to automatically purge items after last modification. `max` for no specific limit other than a server imposed maximum.'/>
   <field var='pubsub#itemreply'
          type='list-single'
          label='Whether owners or publisher should receive replies to items'>
_______________________________________________
Standards mailing list
Info: https://mail.jabber.org/mailman/listinfo/standards
Unsubscribe: [email protected]
_______________________________________________

Reply via email to