Bug #1826
RCP: 0.7.7, Windows network accounts not saving preferences
Statut: | Closed | Début: | 19/07/2016 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 100% |
|
Catégorie: | Démarrage | Temps passé: | - | |
Version cible: | TXM 0.7.8 |
Description
Diagnostic A¶
On some Windows, depending on the network account type used, TXM may run the post-installation-java sequence at start-up for each Windows session and then compels the user to set TXM user home, etc. preferences.
Hypothesis A-1¶
For some network accounts, possibly different kind of network account profiles, when TXM starts it can see four different configurations that produce the observed behavior:
- the post-install-bat has been executed because (and the preferences has been reseted):
- the APPDATA\.txm directory was not found (eg C:\Users\<login>\AppData\Roaming\.txm or \\server\share\users\<login>\.txm)
- an administrator or the user deleted the .txm directory
- an automated administrator task cleaned the APPDATA directory
- the APPDATA\.txm STAMP file is older than the TXM installation STAMP file
- the APPDATA\.txm directory was not found (eg C:\Users\<login>\AppData\Roaming\.txm or \\server\share\users\<login>\.txm)
- TXM start sequence tests:
- the TXMHOME preference is not set
- the System.getProperty("user.home")+/TXM directory is not found or not readable or not writable (C:\Users\<login utilisateur>)
Hypothesis A-2¶
If the user modifies the TXMHOME preference, it is not restored during the post-installation-java because the post-installation-java always reset it using the 'System.getProperty("user.home")+/TXM' path.
Solution¶
The post-installation-java must restore the TXMHOME preference of the previous "org.txm.rcpapplication.prefs" installation preference file.
Diagnostic B¶
It has been observed that post-install-bat, the C:\Users\<login utilisateur>\AppData\Roaming\.txm\.metadata\.plugins\org.eclipse.core.runtime\.settings directory is emptied during TXM startup.
Hypothesis B¶
When TXM starts it can see one configuration that produce the observed behavior:- the STAMP file found in C:\Users\<login utilisateur>\AppData\Roaming\.txm is older then the STAMP file found in the TXM installation directory
h3. Solution 1
- for network accounts, the path should look like \\servdfs.ens-lyon.fr\whomes\%USERNAME% for some account types and \\something\else\%USERNAME% for other account types
- for local Windows, the path should look like C:\Users\%USERNAME%
h3. Solution 2
for an "all users" installation type of TXM on Windows on machines used by network accounts, the administrator patches the TXM.bat script after installation to point to the correct user home directory variable.
Annex¶
On Windows, use an instruction in TXM.bat giving a correct/stable path accessible to the user (the user home
Demandes liées
Historique
#1 Mis à jour par Matthieu Decorde il y a environ 9 ans
- Description mis à jour (diff)
- % réalisé changé de 0 à 80
#2 Mis à jour par Matthieu Decorde il y a environ 9 ans
- Description mis à jour (diff)
- % réalisé changé de 80 à 0
#3 Mis à jour par Matthieu Decorde il y a environ 9 ans
- Description mis à jour (diff)
#4 Mis à jour par Matthieu Decorde il y a presque 9 ans
- Description mis à jour (diff)
- Version cible changé de TXM 0.7.8 à TXM 0.8.0a (split/restructuration)
#5 Mis à jour par Matthieu Decorde il y a plus de 8 ans
- Description mis à jour (diff)
#6 Mis à jour par Matthieu Decorde il y a plus de 8 ans
- Description mis à jour (diff)
#7 Mis à jour par Matthieu Decorde il y a plus de 8 ans
- Sujet changé de RCP: 0.7.7, Windows not saving preferences à RCP: 0.7.7, Windows network accounts not saving preferences and network paths access bug
- Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.7.8
#8 Mis à jour par Serge Heiden il y a plus de 8 ans
- Description mis à jour (diff)
#9 Mis à jour par Serge Heiden il y a plus de 8 ans
- Description mis à jour (diff)
#10 Mis à jour par Serge Heiden il y a plus de 8 ans
- Description mis à jour (diff)
#11 Mis à jour par Serge Heiden il y a plus de 8 ans
- Description mis à jour (diff)
#12 Mis à jour par Matthieu Decorde il y a plus de 8 ans
- Sujet changé de RCP: 0.7.7, Windows network accounts not saving preferences and network paths access bug à RCP: 0.7.7, Windows network accounts not saving preferences
#13 Mis à jour par Matthieu Decorde il y a plus de 8 ans
- Description mis à jour (diff)
#14 Mis à jour par Matthieu Decorde il y a plus de 8 ans
- Description mis à jour (diff)
#15 Mis à jour par Matthieu Decorde il y a plus de 8 ans
- Description mis à jour (diff)
#16 Mis à jour par Matthieu Decorde il y a plus de 8 ans
- Description mis à jour (diff)
#17 Mis à jour par Matthieu Decorde il y a plus de 8 ans
- Description mis à jour (diff)
#18 Mis à jour par Matthieu Decorde il y a plus de 8 ans
- % réalisé changé de 0 à 80
#19 Mis à jour par Sebastien Jacquot il y a plus d'un an
- Statut changé de New à Closed
#20 Mis à jour par Sebastien Jacquot il y a plus d'un an
- % réalisé changé de 80 à 100