news: URIs are mangled (RFC 5538)
Categories
(MailNews Core :: Networking: NNTP, defect)
Tracking
(Not tracked)
People
(Reporter: psychonaut, Unassigned)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file)
82.27 KB,
image/jpeg
|
Details |
Comment 1•14 years ago
|
||
Comment 2•14 years ago
|
||
Comment 3•14 years ago
|
||
Reporter | ||
Comment 4•14 years ago
|
||
Comment 5•14 years ago
|
||
Comment 6•14 years ago
|
||
Comment 7•14 years ago
|
||
Updated•14 years ago
|
Reporter | ||
Comment 8•13 years ago
|
||
Comment 9•13 years ago
|
||
Reporter | ||
Comment 10•13 years ago
|
||
Comment 11•13 years ago
|
||
Comment 12•12 years ago
|
||
Updated•12 years ago
|
Updated•12 years ago
|
Comment 13•11 years ago
|
||
Comment 14•9 years ago
|
||
Comment 15•9 years ago
|
||
Reporter | ||
Comment 16•9 years ago
|
||
Comment 17•9 years ago
|
||
Comment 18•9 years ago
|
||
Comment 19•9 years ago
|
||
Comment 20•9 years ago
|
||
Reporter | ||
Comment 21•6 years ago
|
||
Comment 22•6 years ago
|
||
TCW, can you (I hope) do some considlidation work, marking duplicates as needed, for Comment 19, comment 20, and also referencing dependencies here and in bug 108948 and bug 327885 - and by extension decide which one gets to say open?
Comment 23•6 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #22)
TCW, can you (I hope) do some considlidation work, marking duplicates as needed, for Comment 19, comment 20, and also referencing dependencies here and in bug 108948 and bug 327885 - and by extension decide which one gets to say open?
I was trying to repro this news:/// and news: thing but my work work PC is not setting TB as Default for Mail / News for some reason even when I set it to do so via Windows "Choose an App" dialogue box.
I had previously had SM installed with it handling NEWS links an such but after uninstalling SM, I tried to make TB the default app / handler for NEWS and it's not letting me, even with Admin privileges. I'll try at home later and see what happens.
I'm also struggling to find some reference news: and news:// links to test with. Anyone have some handy? Google's turning up zero. =\
Comment 24•6 years ago
|
||
Bug 745856 is probably somewhat related to bug 11076.
Comment 25•6 years ago
|
||
(In reply to Arthur K. from comment #23)
I'm also struggling to find some reference news: and news:// links to test with. Anyone have some handy? Google's turning up zero. =\
Perhaps Joshua
Comment 26•6 years ago
|
||
Well, at home I tried Tools > Options > Advanced > System Integration > Check Now button > Use Thunderbird as the default client for: > E-Mail and Newsgroups checked > click Set As Default and....and nothing happened. I went back and both boxes were unchecked. So it's a bug / regression I am guessing.
Error Console spit this out:
TypeError: listbox is nullgdata-migration.js:17:21
<anonymous> chrome://gdata-provider/content/gdata-migration.js:17
_fireButtonEvent chrome://global/content/bindings/dialog.xml:433
_doButtonCommand chrome://global/content/bindings/dialog.xml:407
_handleButtonCommand chrome://global/content/bindings/dialog.xml:395
Comment 27•6 years ago
|
||
Sorry, if you want me to file this as a new bug, just say the word.
Comment 28•6 years ago
|
||
Opened bug 1568550 in relation to comment 26 as it may be related to this bug in that TB is not setting itself as the default app to handle news:// and related links.
Reporter | ||
Comment 29•6 years ago
|
||
(In reply to Arthur K. from comment #23)
I was trying to repro this news:/// and news: thing but my work work PC is not setting TB as Default for Mail / News for some reason even when I set it to do so via Windows "Choose an App" dialogue box.
Is this really necessary? The problem described in this bug report is that the URIs get rewritten by the browser. You don't need a news client to test this. If checking the URI in the status bar in the browser isn't a surefire way, then you could always write a one-line shell script that simply echoes its arguments to a temp file, and then set that shell script as the default handler for the news: protocol.
I'm also struggling to find some reference news: and news:// links to test with. Anyone have some handy? Google's turning up zero. =\
RFC 5538 contains several example URIs, albeit with placeholder newsgroups and news servers.
If you want some examples with functioning real-world names, then one example of a valid news: URI is as follows:
This refers to the newsgroup comp.lang.c. A news client should process this by, for example, displaying the messages in the newsgroup by fetching them from some predetermined news server.
Another example of a valid news: URI is as follows:
news://nntp.aioe.org/comp.lang.c
This also refers to the newsgroup comp.lang.c. A news client should process this by, for example, displaying the messages in the newsgroup by fetching them from the news server nntp.aioe.org. (This is a free public news server whose terms of use can be found at http://news.aioe.org/.)
Comment 30•6 years ago
|
||
(In reply to Tristan Miller from comment #29)
(In reply to Arthur K. from comment #23)
I was trying to repro this news:/// and news: thing but my work work PC is not setting TB as Default for Mail / News for some reason even when I set it to do so via Windows "Choose an App" dialogue box.
Is this really necessary? The problem described in this bug report is that the URIs get rewritten by the browser. You don't need a news client to test this. If checking the URI in the status bar in the browser isn't a surefire way, then you could always write a one-line shell script that simply echoes its arguments to a temp file, and then set that shell script as the default handler for the news: protocol.
I'm also struggling to find some reference news: and news:// links to test with. Anyone have some handy? Google's turning up zero. =\
RFC 5538 contains several example URIs, albeit with placeholder newsgroups and news servers.
If you want some examples with functioning real-world names, then one example of a valid news: URI is as follows:
This refers to the newsgroup comp.lang.c. A news client should process this by, for example, displaying the messages in the newsgroup by fetching them from some predetermined news server.
Another example of a valid news: URI is as follows:
news://nntp.aioe.org/comp.lang.c
This also refers to the newsgroup comp.lang.c. A news client should process this by, for example, displaying the messages in the newsgroup by fetching them from the news server nntp.aioe.org. (This is a free public news server whose terms of use can be found at http://news.aioe.org/.)
Thanks for the real-world server. I was having a tough time finding a working free nntp server as many have long since shut down.
I know the origins of this bug are originally Seamonkey related but I have TB 68.0b5 installed alongside FF 68.0.1 and TB is handling my Newsreader stuff so invocation should function the same I would think. I suppose it wouldn't be too hard to just generate a simple test HTML with mangled and non-mangled syntax and see what happens. So I did exactly that. Thankfully with the news://nntp.aioe.org/comp.lang.c example, it seemed to have worked fine. When I clicked the link, it prompted me to subscribe, which I did, but the server did not immediately appear in the Folder Pane. It did after I restarted TB.
But here's where things get a bit weird behaviorally. I'm taking a leap of faith that it's somewhat related to what's happening in this bug. If you guys feel differently (or if I'm making unrelated noise), I'll open another bug and apologize in advance.
I. Based on the server info Tristan provided, I created two links where, I believe, A should be the correct syntactical formatting and B should be incorrect syntactical formatting:
A. news://nntp.aioe.org/comp.lang.c
B. news:///nntp.aioe.org/comp.lang.c
II. I created and published a simple HTML document with clickable links to A & B.
<html><body>
<a href="news://nntp.aioe.org/comp.lang.c">news://nntp.aioe.org/comp.lang.c</a><p>
<a href="news://nntp.aioe.org/comp.lang.c">news:///nntp.aioe.org/comp.lang.c</a>
</body></html>
III. I emailed A and B to myself.
IV. When I click on A from within an email message, all works fine. When I click on B from within an email message, nothing happens. Seems correct.
V. When I click on A from the web page, all works fine. When I click on B from the web page, nothing happens. Seems correct.
VI. Here's where it falls over for me. If I click B from within an email message, nothing happens. But if I immediately go to the web page and click B, it invokes TB to want to subscribe and download headers. It shouldn't. Conversely, if I first click B from the web page (nothing happens) and then click B from an email, nothing happens. Which is correct behavior.
Comment 31•6 years ago
|
||
Oops. I see one error already. Sorry.
Is supposed to be <a href="news:///nntp.aioe.org/comp.lang.c">news:///nntp.aioe.org/comp.lang.c</a>
Comment 32•6 years ago
•
|
||
News and NNTP URIs are defined in RFC 5538: https://tools.ietf.org/html/rfc5538
The nntp URL is:
nntp://[userinfo@]host[:port]/group[/article-number]
The authority is optional in news: URIs, and they can refer to either a newsgroup name (more specifically, a newsgroup wildmat), or a newsgroup message ID:
news:[//[userinfo@]host[:port]/]<newsgroup name>
news:[//[userinfo@]host[:port]/]<msg-id>
So the following URLs all reference m.d.a.t:
news:mozilla.dev.apps.thunderbird
news://news.mozilla.org/mozilla.dev.apps.thunderbird
nntp://news.mozilla.org/mozilla.dev.apps.thunderbird
And the following URLs all reference (at this time) the newest message in that newsgroup:
news:VJudnUQgWaGUwa7AnZ2dnUU7-X3NnZ2d@mozilla.org
news://news.mozilla.org/VJudnUQgWaGUwa7AnZ2dnUU7-X3NnZ2d@mozilla.org
nntp://news.mozilla.org/mozilla.dev.apps.thunderbird/16191
Comment 33•2 years ago
|
||
- Emacs allows
nntp:
links with Message-ID: https://www.gnu.org/software/emacs/manual/html_node/url/news_002fnntp_002fsnews.html - Links without host name may be ambiguous in the case of multiple news accounts. Another case is a single server where another set of newsgroups is hosted, so links become invalid.
Updated•2 years ago
|
Reporter | ||
Comment 34•1 year ago
|
||
No longer reproducible with SeaMonkey 2.53.17.
No longer reproducible with Firefox 117.0.
Still reproducible with Thunderbird 115.2.0.
Description
•