If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

drag & Drop sub-directories(mail subfolder) fails or makes duplicates, and may allocate default name (e.g:b9b8367f) to the second copy.

NEW
Unassigned

Status

Thunderbird
Mail Window Front End
10 years ago
7 years ago

People

(Reporter: Eric Scott, Unassigned)

Tracking

(Depends on: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(6 attachments)

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
Build Identifier: version 2.0.0.6 (20070728)

click and drag from my “Completed” to “Pending” (several directories deep) Resulted in no result shown until re-start of Thunderbird, then a resulting file was seen labelled b9b8367f.   Several attempts at click and Drag sub-directories were made before restart of Thunderbird.  Contents of both files identical.   Source file not removed from “Completed”.

On a few other occasions, a moved file appeared twice in destination … one file empty.

There are four accounts on this setup.

If you would like screen saves to illustrate the (large) size of the tree and move structure, please e-mail me at hadrecs@tpg.com.au


Reproducible: Always

Steps to Reproduce:
1. Intermittent - not able to get a pattern.
2.
3.


Expected Results:  
moved the sub-folder with several e-mails therein from one directory to another
(Reporter)

Comment 1

10 years ago
Created attachment 280874 [details]
screenshot of tree when latest fault occurred
(Q1) What directories/files are currently used for your mail folders?
(Check mail directory structure)
1. Terminate Thunderbird
2. Make a directroy (say C:\WORK) 
2. At Command Prompt Window
   DIR "C:\Document ...\...\...\Mail" /S > C:\WORK\DIR-LIST.TXT
   notepad.exe C:\WORK\DIR-LIST.TXT

(Q2) What is exact mail folder name for file of "b9b8367f"?

> Build Identifier: version 2.0.0.6 (20070728)

(Q3) What version of Thunderbird did you use before current Tb 2.0.0.6?
     Did you restart Tb after upgrade to Tb 2.0.0.6?

(Q4) Same problem as Bug 379101? 
(Q5) Or similar problem to Bug 391825? 
(Reporter)

Comment 4

10 years ago
Created attachment 281059 [details]
sequence of screenshots with notes

Sequencew of events that demonstrates the problem.
(Reporter)

Comment 5

10 years ago
Created attachment 281060 [details]
Second part of screen shots showing bug
(Reporter)

Comment 6

10 years ago
Created attachment 281061 [details]
Requested directory
Following files can be seen in your directory listing.
> Directory of C:\Doc...\...\_Completed.sbd
> 16/09/2007  12:01 PM    <DIR>          .
> 16/09/2007  12:01 PM                 0 07-07-099a794111
> 16/09/2007  12:03 PM             1,778 07-07-099a794111.msf
> Directory of C:\Doc...\...\\__Pending.sbd
> 14/09/2007  08:29 PM            41,752 b9b8367f
> 16/09/2007  12:03 PM             6,212 b9b8367f.msf

And similar phenomena as yours can be re-produced by next test scenario.
(1) Create mail folders for test (say Test-1) with Tb 2.0.
    Create a subfolder of "07-07-09:Ellen Marks - PHONE - Herbie Marks".
    => Test-1.sbd\07-07-099a794111 & Test-1.sbd\07-07-099a794111.msf
    Copy a mail to this mail folder.
    Create folder of Test-2 and Test-2.
    Create a subfolder under Test-2 and Test-3.
    (force creation of Test-2.sbd and Test-3.sbd) 
(2) Shutdown Thunderbird
(3) Copy Test-1.sbd\07-07-099a794111 & Test-1.sbd\07-07-099a794111.msf
      to Test-2.sdb\9b8367f          & Test-2.sbd\b9b8367f.msf
(4) Restart Thunderbird
    => "07-07-09:Ellen Marks - PHONE - Herbie Marks" appears under Test-2
       Copy folder location: Test-2.sdb/9b8367f
       Mail folder name is kept in .msf.
(5) Move "07-07-09:Ellen Marks - PHONE - Herbie Marks" under Test-2 to Test-3
       => Test-3.sbd\9b8367f      & Test-3.sbd\9b8367f.msf
       => Test-3\07-07-099a794111 & Test-3\07-07-099a794111.msf 
          File size of Test-3\07-07-099a794111=0
          No mail folder name in Test-3\07-07-099a794111.msf
(6) Shutdown and restart Thunderbird
    => two folder of "07-07-09:Ellen Marks - PHONE - Herbie Marks"
   (A) Copy folder location: /Test-3.sbd/9b8367f
       One mail in it
   (B) Copy folder location: /Test-3.sbd/07-07-099a794111
       No mail in it
(7) Shutdown, delete panacea.dat, and restart Thunderbird
    (A) "07-07-09:Ellen Marks - PHONE - Herbie Marks"
         Copy folder location: /Test-3.sbd/9b8367f
         One mail in it
    (B) "07-07-099a794111"
         Copy folder location: /Test-3.sbd/07-07-099a794111
         No mail in it
         (=> mail folder name at step (6) was obtained from panacea.dat) 
(8) Shutdown, delete Test-3.sbd\9b8367f.msf, and restart Thunderbird
    (A) "9b8367f"
         Copy folder location: /Test-3.sbd/9b8367f
         One mail in it
         (Mail folder name is lost because msf was manually deleted)
    (B) "07-07-099a794111"
         Copy folder location: /Test-3.sbd/07-07-099a794111
         No mail in it

Your duped "07-07-09:Ellen Marks - PHONE - Herbie Marks" looks to be (A) and (B) at step (6).
Your "Folder labelled b9b8367f" looks to be similar one to (A) at step (8).
And, if some garbages of 07-07-099a794111.msf and/or b9b8367f.msf existed when you tried to move the mail folder, move of folder may fail in mid of move process. This may cause other garbages and may cause further funny phenomena.

Because your mail folder name contains ":", which is illegal file name character, file name for a mail folder becomes different from mail folder name(contains hexa decimal string).
And next files seems to be created by older Mozilla/Thunderbird/Seamonkey.
> Directory of C:\Doc\...\_Completed.sbd
> 31/08/2007  03:43 PM        11,724,851 3be9265f
> 16/09/2007  11:58 AM            11,862 3be9265f.msf
> 26/07/2007  10:24 AM         5,510,748 41e5b41c
> 16/09/2007  11:58 AM             4,864 41e5b41c.msf
> 31/08/2007  03:51 PM        12,546,004 8d652b70
> 16/09/2007  11:58 AM             6,740 8d652b70.msf
> 31/08/2007  03:49 PM           232,780 b9ee5a4f
> 16/09/2007  11:58 AM            10,554 b9ee5a4f.msf
> Directory of C:\Doc...\...\__Pending.sbd
> 10/07/2007  04:09 PM             6,031 9a794111
> 16/09/2007  12:01 PM             4,172 9a794111.msf
> 12/08/2007  12:05 PM            11,847 a1e5977f
> 16/09/2007  12:03 PM             3,013 a1e5977f.msf
> 14/09/2007  08:29 PM            41,752 b9b8367f
> 16/09/2007  12:03 PM             6,212 b9b8367f.msf

(Q6) When above files were created?
(Q7) View above ".msf" file content by text editor,
     and check exact string of mail folder file name in it.
     What mail folder name is written in these ".msf" files?
(Q8) When you newly create mail folders for above files with Tb 2.0,
     what file names will be used by Thunderbird 2.0?
     (Do test under test folder)
(Reporter)

Comment 8

10 years ago
Created attachment 281138 [details]
msf files contents
(Reporter)

Comment 9

10 years ago
Created attachment 281139 [details]
msf files contents
(In reply to comment #8)
> msf files contents

My guess seems to be slightly different from what had happened.
Old files for "07-07-09:Ellen Marks - PHONE - Herbie Marks" were 9a794111 & 9a794111.msf. 
So your "Folder labeled b9b8367f" is a result of problem on other folder than "07-07-09:Ellen Marks - PHONE - Herbie Marks".

(File name when folder is created by Tb 2.0)
 A) 07-08-03:Latu Miller-Tuli Bros
    07-08-033be9265f & 07-08-033be9265f.msf
 B) 07-07-09:Ellen Marks - PHONE - Herbie Marks
    07-07-099a794111 & 07-07-099a794111.msf

(Content of your 3be9265f.msf)
>Line-182 <(1F1=b2e833)(1F6=46d7aa7c)(14C=4)(84=80198539)(87
>Line-182      =07-08-03:Latu Miller-Tuli Bros)(208=Thu Sep 13 09:51:14 2007)(1F0=19)
(Content of your 9a794111.msf)
>Line-52 <(AA=178f)(B1=469322a1)(137=14)(84=9a794111)(85
>Line-53     =07-07-09:Ellen Marks - PHONE - Herbie Marks)(A9=3)(13B
>Line-54     =Sun Sep 16 13:33:56 2007)(AE=12)(13C=1189913640)>
 
Your file name is probably a result of different file name generation algorithm of old Thunderbird from current Thunderbird 2.0, if you didn't rename 07-07-099a794111 to 9a794111.
 - Old version of Tb ignored "07-07-09" portion before ":"(illegal file name
   character), and used "9a794111" only as file name.
 - Current version of Tb keeps "07-07-09" portion, then concatenate
   "07-07-09" and "9a794111".

No need to answer Q6, Q7, Q8.
(Q9) When 3be9265f, 3be9265f.msf, 9a794111, 9a794111.msf were created?
(Check creation date in property of these files via Windows Explorer)

Same or similar problem will occur on "07-08-03:Latu Miller-Tuli Bros" and some other mail folders too, if you'll try to move mail folder, because test scenario in comment #7 with Tb 2.0 always produces similar phenomenon as yours.
Workaround:
(1) Rename mail folders, and make "mail file name"=="mail folder name".
    (I your case, replace ":" by "_" seems to be sufficient)
(2) Check all file names under mail directory.
(3) If you need to fall back to older Thunderbird version, continue to use
    folder name without illegal file name characters for safety.
(4) When no need to fall back, change back to mail folder name with ":"
    for your convenience.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: drag & Drop sub-directories fails or makes duplicates, and may allocate default name (e.g:b9b8367f) to the second copy. → drag & Drop sub-directories(mail subfolder) fails or makes duplicates, and may allocate default name (e.g:b9b8367f) to the second copy.

Comment 11

10 years ago
I have version 2.0.0.9 (most recent version) and have almost the same problem:
-draging and droping ANY sub-folder makes the nessages within it to vanish in the new location;
-reinitiating TB shows 2 equal folders in the new location but one is empty, which can be deleted withou trouble;
This happens EVERY TIME I move sub-folders, and is quite annoying to have to restart TB in order to access its contents again.
This began to happen in the last 2 or 3 months, maybe it's related to some of the last updates.
(In reply to comment #11)
> -draging and droping ANY sub-folder makes the nessages within it to vanish in
> the new location;
> -reinitiating TB shows 2 equal folders in the new location but one is empty,
> which can be deleted withou trouble;

Which special character in mail folder name was the cause of your problem due to this bug?

> is quite annoying

Much worse than simply quite annoying, if user met this bug's problem.
Do workaround I already explained in comment #10, before saying complaints in bugzilla.mozilla.org bug.
WADA, thoughts on where we go from comment 10?  (would be nice to make headway on d&d issues)
I think there are multiple issues here, but the first one of the summary probably stems from bug 199079.
Depends on: 199079
(In reply to comment #14)
> I think there are multiple issues here, but the first one of the summary probably stems from bug 199079.

(1) In directory listing by bug opener, following file/folder is seen.
    "old file name" looks to have been created or used by Tb on 2005-4-02.     
> 02/04/2005  02:49 PM                 0 9376bf69
> 16/09/2007  12:08 PM             1,736 9376bf69.msf
> 24/05/2007  09:17 AM    <DIR>          9376bf69.sbd
(2) On 2006-11-16, Bug 360961 said that file name of "a45bd72a6" was used for folder name such as "Chicagoartists:", "Smith:", "Stanley:", "Stevens:" (folder name ends with ":" or ": ".
(3) This bug was opened on 2007-09-14.

Therefore, algorithm change for "folder name with :" seems to be done by a Tb version which was released between 2006/11/16 and 2007-09-14.  

Two kinds of problem caused by "algorithm change" are already known.
(A) This bug (folder name of "xxx:yyy" case)
    - Algorithm change was done between 2006/11/16 and 2007-09-14.  
    - Usual use of "old file"(folder open) is not affected by algorithm change.
      - "old_file" is not illegal file name.
    - Folder creation is affected by algorithm change.
    - Folder move/copy(Drag&Drop) is also affected by algorithm change.
      (similar operation to folder creation is involved in folder move/copy)
    - Upon copy/move, difference between "old file name" and "new file name"
      will produce problem of (A-1) folder name of "old file name" and
      folder name of "new file name".
      Then same phenomenon as bug 199079 can be observed.
(B) Bug 379101 ("xxx." and "xxx " and "xxx~" case). 
    - Algorithm change was done by Tb 2.0.0.0
    - Usual use of "old file"(folder open) is affected by algorithm change.
      - "old_file" is illegal file name in this case.
    - Folder creation is affected by algorithm change.
    - Folder move/copy(Drag&Drop) is also affected by algorithm change.
      (similar operation to folder creation is involved in folder move/copy)
      Situation is worse than (A), because open of copy/move source folder
      is already affected by algorithm change.
    - Difference between "old file name" and "new file name" will produce
      problem of (A-1) even when normal open of folder with "old file name".

Phenomenon written in bug 199079 is simply one of phenomena after this bug's root problem occurs when this bug's case.
See directory listing attached by bug opener. You can see following.
> C:\Documents...\___Pending - general.sbd
>    "06-07-0962d8f742" == "06-07-09" + "62d8f742" 
> 06/09/2007  10:02 AM                 0 06-07-0962d8f742
> 16/09/2007  12:03 PM             1,874 06-07-0962d8f742.msf
> 11/03/2007  10:33 AM           343,712 62d8f742
> 16/09/2007  12:03 PM            12,478 62d8f742.msf
62d8f742/62d8f742.msf is probably file set copied from directory(xxx.sbd) for "move source folder".
Once above situation is generated at first step of folder move (directory/file structure for mail folder is damaged after file copy), anything wrong can occur during following folder move steps(such as move of subfolders in source folder).
Above situation produces (a) folder name of 62d8f742, or (b) duplicate folder name display in folder pane. (a) or (b) depends on situation(.msf is deleted or not, re-build index is invoked or not, delete of panacea.dat is done or not, etc.)
You need to log in before you can comment on or make changes to this bug.