🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Jonathan Grobe Thu, 17 Feb 2000 00:00
RFC 1036 Revision: Replaces/Supersedes/Xref Headers
#44171
Author: Jonathan Grobe
Date: Thu, 17 Feb 2000 00:00
414 lines
22097 bytes
  6.13.  Replaces / Supersedes ....................................    0
    6.13.1.  Syntax and Semantics .................................    0
    6.13.2.  Message-ID version procedure .........................    0
      6.13.2.1.  Message version numbers ..........................    0
      6.13.2.2.  Implementation and Use Note ......................    0
      6.13.2.3.  The Message-Version NNTP extension ...............    0
      6.13.2.4.  Examples .........................................    0
  6.14.  Xref .....................................................    0

6.13.  Replaces / Supersedes

   These two headers contain one or more message identifiers that the
   current article is expected to replace or supersede. All listed
   articles MUST be treated as though a "cancel" control message had
   arrived for the article (but observe that a site MAY choose not to
   honour a "cancel" message, especially if its authenticity is in
   doubt).

6.13.1.  Syntax and Semantics

   The  Replaces and Supersedes headers specify articles to be cancelled
   on arrival of this one. The content syntax makes use of syntax
   defined in [MESSFOR].

      Replaces-content    = msg-id *( CFWS msg-id )
      Replaces-header-parameter
                          = Usage-token "=" Usage-value
                            ; for USENET-header-parameters see 4.1
      Usage-token         = [CFWS] "usage" [CFWS]
      Usage-value         = [CFWS] ("replace" / "revise" / "repost" )
                               [CFWS]
      Supersedes-content  = msg-id

        NOTE: There is no "c" in "Supersedes".
[I could be persuaded of a better token than "usage". I did wonder about
"disposition". Observe that "usage" is also now used also in
message/news-transmission.]

   If an article contains a Replaces header, then the old articles
   mentioned SHOULD simply be deleted by the serving agent, as in a
   cancel message (7.5), and the new article inserted into the system as
   any other new article would be.

   A Replaces-header-parameter is only meaningful when it occurs within
   a Replaces-content. If its Usage-value is "revise" or "repost" (or if
   the Replaces-header-parameter is absent, then by default) reading
   agents SHOULD NOT show the article as an "unread" article unless the
   replaced article(s) were themselves all unread, except when the
   reader has configured his reading agent otherwise.

   Moreover, if a Usage-value is "revise" or "repost", serving agents
   that generate a local Xref header MUST then include additional
   "revise" or "repost" information as set out in section 6.14.



        NOTE: A replacement with "usage=replace" is intended to be used
        in the case of an article that is sufficiently different from
        its predecessors that it is advisable for readers to see it
        again.  A replacement with "usage=revise" is intended to be used
        in the case of a minor change, unworthy of being brought to the
        attention of a reader who has already read one of its
        predecessors. A replacement with "usage=repost" is intended to
        be used in the case of an article identical to the one replaced
        (but possibly being reposted because the earlier one had likely
        expired).

        NOTE: A reader who elects to ignore all the articles available
        in a newsgroup (perhaps on the occasion of accessing that
        newsgroup for the first time) will likely have them all marked
        as "already read", unless the reading agent provides a distinct
        mark such as "never offered". This could lead to a later
        replacement with "revise" or "repost" for one of those articles
        being missed.

   The Supersedes header is obsolescent, is provided only for
   compatibility with existing software, and may be removed entirely in
   some future version of this standard. Its meaning is the same as that
   of a corresponding Replaces header with its Replaces-header-parameter
   set to "usage=replace", and whenever a Supersedes header is provided
   a matching Replaces header SHOULD be provided as well. Observe that
   the Supersedes header makes provision for only a single msg-id.

   Until the Replaces header has become widely implemented, software
   SHOULD generate Replaces headers with only one msg-id, and cancel
   control messages SHOULD be issued if needed for further identifiers.
   Moreover, until that time, any article containing a Replaces header
   SHOULD contain also a Supersedes header (or alternatively be
   accompanied by a Control cancel message) for that same msg-id, to
   ensure that older systems still at least remove the predecessor.

   When a message contains both a Replaces and a Supersedes header they
   MUST be for the same msg-id.  Furthermore, to resolve any doubt, the
   Replaces header shall be deemed to take priority.

   Whatever security or authentication mechanisms are required for a
   Control cancel message MUST also be required for an article with a
   Replaces or Supersedes header. In the absence or failure of such
   checks, the article SHOULD be discarded, or at most stored as an
   ordinary article.
[We can write something more constructive in here as soon as the
situation with regard to cancel-locks and signed headers has been
clarified.]

6.13.2.  Message-ID version procedure

   Whilst this procedure is not essential for the operation of Netnews,
   it SHOULD be supported by all serving agents. However, for the
   procedure to work, all the msg-ids in the Replaces-content MUST be
   those of successive replacements of the same original article, and
   all be generated as described below.
[Whilst the procedure about to be described will undoubtedly work, it
must be pointed out that life would be much simpler if there was only a
single msg-id allowed in a Replaces-content.]

6.13.2.1.  Message version numbers

   According to [MESSFOR], and omitting the obsolete forms, the syntax
   of the left hand side of a msg-id (the part before the "@") is given
   by:

      id-left-side        = dot-atom-text / no-fold-quote

   Consider this to be replaced by:

      id-left-side        = ( atom-text / no-fold-quote )
                               *( dollars-sequence )
      dollars-sequence    = version-number / random-dollars-sequence
      version-number      = "$" %d118 "=" 1*DIGIT ; $v=digits
      random-dollars-sequence
                          = "$" 1*atom-text

   Whilst this is admittedly ambiguous ("$" is already a possible value
   of atom-text) and does not in fact change what is allowable as an
   id-left-side, it does serve to allow dollars-sequences such as
   version-number (and any others that may be added by extensions to
   this standard) to be distinguished within a message identifier and
   utilized by agents which can understand them.  Observe that no-fold-
   quotes cannot occur within a dollars-sequence.

   Posters and/or posting agents when replacing (or superseding)
   articles SHOULD arrange that the message identifier of the
   replacement follows the following convention, generating what are
   known as "version-number" message identifiers. This is to enable the
   new version of the article to be retrieved by its original message
   identifier, notably when it occurs in a URL of the form
   <news:message-identifier> [RFC 1738].

   1. If the id-left-side of the most recent predecessor's message
      identifier contains a leftmost version-number "$v=<n>", where <n>
      is an integer version number, possibly followed by one or more
      random-dollars-sequences, the replacement message identifier
      should be obtained by replacing the <n> with the integer <n+1> and
      providing a different random-dollars-sequence(s). For example
      <foo$v=3$XYZ@faq-site.example> becomes <foo$v=4$PQR@faq-
      site.example>.

   2. If the id-left-side of the predecessor's message identifier does
      not contain a version-number, the replacement message identifier
      should be obtained by appending the string "$v=1", preferably
      followed by a random-dollars-sequence(s), to that id-left-side.
      For example <foo@faq-site.example> becomes <foo$v=1$ABC@faq-
      site.example>.

   Any random-dollars-sequence so added MUST NOT start with "$<l>=" for
   any letter <l>.

        NOTE: The presence of a random-dollars-sequence following the
        version-number is intended to prevent a malicious poster from
        preempting the posting of a replacement article by guessing its
        likely message identifier.

   Attempts to fetch a replaced (or superseded) article by its message
   identifier SHOULD retrieve instead its most recent successor which
   has used the version-number convention. Some indication that a newer
   version than was asked for has been delivered SHOULD be provided.
   This is intended to ensure that "news:" URLs [RFC-1738] will continue
   to work even when an article has been replaced, but agents SHOULD
   then draw attention to the fact that the message identifier retrieved
   differed from that requested.

6.13.2.2.  Implementation and Use Note

[Here is the implementation technique that we discussed, based on the
use of a conventional History file. This is a sanity check for our own
use, not intended to go in the final text.

1. Ensure that the implementation of DBZ is not upset if the same key is
attempted to be stored a second time, and that such a key always
retrieves the latest record indexed by that key.

2. Additions to the History file are always made at the end. Removals or
changes to existing entries are only made by the expire program. An
entry for a Replaced (or otherwise cancelled) article will remain until,
first, the expire program removes the links to the articles that are no
longer stored, and later on removes the entire entry according to its
expiry date. For every entry containing a '$v=n' followed by random-
dollars-sequences there will be an immediately following entry identical
but for the omission of that '$v=n' and of the random-dollars-sequences.
Thus there may be several entries with identical message-ids but,
because of the change to DBZ just described, only the most recent will
ever be seen except by programs that access the History file directly,
rather than by its index.

3. When an article is Replaced, at the same time as the successor
article is entered into the History file, with '$v=7' say, a duplicate
entry (same article list) is entered under the same key, modified by
removing any leftmost '$v=n' and the following random-dollars-sequences
from it.

4. Provide a call to a routine which, if asked to retrieve any message
identifier with '$v=n' and finding it missing (or rather linked to no
stored groups), immediately tries again without the '$v=n' and its
random-dollars-sequences.  NOTE. We don't want this behaviour when
checking whether we already have an article offered to us by IHAVE, only
in response to an ARTICLE command. So this needs to be an extra call in
DBZ, in addition to the 'fetch' or 'dbzfetch' calls, to be used in the
proposed extension to the NNTP ARTICLE command. Observe that if the
requested '$v=n' is present and linked to stored articles (for whatever
reason) then you will be given exactly that version, even if later ones
are stored as well.

5. NOTE that I have dropped the idea of having '$v=0', because you can
never be sure that the very first issue of the FAQ used it, so you have
to provide the versionless root as well. If someone asks for '$v=0' (or
any '$v=n') the algorithm I gave will still find it via the root. So we
don't care what people put in URLs.

6. You are supposed to cancel the replaced/superseded article. If you
REALLY want to keep the old ones around a little longer, then this
implementation will not work if you want the latest to be retrieved
automatically - you will have to invent something much more complicated.

7. Having said all that, here follows a brief account of the same thing,
but short enough to be included in our document (the convention being
that implementation issues are hinted at, rather than being described in
full detail).]

   Typically, a news database will index a Replacement article both by
   its "version-number" message identifier (containing a "$v=" tag
   followed by a random-dollars-sequence) and by its "root" version
   (without the "$v=" tag or any following random-dollars-sequence).
   Thus when a request for an article comes in that is not present under
   the version-number requested, any article that is present and indexed
   by the corresponding root version can be retrieved instead. The
   indexing mechanism needs to be such that, although the root version
   may have at times referred to many different articles, it is always
   the latest that is retrieved.

        NOTE: The presence of a version-number in the message identifier
        of an article without a Replaces or Supersedes header causes no
        extra action (it is just an ordinary article). Observe also that
        if an article with the exact message identifier (even though it
        contains a version-number) is, for whatever reason, already
        present on the serving agent, that article will always be
        retrieved in preference to the one indexed by any root version.

6.13.2.3.  The Message-Version NNTP extension

   The following Service Extension to the NNTP protocol is defined in
   accordance with the framework set out in [NNTP], and is to be
   registered with IANA.

   Name of the extension:                             Message-Version
   Extension Label (for the LIST EXTENSIONS command): MESSAGE-VERSION
   Additional keywords, syntax and parameters:        None

   In a server supporting this extension, the behaviour of the ARTICLE,
   HEAD, BODY and STAT commands when the parameter is a <message-id> is
   modified as follows.

   If the specified article is available on the server then it (or its
   Head, Body or Status as appropriate) is returned in the normal
   manner.  Otherwise, if a leftmost id-left-side of the <message-id>
   (the part before the '@') contains "$v=<n>", where <n> is an integer
   version number, that "$v=<n>"and everything following it is stripped
   from that id-left-side and the article (Head, Body or Status) with
   the stripped <message-id> is returned instead.  Otherwise (no article
   is available under the original, or any stripped, <message-id>), a
   430 response is given as usual.

        NOTE: If the client is concerned to know whether the article
        found was exactly the one requested or a replacement article
        corresponding to a stripped <message-id>, then it has only to
        compare the <message-id> requested with that returned in the 220
        (221, 222, or 223) response. The intent of this extension is to
        enable the retrieval of the current version of an article (such
        as a regularly posted FAQ) referenced by a "news:" URL [RFC-
        1738] which quotes the <message-id> of an earlier version.

        NOTE: This extension has no effect on the IHAVE command.

6.13.2.4.  Examples

   Example 1. The first edition of a FAQ is posted with a message
   identifier of the form:  <examplegroup-faq@faq-site.example>. The
   next (but identical) version, a month later, has:

      Message-ID: <examplegroup-faq$v=1$A1b@faq-site.example>
      Replaces: <examplegroup-faq@faq-site.example> ; usage=repost
      Supersedes: <examplegroup-faq@faq-site.example>
   Observe the inclusion of a Supersedes header as well, it being
   presumed that the Replaces header was not yet widely implemented at
   that time.

   The next one, another month later (and with some significant changes
   justifying the use of "replace" rather than "repost") has:

      Message-ID: <examplegroup-faq$v=2$B2b@faq-site.example>
      Replaces: <examplegroup-faq$v=1$A1b@faq-site.example>
         <examplegroup-faq@faq-site.example> ; usage=replace
      Supersedes: <examplegroup-faq$v=1$A1b@faq-site.example>

   The next one, another month later, has:

      Message-ID: <examplegroup-faq$v=3$C3c@faq-site.example>
      Replaces: <examplegroup-faq$v=2$B2b@faq-site.example>
         <examplegroup-faq$v=1$A1b@faq-site.example> ; usage=repost
      Supersedes: <examplegroup-faq$v=2$B2b@faq-site.example>

   Note that the only reason to include more than one message identifier
   in the Replaces is in case a site had missed the previous
   Replacement. It is hardly necessary with such a long interval between
   the postings.

   Under the above, on systems using the version-number system (which is
   optional) requests for any message identifier in the chain will
   always return the most recent. As such the URL "news:examplegroup-
   faq@faq-site.example" will always work, making it suitable to appear
   in HTML documents.

   Example 2. A user posts a message <myuniquepart@mysite.example> to
   the net.  She notices a typo and, 2 minutes later, posts with:

      Message-ID: <myuniquepart$v=1$xxx@mysite.example>
      Replaces: <myuniquepart@mysite.example> ; usage=revise

   3 minutes later she sees another typo, and posts:

      Message-ID: <myuniquepart$v=2$yyy@mysite.example>
      Replaces: <myuniquepart$v=1$xxx@mysite.example>
         <myuniquepart@mysite.example> ; usage=revise

   The two bad versions will be replaced with the 3rd, even if a site
   never sees the 2nd due to batching or feed problems (thus the use of
   two message identifiers is quite useful in this case, in
   contradistinction to the first example). Requests for the original
   will return the 3rd.

6.14.  Xref

   The Xref header is a local header (4.2.2.3) which indicates where an
   article was filed by the last server to process it, and whether it is
   a Replacement (6.13) for an earlier article.

      Xref-content      = [CFWS] server-name 1*( CFWS location )
      server-name       = path-identity  ; see 5.6.1
      location          = newsgroup-name ":" article-locator
                             [ CFWS ( "revise" / "repost" )
                               ":" article-locator ]
      article-locator   = 1*( %x21-7E ) ; US-ASCII printable characters

   The server-name is included so that software can determine which
   serving agent generated the header. The locations specify what
   newsgroups the article was filed under (which may differ from those
   in the Newsgroups header) and where it was filed under them. The
   exact form of an article-locator is implementation-specific.

        NOTE: The traditional form of an article-locator is a decimal
        number, with articles in each newsgroup numbered consecutively
        starting from 1. NNTP demands that such a model be provided, and
        much other software expects it, but it seems desirable to permit
        flexibility for unorthodox implementations.

   Whenever an Xref header is created by an agent for an article which
   includes a Replaces header with "usage=revise" or "usage=repost"
   (6.13), it SHOULD include, within the location field of each
   newsgroup in the Newsgroups header of whichever of the old articles
   referenced in that Replaces header is still current, a corresponding
   "revise:<old-article-locator>" or "repost:<old-article-locator>" for
   the oldest article known to be being replaced, where <old-article-
   locator> is the article-locator under which that oldest article was
   filed. If the Replaces header has a "usage=replace" (explicit or
   implicit) the Xref header MUST NOT include any such reference to an
   <old-article-locator>.

        NOTE: This is to enable reading agents to avoid showing that
        article to users who have already read any of those older
        articles (see 6.13).  Because several replacements for a given
        article may arrive in the period between attempts by a reader to
        read a given newsgroup, it is useful to include the oldest one
        in the Xref header. The information necessary to determine this
        article can be obtained from the Xref header of the current
        version of the article just before it is deleted. Observe that a
        server that never received one of the replaced articles can
        still generate suitable information from whichever earlier
        version it actually has. This is why it is useful for a Replaces
        header to mention more than one earlier article, especially when
        replacements are being issued in quick succession.

        NOTE: "revise" and "repost" are case-insensitive.



   An agent inserting an Xref header into an article MUST delete any
   previous Xref header(s). A relaying agent MAY delete it before
   relaying, but otherwise it SHOULD be ignored (and usually replaced)
   by any relying or serving agent receiving it.

   An agent MUST use the same serving-name in Xref headers as the path-
   identity it uses in Path headers.


Re: RFC 1036 Revision: Replaces/Supersedes/Xref Headers
#44249
Author: Russ Allbery
Date: Sun, 20 Feb 2000 00:00
15 lines
1435 bytes
In news.admin.misc, Jeremy <bofh@netscum.dk> writes:

> I just read through it more closely, and I must agree.  This is going to
> be ignored in implementations as "not worth the effort."

I'm skeptical that it's possible to implement this particular feature
(Replaces without showing the article to a reader if they've already read
it) in a way that won't cause news software authors to run screaming, but
I'd love to hear people's ideas on how one could do it.  In a
cross-software way.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: RFC 1036 Revision: Replaces/Supersedes/Xref Headers
#44282
Author: Andrew Gierth
Date: Mon, 21 Feb 2000 00:00
34 lines
2276 bytes
> 6.13.  Replaces / Supersedes

From an implementation point of view I find much of this section
rather horrifying.

My biggest objections currently are:

  1. the message-id versioning stuff imposes significant constraints
     on the design of the history mechanism. The fact that it happens
     to be possible with INN's dbz is not a convincing argument.

  2. the requirement that Xref lines designate the article being
     replaced is a show-stopper for clustered systems - the hub system
     generating the Xref line has _no_ mechanism to determine the article
     number of the article being replaced (it likely does not store its
     own overviews, and the original article has likely expired).

  3. even on non-clustered systems, adding a revise: or repost: to the
     Xref is likely to be expensive, as it requires determining the
     article number given the message-id, which is an operation that is
     not normally required.

>    An agent MUST use the same serving-name in Xref headers as the path-
>    identity it uses in Path headers.

This is heavily violated in current use, and with some designs it may
be difficult to implement (consider the Diablo reader architecture for
example, where different articles may show different Path headers).

-- 
Andrew.

Re: RFC 1036 Revision: Replaces/Supersedes/Xref Headers
#44285
Author: Jeremy
Date: Mon, 21 Feb 2000 00:00
15 lines
1325 bytes
Andrew Gierth  <andrew@erlenstar.demon.co.uk> wrote:

>   2. the requirement that Xref lines designate the article being
>      replaced is a show-stopper for clustered systems - the hub system
>      generating the Xref line has _no_ mechanism to determine the article
>      number of the article being replaced (it likely does not store its
>      own overviews, and the original article has likely expired).

I just read through it more closely, and I must agree.  This is going to
be ignored in implementations as "not worth the effort."

-- 
Jeremy  (  jeremy@exit109.com  |  bofh@netscum.dk  )

Re: RFC 1036 Revision: Replaces/Supersedes/Xref Headers
#45121
Author: alfusco
Date: Mon, 20 Mar 2000 00:00
52 lines
2765 bytes
In article <87ln4f4531.fsf@erlenstar.demon.co.uk>, Andrew Gierth
<andrew@erlenstar.demon.co.uk> wrote:
>
> > 6.13. Replaces / Supersedes
>
> From an implementation point of view I find much of this section
> rather horrifying.
>
There are also problems with the proposed syntax for message
version numbers:
> 6.13.2.1. Message version numbers
>
> According to [MESSFOR], and omitting the obsolete forms, the syntax
> of the left hand side of a msg-id (the part before the "@") is given
> by:
>
> id-left-side = dot-atom-text / no-fold-quote
>
> Consider this to be replaced by:
>
> id-left-side = ( atom-text / no-fold-quote )
> *( dollars-sequence )
> dollars-sequence = version-number / random-dollars-sequence
> version-number = "$" %d118 "=" 1*DIGIT ; $v=digits
> random-dollars-sequence
> = "$" 1*atom-text
>
> Whilst this is admittedly ambiguous ("$" is already a possible value
> of atom-text) and does not in fact change what is allowable as an
> id-left-side, it does serve to allow dollars-sequences such as
> version-number (and any others that may be added by extensions to
> this standard) to be distinguished within a message identifier and
> utilized by agents which can understand them. Observe that no-fold-
> quotes cannot occur within a dollars-sequence.
>
This is not only ambiguous, it *does* change what is allowable as an id-
left-side. The following message id, which is allowed by the new
syntax, violates [MESSFOR] because the no-fold-quote must immediately
be followed by '@':
<"no-fold-quote"$v=1$foo@wxyz.com>
Additionally, the new syntax prohibits id-left-side from
containing '.', so a message id such as the following would be illegal:
<dot.atom.text$v=1$foo@wxyz.com>
--
Rick Wong
rwong@pensare.com


Sent via Deja.com http://www.deja.com/
Before you buy.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads