Closed
Bug 89939
Opened 23 years ago
Closed 16 years ago
URI-parser fails for news:message-id
Categories
(MailNews Core :: Networking: NNTP, defect)
MailNews Core
Networking: NNTP
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: bratell, Unassigned)
References
(Blocks 2 open bugs, )
Details
news:3B48D5FC.3030004@sc.rr.com is a normal news-URI, but the URI-parser thinks
that "news" is a host and 3 the port number. This is because
ExtractPortFrom returns 3 when it gets "3B48D5FC.3030004@sc.rr.com" as input.
The result was an assertion "missing scheme". Since the only use this time was
to see if the url was an url (and could be turned into a link in the mail) there
was no harm.
Comment 1•23 years ago
|
||
It looks as if the parser thinks news: URLs should be parsed according to the
generic URI syntax (<scheme>://<remainder-of-URL>), when in fact news, like
mailto, uses only the colon.
Comment 2•23 years ago
|
||
I believe that news will have to implement their own uri parser to avoid this.
Comment 3•23 years ago
|
||
reassigning to default owner.
Assignee: neeti → sspitzer
Component: Networking → Networking - News
Product: Browser → MailNews
QA Contact: benc → stephend
Comment 4•23 years ago
|
||
this is a dup, I think. accepting until I find it.
we aren't handling news:message-id or news:group urls correctly yet.
news://host/message-id and news://host/group urls do work.
Status: NEW → ASSIGNED
Bug 36662 may be one of them.
The :// format is supposed to be used for NNTP, news uses the ":", (more
familiarly used in mailto:).
This requested format is the RFC 1738 format.
*** Bug 87615 has been marked as a duplicate of this bug. ***
Comment 9•23 years ago
|
||
The 4xp keyword should be added because with this king of URI, Netscape 4.76
displays the message.
Keywords: 4xp
*** Bug 99287 has been marked as a duplicate of this bug. ***
Comment 11•23 years ago
|
||
bug 99081 also deals with the uri-parser problem and has a patch. However it
will move news:3B48D5FC.3030004@sc.rr.com to news://3B48D5FC.3030004@sc.rr.com/
as it is done with a nsIURL implementation when it should be based on nsIURI.
Comment 12•23 years ago
|
||
news://host/message-id and news://host/group urls *do* work, but they
*shouldn't*! The RFC <http://www.w3.org/Addressing/rfc1738.txt> states quite
clearly:
A news URL takes one of two forms:
news:<newsgroup-name>
news:<message-id>
...
A nntp URL take the form:
nntp://<host>:<port>/<newsgroup-name>/<article-number>
...
Note that while nntp: URLs specify a unique location for the article
resource, most NNTP servers currently on the Internet today are
configured only to allow access from local clients, and thus nntp
URLs do not designate globally accessible resources. Thus, the news:
form of URL is preferred as a way of identifying news articles.
Comment 13•23 years ago
|
||
It's really weird. news URLs used internally are basically nntp. nntp URLs often
go to the OS, which in some builds returns Outlook Express?!
Comment 14•23 years ago
|
||
the fix for bug 99081 is now checked in, the urlparser no longer fails for such
news urls. However the news <-> nntp issue remains.
Blocks: 108948
Comment 15•23 years ago
|
||
*** Bug 108877 has been marked as a duplicate of this bug. ***
Comment 16•23 years ago
|
||
I don't think that this bug blocks bug 61521, because in that bug, we can use
nntp: URIs with *hostnames* and msgids, which work already (I think).
No longer blocks: 61521
Comment 17•23 years ago
|
||
It seems to me that this bug depends on bug 16343. Of course, the parser could
handle this kind of URI without knowing a default news server, but then we
cannot do anything with this.
pi
*** Bug 153918 has been marked as a duplicate of this bug. ***
Comment 20•22 years ago
|
||
What's the status of this bug ?
Comment 21•22 years ago
|
||
Changing summary to something better to find and more descriptive.
Right now, when you click on a news URI nothing happens due to bug 108877. The
problem as described originally, disappeared. Does this mean WFM?
For the problem that news://host should really be nntp://host I sugest to
support both since in practice most people use the incorrect news://host. IOW:
make news: and nntp: identical.
pi
Summary: URI-parser fails for news:3B48D5FC.3030004@sc.rr.com → URI-parser fails for news:message-id
Comment 22•22 years ago
|
||
I have to correct my previous remark. It does not work. A slash is appended to
the URL:-( So is this a dupe of bug 77195 as suggested previously?
pi
Comment 24•21 years ago
|
||
No. This is only about understanding the URI, not doing anything with it.
No longer depends on: 112422
Updated•20 years ago
|
Product: MailNews → Core
Comment 25•20 years ago
|
||
*** Bug 272637 has been marked as a duplicate of this bug. ***
Updated•18 years ago
|
Assignee: sspitzer → nobody
Status: ASSIGNED → NEW
QA Contact: stephend
Comment 26•17 years ago
|
||
Note that RFC 3986 has obsoleted RFC 1738. (See <ftp://ftp.rfc-editor.org/in-notes/rfc3986.txt>.)
Re comment #12: In Thunderbird, go to the Folders pane and select a newsgroup. Get the pull-down context menu (right-click on a PC) and select "Copy Folder Location". Paste the result in a text editor window.
For the newsgroup mozilla.dev.extensions on the news.mozilla.org server, the result is <news://news.mozilla.org:119/mozilla.dev.extensions>. Note that this indicates the news protocol, not the nntp protocol. Is this a bug in Thunderbird, or is this the appropriate URI?
Comment 27•17 years ago
|
||
Actually, I think we should implement <http://www.karlsruhe.org/rfc/draft-ellermann-news-nntp-uri-05.txt>, making a clear distinction between news: and nntp:.
(This was planned as an optional part of the SoC project (bug 377250), but will most likely not be attacked due to time constraints.)
Comment 28•17 years ago
|
||
A strict implementation of the draft RFC cited in comment #27 means that Thunderbird is in error per my comment #26. This is addressed in bug #226890 (see comments there starting with 3).
Note that the draft RFC expires tomorrow.
Updated•17 years ago
|
QA Contact: networking.news
Comment 29•16 years ago
|
||
Updated RFC URI. And no, the URI will no longer be invalid per spec.
Anyways, the URI parser doesn't fail with any assertion, so marking WFM.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•