Closed
Bug 549220
Opened 15 years ago
Closed 15 years ago
Renaming IMAP folder using special characters like german umlauts fails on thunderbird V3 - works on same server using thunderbird version < 3
Categories
(Thunderbird :: Folder and Message Lists, defect)
Tracking
(blocking-thunderbird3.1 rc1+, thunderbird3.1 beta2-fixed, thunderbird3.0 .5-fixed)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking-thunderbird3.1 | --- | rc1+ |
thunderbird3.1 | --- | beta2-fixed |
thunderbird3.0 | --- | .5-fixed |
People
(Reporter: spadge, Assigned: Bienvenu)
References
(Blocks 1 open bug)
Details
(Keywords: regression)
Attachments
(3 files)
(deleted),
text/plain; charset=windows-1252
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
neil
:
review+
neil
:
superreview+
standard8
:
approval-thunderbird3.0.5+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2
Renaming an IMAP folder for example using special characters like german umlauts fails on Thunderbird 3.0.2 showing up the error message "[...] Maibox does not exist" if you click on it.
This just works flawless using Thunderbird version 2.0.0.23.
The folders results in both version to the same name on the server (Cyrus 2.2).
After restarting Thunderbird the renamed folder is usable again.
The new offline imap mode is not active!
Example: folder "test" renamed to "test ä", seems to work fine on first sight, but now try to click on the folder -> error message appears
Reproducible: Always
Steps to Reproduce:
1. create a folder "test"
2. rename the folder to "test ä"
3. click on that folder
Actual Results:
error message "[...] Maibox does not exist" appears
Expected Results:
no error message
Updated•15 years ago
|
blocking-thunderbird3.1: --- → ?
status-thunderbird3.0:
--- → ?
Comment 1•15 years ago
|
||
Can you get IMAP log and check IMAP level flow for the rename & open?
> https://wiki.mozilla.org/MailNews:Logging
If Tb's fault is seen in log, attach(never paste if long data) to this bug, please.
Comment 2•15 years ago
|
||
Problem was reproduced with Tb 3.0.2 on MS Win XP-SP3 using Gmail IMAP.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•15 years ago
|
||
Checked under Japanese MS Win-XP SP3, system charet=Shift_JIS.
1. rename XYZ/test to XYZ/test ä
("test ä" is copied at this bug, and pasted at rename UI of Tb)
2. Click XYZ/test ä => Error
3. Folder properties of XYZ/test ä => Error again
> Location: imap://yatter.one%40gmail.com@imap.gmail.com/XYZ/test%20%C3%A4
Current URL is next. Modified UTF-7 is correctly used in currentUrl.
> imap://yatter%2Eone%40gmail%2Ecom@imap.gmail.com:993/rename%3E/XYZ/test%3E/XYZ/test%20%26AOQ-: = currentUrl
4. Unsubscribe XYZ/test ä
5. Subscribe XYZ/test ä
3. Folder properties of XYZ/test ä => No error
> Location: imap://yatter.one%40gmail.com@imap.gmail.com/XYZ/test%20%26AOQ-
Folder name of modified UTF-7 passed from server is correctly used.
Updated•15 years ago
|
Attachment #429477 -
Attachment mime type: text/plain → text/plain; carset=windows-1252
Updated•15 years ago
|
Attachment #429477 -
Attachment mime type: text/plain; carset=windows-1252 → text/plain; charset=windows-1252
Comment 4•15 years ago
|
||
(1) Rename is correctly requested with modified utf-7.
> 00000067 24.13363838 ... ProcessCurrentURL:imap://yatter%2Eone%40gmail%2Ecom@imap.gmail.com:993/rename%3E/XYZ/test%3E/XYZ/test%20%26AOQ-: = currentUrl
> 00000074 24.37368011 ... 9 rename "XYZ/test" "XYZ/test &AOQ-"
> 00000076 24.58089828 ... 9 OK Success
> 00000077 24.58253479 ... 10 subscribe "XYZ/test &AOQ-"
> 00000079 24.79115677 ... 10 OK Success
(2) currentUrl just after rename is wrong.
> 00000086 101.45420837 ... ProcessCurrentURL:imap://yatter%2Eone%40gmail%2Ecom@imap.gmail.com:993/select%3E/XYZ/test%20%C3: = currentUrl
Note: %A4 in Location: of test%20%C3%A4 looks to be lost.
(3) select after rename is wrong
(charset of windows-1252 is set for attached log data)
> 00000102 102.12757874 ... 4 select "XYZ/test Ã"
> 00000104 102.23823547 ... 4 BAD Could not parse command
Comment 5•15 years ago
|
||
Note:
If unsubscribe and re-subscribe is executed, Bug 520437 occurs.
> Bug 520437 Garbage file/directory of {foldername}-{suffix}.msf
> and {foldername}-{suffix}.sbd is created upon each unsubscribe / subscribe
Comment 6•15 years ago
|
||
Good catch; thanks for the triage & nomination! Adding regressionwindow-wanted, as it's likely helpful to understand exactly what code change introduced this.
Assignee: nobody → bienvenu
blocking-thunderbird3.1: ? → rc1+
Keywords: regression,
regressionwindow-wanted
Comment 7•15 years ago
|
||
"unsubscribe and re-subscribe" was not needed to recover.
"collapse account, then expand account again" was sufficient to recover.
Comment 8•15 years ago
|
||
Bug 499278(Target Milestone: Thunderbird 3.0b3) is for problem in rename to "Köln". Problem is that create "K&APY-ln" is properly issued but folder pane display becomes "K&APY-ln". This bug looks for me remainig issue even after fix of Bug 499278.
As for me, I didn't verify Bug 499278 after fixed. I probably executed fix verification test of Bug 499278 in this bug (i.e. fix of Bug 499278 was insufficient for complete resolution).
Comment 9•15 years ago
|
||
create "K&APY-ln" -> rename "original" "K&APY-ln". sorry for spam.
Comment 10•15 years ago
|
||
Tested according to comment 3 using steps 1-2.
Regression range 1:
works:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2a1pre) Gecko/20090212 Shredder/3.1a1pre
2009-02-12-03-comm-central-trunk
broken - produces "test &AOQ-", no error. Gmail appears to render as "test ä":
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2a1pre) Gecko/20090213 Shredder/3.1a1pre
2009-02-13-03-comm-central-trunk
http://hg.mozilla.org/comm-central/pushloghtml?startdate=2009-02-12+02%3A00%3A00&enddate=2009-02-13+04%3A00%3A00
Regression range 2:
broken - produces "test &AOQ-", no error. Gmail appears to render as "test ä":
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2a1pre) Gecko/20090629 Shredder/3.1a1pre
2009-06-29-04-comm-central-trunk
broken - "The current command did not succeed. The mail server responded:Could not parse command":
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2a1pre) Gecko/20090701 Shredder/3.1a1pre
2009-07-01-03-comm-central-trunk
http://hg.mozilla.org/comm-central/pushloghtml?startdate=2009-06-29+03%3A00%3A00&enddate=2009-07-01+04%3A00%3A00
Keywords: regressionwindow-wanted
Comment 11•15 years ago
|
||
> http://hg.mozilla.org/comm-central/log?rev=499278
> searching for 499278
> bfb804e8b147: fix imap rename when new name required imap mod-utf7, r/sr=standard8, 499278
> David Bienvenu <bienvenu@nventure.com> - Tue, 30 Jun 2009 07:52:54 -0700 - rev 2980
> fix imap rename when new name required imap mod-utf7, r/sr=standard8, 499278
This bug is not regression. After fix of bug 499278, Tb goes ahead, and problem is morphed to this bug.
Comment 12•15 years ago
|
||
Above comment is for Regression range 2: in Comment 10.
For Regression range 1, regressed by following change?
> Thu Feb 12 17:20:51 2009 -0800 1ceaf63561e2 David Bienvenu
> — fix handling of imap folders with non-alphanumeric chars like # in name,
> r=standard8, sr=neil, 115091
> Bug 115091 Mail subfolder(IMAP) can not have a # sign in the name.
Comment 13•15 years ago
|
||
Thanks for the regression hunting, Matt! Tracking down which code changes are related to a problem is super helpful.
Updated•15 years ago
|
Flags: in-testsuite?
Updated•15 years ago
|
Blocks: folders-with-special-characters
Assignee | ||
Comment 14•15 years ago
|
||
When I tried this, I was able to select the renamed folder after a restart. Is that not the case for others on this bug? I suspect WADA is right and this is not a regression and I suspect not really a blocker by the criteria we've established for blockers...
Reporter | ||
Comment 15•15 years ago
|
||
@David: you're right, after a restart everything works fine and you are able to select the folder - but that's surely not a suitable workflow ;)
Assignee | ||
Comment 16•15 years ago
|
||
Yeah, it's definitely an unfortunate bug, and I will try to fix it, but I'm not sure it's a 3.1 blocker...
Comment 17•15 years ago
|
||
Assignee | ||
Updated•15 years ago
|
Whiteboard: [investigating; issue is fixed on restart]
Assignee | ||
Comment 18•15 years ago
|
||
This should fix it. Now I need to write a unit test...
Assignee | ||
Updated•15 years ago
|
Whiteboard: [investigating; issue is fixed on restart] → [has fix, unit test arriving in a day or two]
Assignee | ||
Comment 19•15 years ago
|
||
writing unit test is complicated by the fact that imap fake server doesn't seem to implement RENAME correctly.
Assignee | ||
Comment 20•15 years ago
|
||
Attachment #436051 -
Flags: review?(neil)
Assignee | ||
Comment 21•15 years ago
|
||
Comment on attachment 436051 [details] [diff] [review]
proposed fix
The easy part is making sure we convert imap mod utf7 to utf8 before looking up the folder, and converting unicode to imap mod utf7 before setting the online name.
In order to write the unit test, I had to fix the imap fake server's rename function.
Attachment #436051 -
Flags: superreview?(neil)
Assignee | ||
Updated•15 years ago
|
Whiteboard: [has fix, unit test arriving in a day or two] → [has patch for review]
Comment 22•15 years ago
|
||
If I evaluate top.opener.msgWindow.openFolder.URI in the Error Console I get
imap://neil.rashbrook%40googlemail.com@imap.googlemail.com/[Google Mail]/&IKw-
Is that expected?
Assignee | ||
Comment 23•15 years ago
|
||
Is that for a newly renamed folder, before restarting, with the patch? What's the unicode name for the folder?
Comment 24•15 years ago
|
||
Comment on attachment 436051 [details] [diff] [review]
proposed fix
I should have checked the URI before and after renaming ;-) [In my case the folder name was £ or € since those are the easiest non-ASCII that I can type!]
Attachment #436051 -
Flags: superreview?(neil)
Attachment #436051 -
Flags: superreview+
Attachment #436051 -
Flags: review?(neil)
Attachment #436051 -
Flags: review+
Assignee | ||
Comment 25•15 years ago
|
||
fix checked in.
Status: NEW → RESOLVED
Closed: 15 years ago
status-thunderbird3.1:
--- → beta2-fixed
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
Whiteboard: [has patch for review]
Assignee | ||
Comment 26•15 years ago
|
||
Comment on attachment 436051 [details] [diff] [review]
proposed fix
would be nice for 3.05
Attachment #436051 -
Flags: approval-thunderbird3.0.5?
Updated•15 years ago
|
Attachment #436051 -
Flags: approval-thunderbird3.0.5? → approval-thunderbird3.0.5+
Updated•15 years ago
|
Assignee | ||
Comment 27•15 years ago
|
||
fixed for 3.0.5
You need to log in
before you can comment on or make changes to this bug.
Description
•