Closed Bug 108264 Opened 23 years ago Closed 23 years ago

Getting the "autoSubscribeText" in confirm dialog, instead of newsgroup name.

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Assigned: hwaara)

References

()

Details

Attachments

(1 file, 2 obsolete files)

Build ID: 2001-11-02-10, RedHat 7.2 Summary: Getting the "autoSubscribeText" in confirm dialog, instead of newsgroup name. Steps to Reproduce: 1. Using a linux build, run news://news.mozilla.org/netscape.public.mozilla.performance Expected Results: 'Would you like to subscribe to netscape.public.mozilla.performance' (or the truncated version, n.p.m.performance). Actual Results: 'Would you like to subscribe to autoSubscribeText' I don't know why we're not properly escaping whatever %s value we have here and filling it with the string bundle from .properties
Just a note, this ONLY happens on my linux build, mac and win32 are peachy.
weird that it's linux only.
Not trying to put blame on anyone but is it possible that this is a stringbundle regression? Just weird that it's linux only...
I'm sorry, I don't have a linux box and have no idea how this regression can be triggered from XP code. Seth said he could look at this.
Assignee: hwaara → sspitzer
QA Contact: esther → stephend
Tingley said to me that he also saw this (he's running Linux as well)... I'm starting to think this is a stringbundle bug, so reassigning to the only one I could frequently find in the stringbundle CVS blame...but punt as needed - thanks!
Assignee: sspitzer → alecf
the problem is here: http://lxr.mozilla.org/seamonkey/source/mailnews/news/src/nsNNTPProtocol.cpp#1097 that NS_ConvertUCS2toUTF8 is a temporary variable, and allocates heap space to store the string. You need to do something like: NS_ConvertUTF8toUCS2 groupUCS2(group); and then put groupUCS2.get() in the array.
Assignee: alecf → hwaara
Attached patch Patch -uw (obsolete) — Splinter Review
Thanks for the help alecf! This patch follows alec's advice, and as a bonus it includes the fix for bug 109537.
Alec, can you r= this patch? Thanks.
Status: NEW → ASSIGNED
Comment on attachment 57391 [details] [diff] [review] Patch -uw I'll r=alecf, but do we really need to unescape the group name?
Attachment #57391 - Flags: review+
Yes, that's the fix for bug 109537. Note that we only unescape the temporary |unescapedString| so that if you subscribe to, for example, a group named "Håkan", it will display as "Håkan" and not the escaped version of that string, which would be "H%C3A5Kan".
BTW, tingley applied this patch to his linux build and he confirmed that it fixed the problem.
Attached patch updated patch (obsolete) — Splinter Review
to test, type news://news.mozilla.org/håkan in the browser.
Attachment #57391 - Attachment is obsolete: true
Attached patch patchSplinter Review
Attachment #57676 - Attachment is obsolete: true
Comment on attachment 57677 [details] [diff] [review] patch sr=alecf
Attachment #57677 - Flags: superreview+
fixed checked in for hwaara.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified FIXED using build 2001-11-14-08. Thanks for fixing this!
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: