🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82906

Re: Cleanfeed question - HTTP type URLs

#82906
From: D. Stussy
Date: Wed, 10 Mar 2010 01:44
113 lines
5667 bytes
"Matija Nalis" <mnalis-news@voyager.hr> wrote in message
news:slrnhpda2k.3b7.mnalis-news@eagle102.home.lan...
> On Sun, 7 Mar 2010 16:36:22 -0800, D. Stussy
<spam+newsgroups@bde-arc.ampr.org> wrote:
> > "Matija Nalis" <mnalis-news@voyager.hr> wrote in message
> >> My reading of RFC3986 [STD0066] section 3.2.2. is that "host" part of
the
> >> URI is that that only IPv6 ("and later") address literals are
bracketed in
> >> "[]", and that IPv4 address literals are not.
> >>
> >> So http://127.0.0.1/ *is* technically valid, while http://[127.0.0.1]/
is *not*.
> >>
> >> Or do you have some other insights ?
> >
> > Yes.  When IPv4 addresses take the place of a domain name, they need to
be
> > bracketed.  Such is true for other things such as mailboxes, the HELO
> > parameter in SMTP, etc.,....
>
> That is RFC2821 SMTP standard, it has no implication for HTTP URIs we
were
> talking above ("http://127.0.0.1/" vs. "http://[127.0.0.1]/")

You completely missed the point.  The URI syntax is required to cover ALL
types of URIs, and that includes the "mailto" scheme, which DOES fall under
the jurisdiction of STD 10 as its remainder is a destination mailbox.
Mailboxes require IP address literals to be bracketed.  The syntax given
omits such.

Even if you choose not to reach so far, RFC 3986 itself states that IP
address literals are to be bracketed (in the text, and that means ALL
literals, not just IPv6 ones).  The ABNF syntax given is not consistent
with the textual statement.

> When IPv4 addresses take the place in various protocols used on
computers,
> they often take other forms. For example:
>
> In RFC1035, IPv4 address must be specified as 4-byte raw values in
network
> byte order with adequate RDATA TYPE for it.

Non-sequitur:  URIs are HUMAN-READABLE forms, not machine readable forms.

> In RFC3308, IPv4 address must be specified as dotted-quad string value
> prefixed with "ip4:" string.
>
> In RFC4545, IPv4 address must be specified as combined entries of
> AddressFamilyNumbers and AuthAddress.
>
> and many, many more...
>
> As you see, they way IPv4 address is specified in one protocol, will
often
> look somewhat (or completely) different in other protocol. The fact that
few
> of them *might* look somewhat similar, is no particularly good reason to
call
> for "grand unification" (although it would be nice, the trouble of
changing
> all that programs would IMHO far outweighs any potential benefit)

One word:  Consistency.

> > I agree that many implementations accept the unbracketed form, but that
> > doesn't mean it's correct.
>
> It means they follow RFC3986, which is (or should be) authoritative in
how
> URIs should be used. So, I would call such behavior "correct" until such
> time an errata for RFC3986 is issued, or RFC3986 is obsoleted or updated
by
> another URI standard.
>
> > The syntax for RFC 3986 for "IP-literal" is wrong.  It should be:
> >
> >   IP-literal = "[" ( IPv4address / IPv6address / IPvFuture  ) "]"
>
> If by "wrong" you mean "a typo in RFC3986", I do not think so. It
> explicitly says in many ways in section 3.2.2 of RFC3986, both in English
> and in BNF. I think that BNF written was exactly what they meant when
they
> wrote it.

No, it's not.  They said that IP address literals would be bracketed; not
just some of them.  They also failed to recognize that for one type of URI,
bracketing even IPv4 literals is a requirement - the  "mailto" scheme.

> If, however, by "wrong" you mean "I would like it to be different", that
may
> be (and I might agree), but that does not change the fact that it is
*NOT*
> the way *current* standards say it should be done (and hence, NOT how
most of
> the programs implement it).

Don't try to attribute to me things I didn't say.  I said they are wrong
because the syntax doesn't cover all the forms as designated by the other
standards documents.  It's not that I want it to be different.  It's that
it FAILS to properly define one of the possible formats which other
standards require.

> If you want things to be done that way, you should work with IETF to pass
> standard which says so, and then work with implementors to implement it.
> Breaking standards because "it looks more aesthetic that way" or "would
be
> more universal" is IMHO definitely *NOT* a way to go.

I can't break a standard which itself is broken.

Technical Details
Message-ID: <hn6tjb$j4o$1@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.news-service.com!news.k-dsl.de!news.snarked.org!not-for-mail
References: <hmmvaq$kfh$1@snarked.org> <slrnhp82vn.dgn.mnalis-news@eagle102.home.lan> <hn1grt$t4r$1@snarked.org> <slrnhpda2k.3b7.mnalis-news@eagle102.home.lan>

Show Full Headers
Complete Article Headers
Message-ID: <hn6tjb$j4o$1@snarked.org>
Subject: Re: Cleanfeed question - HTTP type URLs
Date: Tue, 9 Mar 2010 17:44:56 -0800
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
References: <hmmvaq$kfh$1@snarked.org> <slrnhp82vn.dgn.mnalis-news@eagle102.home.lan> <hn1grt$t4r$1@snarked.org> <slrnhpda2k.3b7.mnalis-news@eagle102.home.lan>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!feeder.news-service.com!news.k-dsl.de!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 113
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-118-48-27.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1268185516 19608 71.118.48.27 (10 Mar 2010 01:45:16 GMT)
X-Complaints-To: newsmaster+complaints@snarked.org
NNTP-Posting-Date: Wed, 10 Mar 2010 01:45:16 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478