Bug#706778: debian-policy: Please explicitly forbid "-" at the start of Deb822 field names
- To: 706778@bugs.debian.org
- Cc: Niels Thykier <niels@thykier.net>
- Subject: Bug#706778: debian-policy: Please explicitly forbid "-" at the start of Deb822 field names
- From: Charles Plessy <plessy@debian.org>
- Date: Fri, 18 Oct 2013 08:06:06 +0900
- Message-id: <[🔎] 20131017230606.GA5517@aqwa.igloo>
- Reply-to: Charles Plessy <plessy@debian.org>, 706778@bugs.debian.org
- In-reply-to: <20130922103919.GB1557@falafel.plessy.net>
- References: <20130504182750.30206.83472.reportbug@mikazuki.thykier.net> <20130506022008.GA11083@gaara.hadrons.org> <877gjc688j.fsf@windlord.stanford.edu> <20130916023214.GB30744@falafel.plessy.net> <20130916134551.GA21127@gaara.hadrons.org> <20130922103919.GB1557@falafel.plessy.net>
Le Sun, Sep 22, 2013 at 07:39:19PM +0900, Charles Plessy a écrit :
> Le Mon, Sep 16, 2013 at 03:45:51PM +0200, Guillem Jover a écrit :
> > On Mon, 2013-09-16 at 11:32:14 +0900, Charles Plessy wrote:
> > >
> > > </p><p><taglist>
> > > +<tag>5.1</tag>
> > > + <item>Control data fields must not start with the hyphen character
> > > + (<tt>-</tt>) because it interferes with clearsigning control data files.
> > > + </item>
> > > <tag>5.4, 5.6.24</tag>
> > > <item><tt>Checksums-Sha1</tt> and <tt>Checksums-Sha256</tt> are now
> > > mandatory in <file>.dsc</file> files.
> >
> > Strictly speaking the problem is with (all?) deb822 parsers that do
> > not dash-unescape clearsigned messages not with the possibly
> > dash-escaped control files, proper dash-escaping is there precisely
> > to avoid any interference from initial dashes.
> >
> > And the reason to ban initial hyphens is because they do not make
> > sense in field names and I don't think it's worth updating all
> > parsers.
>
> I will replace "because it interferes with clearsigning control data files" by
> "to avoid potential confusions when parsing clearsigned control data files that
> were not properly unescaped".
Pushed with that change, cheers.
--
Charles Plessy
Tsurumi, Kanagawa, Japan
Reply to: