Closed Bug 301442 Opened 19 years ago Closed 15 years ago

problems after change of windows user profile (change of user name)

Categories

(Thunderbird :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: michal.seliga, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5

sorry if this is duplicate, but i didn't found 

i had thunderbird (and also firefox) installed. my account was 'seligam' so the
profile was stored in C:\Documents and Settings\seligam....

later i joined domain, so i became new user (seligam.domain). i also copied all
contents from old seligam directory to new seligam.domain directory (recommended
by many advanced windows users, including our admin)

all software have on my computer works correctly, but thenderbird (and firefox).
these two seem to still use some files from not seligam.domain directory (i
noticed this on extensions), but from old one.

i noticed that probably it is because there are hardcoded paths in some
preference files (prefs.js, compreg.dat, maybe on some other place too).

now my questions are....

1) what should i do to fix this? change paths in files using text editor will
help? i don't want to risk future problems....and i also don't know if this is
enough

2) maybe possible feature request - would it be difficult for developers to make
these paths relative and not absolute? so it will be enough to copy them and
everything will work...

Reproducible: Always

Steps to Reproduce:
1. login as you (lets sey you are user xxxxxx)
2. install some extensions to your thunbderbird.
3. create user xxxxxx2
4. as administrator copy contents of C:\documents and settings\xxxxxx to
C:\documents and settings\xxxxxx2
5. login as xxxxxx2
6. start thunderbird
Actual Results:  
you will see that some files (extensions) are used from directory inside of
C:\documents and settings\xxxxxx

Expected Results:  
all opened files (extensions) should be used from directory inside of
C:\documents and settings\xxxxxx2

maybe it is important that when i made a change i was using thunderbird 1.0.2,
but profile was created when i started to use thunderbird (before 1.0, i don't
know exactly)
Many of path representaion are already relative, if directry/file is placed in
Thunderbird's profile directry.
 eg. Pointer to profile directry in profile.ini
       Name=Test IsRelative=1 Path=Profiles/fm9hqrvh.Test

Which directry/file in xxxxxx was used?
Whose file? (which extention's file?)
Can you find entries which point to xxxxxx in prefs.js? 
 
user_pref("mail.newsrc_root", "c:\\Documents and Settings\\seligam\\Application
Data\\Thunderbird\\Profiles\\default.u39\\News");

user_pref("mail.root.nntp", "c:\\Documents and Settings\\seligam\\Application
Data\\Thunderbird\\Profiles\\default.u39\\News");

user_pref("mail.root.none", "c:\\Documents and Settings\\seligam\\Application
Data\\Thunderbird\\Profiles\\default.u39\\Mail");

user_pref("mail.root.pop3", "c:\\Documents and Settings\\seligam\\Application
Data\\Thunderbird\\Profiles\\default.u39\\Mail");

user_pref("mail.server.server1.directory", "C:\\Documents and
Settings\\seligam\\Application
Data\\Thunderbird\\Profiles\\default.u39\\News\\forums.sybase-1.com");

user_pref("mail.server.server1.newsrc.file", "C:\\Documents and
Settings\\seligam\\Application
Data\\Thunderbird\\Profiles\\default.u39\\News\\forums.sybase.com-1.rc");

user_pref("mail.server.server2.directory", "c:\\Documents and
Settings\\seligam\\Application
Data\\Thunderbird\\Profiles\\default.u39\\Mail\\pop3.post.sk");

user_pref("mail.server.server3.directory", "c:\\Documents and
Settings\\seligam\\Application
Data\\Thunderbird\\Profiles\\default.u39\\Mail\\Local Folders-1");

user_pref("mail.server.server4.directory", "C:\\Documents and
Settings\\seligam\\Application
Data\\Thunderbird\\Profiles\\default.u39\\Mail\\centrum.sk");

.....


in profiles.ini i have isrelative=1 (exactly as you wrote)




used files from old directory were

c:\Documents and Settings\seligam\Application
Data\Thunderbird\Profiles\default.u39\extensions\{31513E58-F253-47ad-86DB-D5F21E905429}\chrome\minimizetotray.jar

(and other .jar files of other extensions, i think all of installed extensions
were used). and according to modification dates also files from news
subdirectory of thunderbird profile

so far i didn't noticed anything else 



(In reply to comment #2)

(1)mail.newsrc_root/mail.root.nntp/mail.root.none/mail.root.pop3

   These are writren only on profile creation.
   Changing to this "Relative" is a new enhancement request.
   (AFAK, this is not requested yet.)
   Workaround: Manual change of these entries in prefs.js

   But these entries have relation only on next new account definition.
   This can not be your "some files (extensions) are used from xxxxxx".

(2)mail.server.serverN.directory

   This entry is "Absolute".
   But this is used in combination with mail.server.serverN.directory-rel
   which is already "Realtive". ( [ProfD]Mail/pop3.server.name )
   I thought mail.server.serverN.directory-rel is realy used
   and mail.server.serverN.directory is kept for compatibility.
   (When open Account Settings/Server Settings, "Local dorectry" is set from 
   (mail.server.serverN.directory-rel value, then mail.server.serverN.directory)
   (value is changed when saving accout settings.)

   Was mail directry/file in C:\...\xxxxxx used really in your environment?
   If yes, which one(s)?

(3)mail.server.serverN.newsrc.file   

   Same as (2).

   Was news directry/file in C:\...\xxxxxx used really in your environment?
   If yes, which one(s)?

(4) Extention's file

> used files from old directory were
> c:\Documents and Settings\seligam\Application
Data\Thunderbird\Profiles\default.u39\extensions\{31513E58-F253-47ad-86DB-D5F21E905429}\chrome\minimizetotray.jar
> (and other .jar files of other extensions, i think all of installed extensions
> were used). and according to modification dates also files from news
> subdirectory of thunderbird profile
> so far i didn't noticed anything else 

Can you check content of ".ini" filee in profile directry?
Check also content of ".rdf" files in profile directry, chrome directry,
subdirectories of chrome directry, ....
Are there any "Absolute" path representation?
Sounds current restriction of etention(s) instead of current restriction of
"Extention Manager", and seems to be re-install of extention is required in this
case...

What is the extention? Newest version?
Can you ask to extention developer?  
2) mail is not used, you wanted entries from prefs.js so i sent them. but i am
100% sure that these mail files aren't used

3) newsgroups are strange. modification dates say that they were touched in
wrong directory, but all data are in correct place. so it seems there is no
problem here

4) in chrome/chrome.rdf there are absolute paths to extensions (minimizetotray,
viewheaders, display mail user agent, calculator, disctionary search, del
attachment, .... - all i have)

entry looks like this:

 <RDF:Description RDF:about="urn:mozilla:package:minimizetotray"
                  
c:baseURL="jar:file:///C:/Documents%20and%20Settings/seligam/Application%20Data/Thunderbird/Profiles/default.u39/extensions/%7B31513E58-F253-47ad-86DB-D5F21E905429%7D/chrome/minimizetotray.jar!/content/minimizetotray/"
                   c:locType="profile"
                   c:name="minimizetotray" />
 
    <c:package RDF:resource="urn:mozilla:package:minimizetotray"/>
  </RDF:Description> 


so if this is extension problem then all my installed extensions have it. i
think i use last versions (thunderbird doesn't find any updates).

if you think it is safe to edit chrome.rdf then i will change it to correct
paths (or maybe it would be better to change new profile from scratch and move
mail history to it?)
(In reply to comment #4)

> 2) mail is not used
>    i am 100% sure that these mail files aren't used
I see. I also think no problem when alreadey defined POP3 account. 
 
> 3) newsgroups are strange. 
>    modification dates say that they were touched in wrong directory, 
NEWS account is different from POP3, rather similar to IMAP, and I also suspect
something wrong exists for full "Relative Path".
=> Further investigation will be required on NEWS & IMAP.

> 4) in chrome/chrome.rdf there are absolute paths to extensions (minimizetotray,
> viewheaders, display mail user agent, calculator, disctionary search, del
> attachment, .... - all i have)
> entry looks like this:
>(snip)
>
c:baseURL="jar:file:///C:/Documents%20and%20Settings/seligam/Application%20Data/Thunderbird/Profiles/default.u39/extensions/%7B31513E58-F253-47ad-86DB-D5F21E905429%7D/chrome/minimizetotray.jar!/content/minimizetotray/"
>(snip)

Same description is found in chrome.rdf of SeaMonkey latest-trunk nightly for
LiveHTTPHeaders.

Workaround :
(1)For Beginers    : Re-create profile from scrath, then install all extentions
(2)For Usual users : Uninstall/Re-install all extentions.
(3)For You         : Take backup of profile directry, then edit chrome.rdf

However, this seems to be improved by newer Extention Manager.
Firefox 1.0+(2007/7/19 build of firefox/nightly/latest) has extention.ini &
extentions.rdf in newly created profile and contents are as follows.
(a)extention.ini
   [ExtensionDirs]
   Extension0=C:\Mozilla\Firefox\@07-19\firefox\extensions\inspector@mozilla.org
   Extension1=C:\Mozilla\Firefox\@07-19\firefox\extensions\reporter@mozilla.org
   Extension2=C:\Mozilla\Firefox\@07-19\firefox\extensions\talkback@mozilla.org
   [ThemeDirs]
   Extension0=C:\Mozilla\Firefox\@07-19\firefox\extensions   
                 \{972ce4c6-7e08-4474-a285-3208198ce6fd}
(b)extentions.rdf
  (snip)
   <RDF:Description
        RDF:about="urn:mozilla:item:{972ce4c6-7e08-4474-a285-3208198ce6fd}"
                   NS1:installLocation="app-global"
                   NS1:version="2.0"
        (snip)
   </RDF:Description>
   (snip)

"baseURL" portion in RDF:Description looks to be moved to "extentions.ini".
I don't know whether entry in extentions.ini is "Relative" or "Absolute" when
extention is installed in profile directry. (Above is example when program
directry.) 
Can you check with newest Thunderbird latest-trunk nightly?
Confirming based on observation with SeaMonkey trunk nightly.
Status: UNCONFIRMED → NEW
Ever confirmed: true
When Firefox latest-trunk, and when a extension is installed in Profile,
extension's resource was installed in "extensions" sub-directry and path to it
in "extensions.ini" was "Relative". 

(extensions.ini after install of "Tabbrowser Extentions"=Extension3)
[ExtensionDirs]
Extension0=C:\Mozilla\Firefox\@07-19\firefox\extensions\inspector@mozilla.org
Extension1=C:\Mozilla\Firefox\@07-19\firefox\extensions\reporter@mozilla.org
Extension2=C:\Mozilla\Firefox\@07-19\firefox\extensions\talkback@mozilla.org
Extension3=extensions/{0B0B0DA8-08BA-4bc6-987C-6BC9F4D8A81E}
[ThemeDirs]
Extension0=C:\Mozilla\Firefox\@07-19\firefox\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}

I believe this is done by new Extension Manager which will be introduced in
Firefox 1.5(formely called 1.1).
I don't know whether the new Extension Manager is available on Thunderbird
nightly or not, but I could see extensions.ini/extensions.rdf in newly created
Thunderbird's profile directry.
Michal, try newest thunderbird/nightly/latest-trunk.

By the way, your problem is probably WORKSFORME, but new problem arose for me...
If newer Firefox is installed(UNZIP'ed) in diferent program directry from one
used when profile creation, extensions.ini entries for standard extensions
(inspector/reporter/talkback), which is "Absolute", are never be updated, then
DOM Inspector becomes unusable(no menu is available).
This is too bad for nightly freak like me :-)
See http://www.mozilla.org/projects/firefox/extensions/em-changes.html for
Enhanced Extension Installation.
I've opened Bug 301965 for "new problem for me"(inconvenience for nightly freak)
in comment #7.
version 1.0.6 (20050721)
still use absolute paths


----
version version 1.0+ (20050724)
i can't test extensions because i didn't found any extension which would work
with it....

btw, this page:
https://addons.mozilla.org/extensions/showlist.php?application=thunderbird&category=Miscellaneous
looks terribly.... names of extensions overlap their description so it is almost
unreadable :-/ anyway i tried to download some extensions and thunderbird said
they are not compatible with it.

but even when i made fulltext search on freshly created profile i found there
one absolute path to profile in file name 'secmod.db'.

where i can find extension which would work for this 1.0+ alpha2?

when i created mail account then i found that absolute paths appeared in
panacea.dat and prefs.js (but there is for every abolute path also relative
version so maybe it is not problem)

user_pref("mail.root.none", "C:\\Documents and
Settings\\seligam.VISICOM-BA\\Application
Data\\Thunderbird\\Profiles\\2fwlehcf.selmi2\\Mail");
user_pref("mail.root.none-rel", "[ProfD]Mail");


and when i created news account new absolute paths appeared in prefs.js (but
there is for every abolute path also relative version so maybe it is not problem)

user_pref("mail.newsrc_root", "C:\\Documents and
Settings\\seligam.VISICOM-BA\\Application
Data\\Thunderbird\\Profiles\\2fwlehcf.selmi2\\News");

user_pref("mail.root.nntp", "C:\\Documents and
Settings\\seligam.VISICOM-BA\\Application
Data\\Thunderbird\\Profiles\\2fwlehcf.selmi2\\News");

user_pref("mail.server.server3.directory", "C:\\Documents and
Settings\\seligam.VISICOM-BA\\Application
Data\\Thunderbird\\Profiles\\2fwlehcf.selmi2\\News\\news.palmos.com");
(In reply to comment #10)
> version 1.0.6 (20050721)
> still use absolute paths
No meaning of test with branch since security fix only for branch.
To get nightly, go mozilla.org, For Developers - http://www.mozilla.org/developer/  
then go Testing/Nightly Builds.
(1)mail.newsrc_root/mail.root.nntp/mail.root.none/mail.root.pop3
   mail.newsrc_root-rel/mail.root.nntp-rel/mail.root.none-rel/mail.root.pop3-rel
   were already implemented on Thunderbird 1.0.x.
   So this is not a problem, as you say. 
(2)panacea.dat
   This is a kind of "cache data" for mail UI, and I think old data in
   panacea.dat will be replaced when mail directry location change.
    - Mail files are read from new mail directry according to prefs.js.
    - New entry in panacea.dat is created for the new mail folder,
      or old entry is replaced by new one.
      (From panacea.dat point of view, a folder is moved to new mail directry)
   So I think no problem too.

Bug 301965 was marked as DUP of Bug 297312, and my problem was fixed on 7/23.
Last problem in testing...
 - Where can we get extention/theme which works on latest-trunk? 
Some recently updated extentions, such as Remove Duplicate Messages 0.0.6(July
26, 2005) or Message Notes 0.0.9(July 24, 2005), says "1.0+" is supported.
See "Newest Thunderbird Extensions" of
https://addons.mozilla.org/extensions/moreinfo.php?id=956&application=thunderbird
Can these extentions be installed on latest-trunk nightly?

By the way, Bug 297312 seems to have introduced new "extentions.cache" file to
support "Relative" on standard extentions such as DOM Inspector(contained in
program directry).
Use newest latest-trunk on test, please.
with version from 24.7 path to extension is still absolute
(extension.ini, Extension1=C:\Documents and
Settings\seligam.VISICOM-BA\Application
Data\Thunderbird\Profiles\2fwlehcf.selmi2\extensions\{12345678-1234-1234-1234-123456789abc}
[)


i scheduled download of latest build, so tomorrow i will be able to test on more
recent version
one day later as i promised but i tested with newest version

version 1.0+ (20050728)
still absolute paths in extensions.ini

tell me when there will be any change and you will want me to check again...
(but it is simple testing, just create fresh profile, install extension (i used
removeduplicates) and check extension.ini)
(In reply to comment #16)
> version 1.0+ (20050728)
> still absolute paths in extensions.ini

I could see absolute path in extensions.ini too on both Thunderbird
20050728-trunk and Firefox 20050728-trunk. 
But "Relative Path" entries in extensions.cache are observed.
This looks to be a result of design change of Extension Manager by fix for Bug
297312.
And purpose of extensions.ini seems to be changed to "install log" only.

I think new extention manager works well when Windows user-id change and profile
directry name change, even on Thunderbird. 
Michal Seliga, does your original problem still occur on latest Thunderbird nightly?

(Thunderbird 20050728, "Remove Duplicate Messages" & "Nightly Tester Tools")
(extensions.ini)
[ExtensionDirs]
Extension1=C:\Documents and Settings\...\Application  
Data\Thunderbird\Profiles\...\extensions\{12345678-1234-1234-1234-123456789abc}
Extension2=C:\Documents and Settings\...\Application
Data\Thunderbird\Profiles\...\extensions\{8620c15f-30dc-4dba-a131-7c5d20cf4a29}
(extensions.cache)
app-profile	{12345678-1234-1234-1234-123456789abc}
rel%{12345678-1234-1234-1234-123456789abc}	1122629237	
app-profile	{8620c15f-30dc-4dba-a131-7c5d20cf4a29}
rel%{8620c15f-30dc-4dba-a131-7c5d20cf4a29}	1122629327	

(Firefox 20050728, "Live HTTP Headers" & ="Tabbrowser Extensions")
(extensions.ini)
[ExtensionDirs]
Extension3=C:\Documents and Settings\...\Application
Data\Mozilla\Firefox\Profiles\...\extensions\{8f8fe09b-0bd3-4470-bc1b-8cad42b8203a}
Extension4=C:\Documents and Settings\...\Application
Data\Mozilla\Firefox\Profiles\...\extensions\{0B0B0DA8-08BA-4bc6-987C-6BC9F4D8A81E}
(extensions.cache)
app-profile	{8f8fe09b-0bd3-4470-bc1b-8cad42b8203a}
rel%{8f8fe09b-0bd3-4470-bc1b-8cad42b8203a}	1122690399	
app-profile	{0B0B0DA8-08BA-4bc6-987C-6BC9F4D8A81E}
rel%{0B0B0DA8-08BA-4bc6-987C-6BC9F4D8A81E}	1122690637	
version 1.0+ (20050803)

extension are still used from absolute path (as written in extension.ini)

(when you move folder like i did before and run thunderbird with new location
than you can't delete old location because extension's .jar file is used)
(In reply to comment #18)
> extension are still used from absolute path (as written in extension.ini)
> (when you move folder like i did before and run thunderbird with new location
> than you can't delete old location because extension's .jar file is used)

WORKSFORME(Tb latest-trunk 2005-07-31 build,Win-2K).
 (1) Create new user-id of MS Win(XXXX).
 (2) Copy C:\Doc...\Wada\App...\Thunderbird\Profiles\random_string.Test
       to C:\Doc...\XXXX\App...\Thunderbird\Profiles\random_string.Test
 (3) Edit C:\Doc...\XXXX\App...\Thunderbird\profile.ini
 (4) Login(XXXX), Start Thunderbird
     (C:\Doc...\Wada\App... is not accesible from user-id=XXXX)
     => All extensions installed under user-id=Wada are used with no problem
        under user-id=XXXX
     => Entries in extensions.ini were changed to
        C:\Doc...\XXXX\App...\Thunderbird\Profiles\random_string.Test\...        
        (extensions.ini seems to be for last used full path)

Michal, did you rename existing user-id of MS Win?
If yes, check %APPDATA% etc.
 - Open "Command Prompt"(MS DOS Prompt)
 - ECHO %APPDATA%
QA Contact: general
Assignee: mscott → nobody
michal writes "no more absolute entries found, so i guess its ok now", so 
=> WFM

full text...
hi

i didn't checked it for a very long time. now i checked for my wife's account
which was created with thunderbird 2.0.0.x (not sure which one, but it was done
in november 2008)

there are still aboslute paths in some files, but i think most of these these
entries don't matter anymore

about these i am not sure if they are important or not

xpti.dat:
[Directories,4]
0,C:\Program Files\Mozilla Thunderbird\components
1,C:\Program Files\Mozilla Thunderbird\extensions\talkback@mozilla.org\components
2,C:\Documents and Settings\countess\Application Data\Mozilla\plugins
3,C:\Program Files\Mozilla Thunderbird\plugins

secmod.db: one entry, but it again looks like some cache

-----
and these i think are safe (based on comments in bug 301442)

panacea.dat: many entries but as was written in bug its ok because its sort of cache

prefs.js:
these 3 are probably ok, because its set by user when something happens
user_pref("browser.download.dir", "C:\\Documents and Settings\\countess\\My
Documents\\My Music");
user_pref("browser.download.lastDir", "C:\\Documents and Settings\\countess\\My
Documents\\My Pictures");
user_pref("mail.compose.attach.dir", "C:\\Documents and Settings\\countess\\My
Documents\\rustina2\\small");
user_pref("messenger.save.dir", "C:\\Documents and Settings\\countess\\My
Documents\\My Pictures");

these were mentioned in bug that relative version is used and absolute is only
for compatibility so its probably ok
user_pref("mail.root.none", "C:\\Documents and Settings\\Countess\\Application
Data\\Thunderbird\\Profiles\\stptwrdi.default\\Mail");
user_pref("mail.root.none-rel", "[ProfD]Mail");
user_pref("mail.root.pop3", "C:\\Documents and Settings\\Countess\\Application
Data\\Thunderbird\\Profiles\\stptwrdi.default\\Mail");
user_pref("mail.root.pop3-rel", "[ProfD]Mail");
user_pref("mail.server.server1.directory", "C:\\Documents and
Settings\\Countess\\Application
Data\\Thunderbird\\Profiles\\stptwrdi.default\\Mail\\Local Folders");
user_pref("mail.server.server1.directory-rel", "[ProfD]Mail/Local Folders");
user_pref("mail.server.server2.directory", "C:\\Documents and
Settings\\Countess\\Application
Data\\Thunderbird\\Profiles\\stptwrdi.default\\Mail\\pop.gmail.com");
user_pref("mail.server.server2.directory-rel", "[ProfD]Mail/pop.gmail.com");

---
now she didn't had any extensions so i checked my account how it is with
extensions.ini

extensions.ini: still absolute paths but according to bug last comment they
refresh when something is changed

Extension0=C:\Documents and Settings\selmi\Application
Data\Thunderbird\Profiles\i6rpzgr1.default\extensions\{60dc76ae-47f1-42e5-997f-7f1ef3d6f3e8}
Extension1=C:\Documents and Settings\selmi\Application
Data\Thunderbird\Profiles\i6rpzgr1.default\extensions\{a0faa0a4-f1a7-4098-9a74-21efc3a92372}
Extension2=C:\Documents and Settings\selmi\Application
Data\Thunderbird\Profiles\i6rpzgr1.default\extensions\{F8147CF4-B9E3-445B-AA87-081ED66548FB}
Extension3=C:\Documents and Settings\selmi\Application
Data\Thunderbird\Profiles\i6rpzgr1.default\extensions\{F8147CF4-B9E3-445B-AA87-081ED66548F8}
Extension4=C:\Documents and Settings\selmi\Application
Data\Thunderbird\Profiles\i6rpzgr1.default\extensions\{847b3a00-7ab1-11d4-8f02-006008948af5}
Extension5=C:\Documents and Settings\selmi\Application
Data\Thunderbird\Profiles\i6rpzgr1.default\extensions\{31513E58-F253-47ad-86DB-D5F21E905429}

thats all, no more absolute entries found, so i guess its ok now
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.