Re: [Tools-discuss] question on datatracker access to particular I-D version

Brian E Carpenter <brian.e.carpenter@gmail.com> Sun, 19 July 2015 11:11 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 68BDC1ACCE5 for <tools-discuss@ietfa.amsl.com>; Sun, 19 Jul 2015 04:11:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 58f7TwRsf-2a for <tools-discuss@ietfa.amsl.com>; Sun, 19 Jul 2015 04:11:41 -0700 (PDT)
Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4B9151ACCE4 for <tools-discuss@ietf.org>; Sun, 19 Jul 2015 04:11:41 -0700 (PDT)
Received: by wibxm9 with SMTP id xm9so3789512wib.1 for <tools-discuss@ietf.org>; Sun, 19 Jul 2015 04:11:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:organization:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=vQRyTwGSMU/BQ2pxohPgaMRRuzD5ICZJ9qGAlKt1WzU=; b=qucb2ju/ixDRqCBajeRhwClWZl5Qh1bT80RBHPWWJyFOGQDFazowp1YU3QUPJxpGOD 7blF9pF3gFZIr5BxqHx+VVL1/iWY07syFMMihAppzkcuPwW8gvH0GXiKFTA5/lGzPVp5 3x649SgYgN0FJLq80caCUkBcQqS93sRtfzJwEl8K8B//UDAAAESXlNpLPpZjM7Zuapkj VwvlI/XmTPCsVk7VINy88LBnp4aCsQqyVT1p/yPEmuWFq8HppUhqLsivi+A73645Q8yz CTrpyXIVLr5Q39AI5L9Nmmcz8XO/UBlJoymwR2SKuBLlDsfEdvBzbrVyQPIFsElziC0a kRVA==
X-Received: by 10.194.121.100 with SMTP id lj4mr45539837wjb.104.1437304300075; Sun, 19 Jul 2015 04:11:40 -0700 (PDT)
Received: from ?IPv6:2001:67c:370:176:28cc:dc4c:9703:6781? ([2001:67c:370:176:28cc:dc4c:9703:6781]) by smtp.gmail.com with ESMTPSA id m10sm6556187wib.17.2015.07.19.04.11.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jul 2015 04:11:39 -0700 (PDT)
Message-ID: <55AB85ED.90103@gmail.com>
Date: Sun, 19 Jul 2015 23:11:41 +1200
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Organization: University of Auckland
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version: 1.0
To: Tony Hansen <tony@att.com>, Tools Team Discussion <tools-discuss@ietf.org>
References: <55AB80CF.2030307@att.com>
In-Reply-To: <55AB80CF.2030307@att.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/tools-discuss/n6gP1jl54ftv7hRxaEET4azJDj4>
Subject: Re: [Tools-discuss] question on datatracker access to particular I-D version
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss/>
List-Post: <mailto:tools-discuss@ietf.org>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 19 Jul 2015 11:11:43 -0000

It seems to me that there's a bug.

Go to https://datatracker.ietf.org/doc/draft-hansen-rfc-use-of-pdf/02/

The links for html and pdf formats bring up the -02 version, as expected.
The link for txt format brings up the latest version.

Regards
   Brian


On 19/07/2015 22:49, Tony Hansen wrote:
> I'm working on generating bibxml3 (bibxml for internet drafts) via
> django and the datatracker database.
> 
> Is there a way to pull up a >particular version< of an I-D on the
> datatracker via the URL?
> 
> That is, URLs such as
> 
> http://datatracker.ietf.org/doc/draft-hansen-rfc-use-of-pdf-02
> http://datatracker.ietf.org/doc/draft-hansen-rfc-use-of-pdf?version=02
> http://datatracker.ietf.org/doc/draft-hansen-rfc-use-of-pdf-02.txt
> http://datatracker.ietf.org/doc/draft-hansen-rfc-use-of-pdf/02
> 
> as opposed to
> 
> http://datatracker.ietf.org/doc/draft-hansen-rfc-use-of-pdf
> 
> which pulls up the final document and lets you get at the earlier
> versions after additional clicks.
> 
> 
>     Tony Hansen
> 
> Full discussion:
> 
> I'm also looking at the possibility of making an update to remove the
> <format> entries and replacing them with a target on the <reference>
> element.
> 
> I had *thought* that I could do this using a reference to the
> datatracker copy of the internet drafts. But there is an issue.
> 
> For each internet draft, e.g. draft-ietf-example-foo-*, there are at
> least two entries:
> 
>     reference.I-D.draft-ietf-example-foo-00.xml       
>     reference.I-D.ietf-example-foo.xml
> 
> That is, there is a specific entry for each version of the document with
> the complete name of the document and version, PLUS a single entry for
> the document >series< that does not have any version number or the
> leading "draft-" prefix. This last entry is updated whenever a new
> version is created
> 
> Picking a draft at random, and doing an ls -l on its variants shows this:
> 
> -r--r--r-- 1 tony tony      986 Jun 26  2014
> reference.I-D.draft-hansen-rfc-use-of-pdf-00.xml
> -r--r--r-- 1 tony tony     1096 Jul 21  2014
> reference.I-D.draft-hansen-rfc-use-of-pdf-01.xml
> -r--r--r-- 1 tony tony     1089 Jul 22  2014
> reference.I-D.draft-hansen-rfc-use-of-pdf-02.xml
> -r--r--r-- 1 tony tony      982 Oct 27  2014
> reference.I-D.draft-hansen-rfc-use-of-pdf-03.xml
> -r--r--r-- 1 tony tony      982 Jan 23 00:00
> reference.I-D.draft-hansen-rfc-use-of-pdf-04.xml
> -r--r--r-- 1 tony tony      983 Feb 17 00:00
> reference.I-D.draft-hansen-rfc-use-of-pdf-05.xml
> -r--r--r-- 1 tony tony     1089 Mar  9 00:00
> reference.I-D.draft-hansen-rfc-use-of-pdf-06.xml
> -r--r--r-- 1 tony tony     1090 Mar 25 00:00
> reference.I-D.draft-hansen-rfc-use-of-pdf-07.xml
> 
> -r--r--r-- 1 tony tony     1090 Mar 25 00:00
> reference.I-D.hansen-rfc-use-of-pdf.xml
> 
> 
> Currently the document series entry is always identical to the
> largest-numbered entry.
> 
> 
> The relevant bits of one of these files (-02) for this discussion are:
> 
> <reference anchor='I-D.hansen-rfc-use-of-pdf'>
>     <seriesInfo name='Internet-Draft'
> value='draft-hansen-rfc-use-of-pdf-02' />
>     <format type='TXT'
> target='http://www.ietf.org/internet-drafts/draft-hansen-rfc-use-of-pdf-02.txt'
> />
> </reference>
> 
> I could certainly do a direct move of the existing target so that we get
> 
> <reference anchor='I-D.hansen-rfc-use-of-pdf'
> target='http://www.ietf.org/internet-drafts/draft-hansen-rfc-use-of-pdf-02.txt'>
>     <seriesInfo name='Internet-Draft'
> value='draft-hansen-rfc-use-of-pdf-02' />
> </reference>
> 
> But that doesn't use the datatracker like I wanted.
> 
> I could make the document series entry different from the
> individual-document entry, as in:
> 
> <reference anchor='I-D.hansen-rfc-use-of-pdf'
> target='http://datatracker.ietf.org/doc/draft-hansen-rfc-use-of-pdf'>
>     <seriesInfo name='Internet-Draft'
> value='draft-hansen-rfc-use-of-pdf-07' />
> </reference>
> 
> 
> 
> But I don't know of any way to pull up a particular version of the I-D
> on the datatracker via the command line. That is, URLs such as
> 
> http://datatracker.ietf.org/doc/draft-hansen-rfc-use-of-pdf-02
> http://datatracker.ietf.org/doc/draft-hansen-rfc-use-of-pdf-02.txt
> http://datatracker.ietf.org/doc/draft-hansen-rfc-use-of-pdf/02
> 
> So, unless I can find a way to reference the individual version of a
> document on the datatracker, the individual-document entries would need
> to continue using the www.ietf.org/internet-drafts URL instead of a
> datatracker URL.
>