Closed Bug 238688 Opened 20 years ago Closed 20 years ago

Cannot subscribe to newsgroups with a + in its name

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
All
defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stach, Assigned: neil)

References

Details

(Keywords: regression, verified1.7, Whiteboard: fixed-aviary1.0)

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040325
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040325

This happens only to groups with + in their name.
Like comp.lang.c++.moderated for example.
If you click Subscribe or try to check the checkbox, nothing happens.


Reproducible: Always
Steps to Reproduce:
*** Bug 239042 has been marked as a duplicate of this bug. ***
Confirming with Linux and a CVS build from yesterday. The JavaScript console
reports the following error when trying to subscribe to a group with a + in its
name by clicking on the corresponding checkmark:

Error: uncaught exception: [Exception... "Component returned failure code:
0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsITreeView.cycleCell]"  nsresult:
"0x80004001 (NS_ERROR_NOT_IMPLEMENTED)"  location: "JS frame ::
chrome://global/content/bindings/tree.xml :: onxblmousedown :: line 718"  data: no]

When you click on the Subscribe button nothing happens and no error is reported
on the JavaScript console.

I don't think Mozilla 1.7 should be released with this bug, since it prevents
you from using a lot of newsgroups (e.g. all C++ newsgroups).
Severity: normal → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking1.7?
Keywords: regression
OS: Windows XP → All
Summary: Cannot subscribe groups with + in name → Cannot subscribe to newsgroups with a + in its name
Mozilla's handling of unsafe characters in newsgroup names is very broken -
simply searching on "%" in my ISP's news server produces over 25 groups none of
which actually contain a % sign.
See bug #241854: The (more or less the same) quoted error message now appears
now on subscribing on *every* newsgroup.  But the error message has no side
effects, you can work with this newsgroups life before.
The JavaScript error is probably unrelated to this bug. With the change proposed
in comment 3 you can subscribe to newsgroups with a + in its name again, bug the
JavaScript error still remains. Bug 241854 is now a separate bug about the
JavaScript error.

jshin: Is the change in comment 3 the right fix for this?

Neil: I don't see the issue with the % character you described in comment 4 with
the news servers I use.
... or you could just remove |cycler="true"| from subscribedColumn2
because it's handled in SearchOnClick() anyway
sorry, that was for bug 241854
Attached patch 238688 bugSplinter Review
Attached file 238688 bug
Christine: Why did you attach a mozilla.exe here?
*** Bug 243792 has been marked as a duplicate of this bug. ***
re-assigning to jshin since it sounds like his change exposed the problem.
Assignee: sspitzer → jshin
I'm on the road (I'm sitting at an Internet cafe) so that I'm afraid I can't
deal with this problem until I get back home. A temporary fix might be to just
revert my change as mentioned in comment #12. 
Of course that would break all non-ascii newsgroup names...
Attached patch Proposed patchSplinter Review
Assignee: jshin → neil.parkwaycc.co.uk
Status: NEW → ASSIGNED
Comment on attachment 149368 [details] [diff] [review]
Proposed patch

So since (for its own nefarious reasons) nsNntpIncomingServer escapes the
string as if it was a URL, we need to as well.
Attachment #149368 - Flags: superreview?(mscott)
Attachment #149368 - Flags: review?(mscott)
Attachment #149368 - Flags: review?(mscott) → review+
Attachment #149368 - Flags: superreview?(mscott) → superreview+
Whiteboard: fixed-aviary1.0
Flags: blocking1.7? → blocking1.7+
Comment on attachment 149368 [details] [diff] [review]
Proposed patch

Trivial fix for very visible bug.
Attachment #149368 - Flags: approval1.7?
Comment on attachment 149368 [details] [diff] [review]
Proposed patch

a=asa (on behalf of drivers) for checkin to 1.7
Attachment #149368 - Flags: approval1.7? → approval1.7+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Keywords: fixed1.7
Resolution: --- → FIXED
> Of course that would break all non-ascii newsgroup names

I'm glad you remembered about that.  thanks for remembering not to break that.
*** Bug 244977 has been marked as a duplicate of this bug. ***
Reporter Krzysztof, boa@metasystems.no:
Can one of you help for verifying this bug since you have newsgroups with a + 
in its name for your news server? 

Please changing Keywords from fixed1.7 to verified1.7 if you verified on the 
latest 1.7 builds:

http://ftp.mozilla.org/pub/mozilla.org/mozilla/nightly/latest-1.7/

Thanks.
It works with my news server now. Thanks!
Status: RESOLVED → VERIFIED
Keywords: fixed1.7verified1.7
*** Bug 243467 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
*** Bug 242771 has been marked as a duplicate of this bug. ***
Component: MailNews: Subscribe → MailNews: Message Display
QA Contact: stephend → search
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: