Closed Bug 70517 Opened 24 years ago Closed 23 years ago

Renamed/Deleted IMAP non-ASCII folders show up as utf-7 strings

Categories

(MailNews Core :: Internationalization, defect, P2)

x86
Other
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.3

People

(Reporter: ji, Assigned: naving)

References

Details

(Keywords: intl, regression, Whiteboard: verified on trunk)

Attachments

(2 files)

******Observed with win32 02/26 mtrunk build********

The deleted non-ASCII folder name is displayed as a utf-7 string in the Trash
until browser is restarted.

Steps to reproduce:
1. Have a non-ASCII folder in your IMAP account, like "fôlder".
2. Delete the folder.
3. Go to Trash, you'll see the deleted folder shows up as a utf-7 string.
4. Restart the browser, the folder in the Trash goes back to its correct name.
Folder rename has this problem as well.
To see it:
Highlight a non-ASCII folder, select File | Rename Folder

Changed the summary accordingly.
Summary: Deleted IMAP non-ASCII folders show up as utf-7 strings in the Trash → Renamed/Deleted IMAP non-ASCII folders show up as utf-7 strings
have to mention that this is a regression, there were several bugs filed on this
and they all are marked verified.
Added intl and regression keywords.
Keywords: intl, regression
Reassign to sspitzer@netscape.com.
Is this related to bug 67859?
Assignee: nhotta → sspitzer
no, I doubt this is related to that subscribe bug.

re-assign to naving.
Assignee: sspitzer → naving
Keywords: nsBranch
Priority: -- → P2
Target Milestone: --- → mozilla0.9.3
this doesn't have to do with that subscribe bug.

I bet local folders will have the same problem if the folder's pretty name 
isn't == the name on disk

my guess is we aren't creating a folder cache element for the new folder (after 
the rename.)  or if we are, we aren't copying over the "onlineName" from the 
old folder cache element.

cc'ing cavin, this is something he's got a bug on for local folders.
Attached patch proposed fixSplinter Review
So the fix is basically to convert UTF7Name to PRUnichar and SetName for
that folder. cc bienvenu for review. 
instead of passing the server around, you can just call
CreateUnicodeStringFromUtf7 which is defined in nsMsgUtf7Utils.h and is what the
imap server routine calls anyway.
Attached patch revised patchSplinter Review
presuming r/sr, david ?
sr=bienvenu for revised patch.
r=sspitzer
fix landed on trunk
Keywords: vtrunk
Verified with win32, linux and mac 07/06 trunk builds. It's fixed on the trunk.
Navin, can you mark it nsbranch+ now? Adding Scott as well
adding the nsbranch+, but I guess I should ask first if there's any chance it
will break renaming ascii folders or creating folders?
Whiteboard: [nsbranch+]
It will not affect Create new folders. It should not break renaming/deleting 
of folders that have ascii names. 
Tested renaming/deleting ascii folders. I didn't see any regressions there.
Renaming using a name containing "/" or "\" causes browser hung, but it happens 
before the fix. It's not a regression.
The hanging problem when renaming with a folder name containing slash and back 
slash is reported in bug 89698. Again, this problem is NOT caused by this fix.
Whiteboard: [nsbranch+] → [nsbranch+], verified on trunk
removing the nsbranch.  Montse, if you can get PDT to give us a + for this then
we can get this in.  My guess (though I've been proven wrong) is that this bug
isn't going to make their criteria this late.
Keywords: nsBranch
Whiteboard: [nsbranch+], verified on trunk → verified on trunk
I agree, it's not worth the "trip" to PDT, I think I know the answer without
asking. Thanks for fixing it, though, the trunk will be happier.
fixed on trunk 
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
*** Bug 91216 has been marked as a duplicate of this bug. ***
Keywords: relnoteRTM
Marked it as verified. It's fixed.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: