Open
Bug 436032
Opened 17 years ago
Updated 2 years ago
Trailing slash("/") or preceding slash("/") in subfolder name causes mail data loss upon folder rename of parent folder, and when subfolder name of single "/" at mid(e.g. abc/xyz), rename of parent folder creates garbage of abc.sbd directory
Categories
(MailNews Core :: Backend, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: World, Unassigned)
References
(Blocks 1 open bug)
Details
Tested with Tb trunk(Version=3.0a2pre,BuildID=2008052203 on MS Win-XP SP2).
Trailing slash("/") in mail folder name causes mail data loss upon folder rename of parent folder. After restart, duplicate mail folder appear, due to incorrect mail folder file creation.
When special occasion, "/" only subfolder name, no incorrect file is created. However, parent folder name in folder pane becomes "/" only name(child folder's name) after rename, even though file/directory name is properly renamed.
Prolem recreation procedure is as follows.
I guess that main cause is loss of trailing "/"(=path delimiter in URI) during internal mailbox: URL handling for rename of parent(where trainling "/" of subfolder name is not hashed yet).
>(0) Create folder X1, X2 under Test-06
>(1) Create folder a//// under X1, create folder //// under X2
> (Folder pane display) (Directory content)
> (Property,Location)
> X1 Test-06.sbd\X1
> Test-06.sbd\X1.msf
> Test-06.sbd\X1.sbd
> a//// ac68b1ce0
> ac68b1ce0.msf
> X2 Test-06.sbd\X2
> Test-06.sbd\X2.msf
> Test-06.sbd\X2.sbd
> //// e9e5f585
> e9e5f585.msf
>
>(2) Rename X1 to X1X, X2 to X2X
> (Folder pane display) (Directory content)
> (Property,Location)
> X1X Test-06.sbd\X1X
> Test-06.sbd\X1X.sbd
> Test-06.sbd\X2X.sbd
> a//// a
> a.msf
> ac68b1ce0
> ac68b1ce0.msf
> //// Test-06.sbd\X2X
> Test-06.sbd\X2X.msf
> Test-06.sbd\X2X.sbd
> //// e9e5f585
> e9e5f585.msf
> - File of "a" & "a.msf" is newly created under X1X.
> Trailing "////" part in mail folder name is ignored.
> Folder property/Location for a//// says "a" is used.
> - File name/directory name is successfully changed from X2 to X2X,
> but folder name(should be X2X) in folder pane becomes ////.
> Folder Property,Location of the //// says X2X is used.
>
>(3) Restart Thunderbird
> - Two a//// appear in folder pane
> (one for a,a.msf, one for ac681ce0,ac681ce0.msf)
> (Folder pane display) (Directory content)
> (Property,Location)
> X1X Test-06.sbd\X1X
> Test-06.sbd\X1X.msf
> Test-06.sbd\X2X.sbd
> a//// a
> a.msf
> a//// ac68b1ce0
> ac68b1ce0.msf
> //// Test-06.sbd\X2X
> Test-06.sbd\X2X.msf
> Test-06.sbd\X2X.sbd
> //// e9e5f585
> e9e5f585.msf
Reporter | ||
Updated•17 years ago
|
Blocks: folders-with-special-characters
Reporter | ||
Comment 1•17 years ago
|
||
Phenomenon when "////" was phenomenon when "preceding /".
When subfolder name of "////a", same result as "////" was obtained, except that folder name is "////a" instead of "////".
> (Folder pane display) (Directory content)
> (Property,Location)
> ////a Test-06.sbd\X3X
> Test-06.sbd\X3X.msf
> Test-06.sbd\X3X.sbd
> ////a 8fd86960
> 8fd86960.msf
Summary: Trailing slash("/") in subfolder name causes mail data loss upon folder rename of parent folder → Trailing slash("/") or preceding slash("/") in subfolder name causes mail data loss upon folder rename of parent folder
Reporter | ||
Comment 2•17 years ago
|
||
When subfolder name of "a//b", "a///", "a////b", phenomenon was same as training "/" case, except incorrectly changed parent folder name is "a//b", "a///", "a////b" respectively instead of "a////".
When subfolder name of "a/b", a,a.msf was not created(problem when trailing "/" didn't occur), and incorrect parent folder name didn't occur(problem when preceeding "/" didn't occur). However, directory of "Test-06.sbd\XnX.sbd\a.sbd" was created when parent folder name is renamed from Xn to XnX. This is same phenomenon as Bug 286523 on saved search folder of "a/b".
Reporter | ||
Comment 3•17 years ago
|
||
I think above can explain phenomenon on created file/directory when saved search folder(virtual folder) name has "/" in his folder name.
(1) Preceding "/" : .../XnX.sbd/<preceding "/"(s)><ascii string including null>
=> Bug 358208 (search folder name of "// someting")
(2) Training "/" : .../XnX.sbd/<ascii string including null><trailing "/"(s)>
(3) Single "/" at mid : .../XnX.sbd/<non-null ascii><single "/"><non-null ascii>
=> Bug 286523 (search folder name of "X/Y")
Reporter | ||
Updated•17 years ago
|
Summary: Trailing slash("/") or preceding slash("/") in subfolder name causes mail data loss upon folder rename of parent folder → Trailing slash("/") or preceding slash("/") in subfolder name causes mail data loss upon folder rename of parent folder, and when subfolder name of single "/" at mid(e.g. abc/xyz), rename of parent folder creates garbage of abc.sbd directory
Reporter | ||
Updated•15 years ago
|
Blocks: tb-enterprise
Reporter | ||
Updated•15 years ago
|
No longer blocks: tb-enterprise
Reporter | ||
Updated•14 years ago
|
Component: General → Backend
Product: Thunderbird → MailNews Core
Updated•14 years ago
|
QA Contact: general → backend
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•