Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe Commits: 66badc06 by Tony Chemit at 2022-06-20T18:06:57+02:00 Update changelog for v.9.0.6 [skip CI] - - - - - 9790a883 by Tony Chemit at 2022-06-20T18:06:57+02:00 Nom du fichier de log constant sur le serveur quelque soit la version installée - Closes 2283 - - - - - 2 changed files: - CHANGELOG.md - server/configuration/src/main/java/fr/ird/observe/server/configuration/ServerConfig.java Changes: ===================================== CHANGELOG.md ===================================== @@ -1,7 +1,30 @@ # ObServe changelog * Author [Tony Chemit](mailto:dev@tchemit.fr) - * Last generated at 2022-06-12 10:55. + * Last generated at 2022-06-20 18:06. + +## Version [9.0.6](https://gitlab.com/ultreiaio/ird-observe/-/milestones/231) + +**Closed at 2022-06-20.** + +### Download +* [Client (observe-9.0.6-client.zip)](https://repo1.maven.org/maven2/fr/ird/observe/observe/9.0.6/observe-9.0.6-cl...) +* [Serveur (observe-9.0.6.war)](https://repo1.maven.org/maven2/fr/ird/observe/observe/9.0.6/observe-9.0.6.wa...) +* [Serveur (observe-9.0.6-server.zip)](https://repo1.maven.org/maven2/fr/ird/observe/observe/9.0.6/observe-9.0.6-se...) + + +### Issues + * [[Type::Anomalie 2005]](https://gitlab.com/ultreiaio/ird-observe/-/issues/2005) **Erreur d'ajout de trip ( methode POST)** (Thanks to Tony CHEMIT) (Reported by adelphe n'goran) + * [[Type::Anomalie 2283]](https://gitlab.com/ultreiaio/ird-observe/-/issues/2283) **Nom du fichier de log constant sur le serveur quelque soit la version installée** (Thanks to Tony CHEMIT) (Reported by Pascal Cauquil) + * [[Type::Anomalie 2335]](https://gitlab.com/ultreiaio/ird-observe/-/issues/2335) **En cas de perte de connexion, le message est un peu violent** (Thanks to Tony CHEMIT) (Reported by Pascal Cauquil) + * [[Type::Anomalie 2400]](https://gitlab.com/ultreiaio/ird-observe/-/issues/2400) **Toujours un petit problème d'accessibilité de l'action Enregistrer sur les formulaires de type tableau** (Thanks to ) (Reported by Tony CHEMIT) + * [[Type::Anomalie 2402]](https://gitlab.com/ultreiaio/ird-observe/-/issues/2402) **Exception** (Thanks to Tony CHEMIT) (Reported by Pascal Cauquil) + * [[Type::Anomalie 2403]](https://gitlab.com/ultreiaio/ird-observe/-/issues/2403) **Erreur en quittant le gestionnaire de connexions** (Thanks to Tony CHEMIT) (Reported by Pascal Cauquil) + * [[Type::Anomalie 2404]](https://gitlab.com/ultreiaio/ird-observe/-/issues/2404) **INDEX en doublons ?** (Thanks to Tony CHEMIT) (Reported by Pascal Cauquil) + * [[Type::Anomalie 2405]](https://gitlab.com/ultreiaio/ird-observe/-/issues/2405) **Erreur sur les commentaires du référentiel Type de balise sélectionné** (Thanks to adelphe n'goran) (Reported by adelphe n'goran) + * [[Type::Anomalie 2407]](https://gitlab.com/ultreiaio/ird-observe/-/issues/2407) **Revue et correction du cache de contextes de persistance** (Thanks to Tony CHEMIT) (Reported by Tony CHEMIT) + * [[Type::Anomalie 2408]](https://gitlab.com/ultreiaio/ird-observe/-/issues/2408) **Avec java 17 les erreurs sont mal remontée depuis le serveur** (Thanks to Tony CHEMIT) (Reported by Tony CHEMIT) + * [[Type::Evolution 2406]](https://gitlab.com/ultreiaio/ird-observe/-/issues/2406) **Préfixes des statistiques dans l'arbre** (Thanks to Tony CHEMIT) (Reported by Pascal Cauquil) ## Version [9.0.5](https://gitlab.com/ultreiaio/ird-observe/-/milestones/230) @@ -12,7 +35,6 @@ * [Serveur (observe-9.0.5.war)](https://repo1.maven.org/maven2/fr/ird/observe/observe/9.0.5/observe-9.0.5.wa...) * [Serveur (observe-9.0.5-server.zip)](https://repo1.maven.org/maven2/fr/ird/observe/observe/9.0.5/observe-9.0.5-se...) - ### Issues * [[Type::Anomalie 2398]](https://gitlab.com/ultreiaio/ird-observe/-/issues/2398) **Exception sur consultation des UI referentiel** (Thanks to Tony CHEMIT) (Reported by Pascal Cauquil) ===================================== server/configuration/src/main/java/fr/ird/observe/server/configuration/ServerConfig.java ===================================== @@ -146,10 +146,13 @@ public class ServerConfig extends GeneratedServerConfig implements CleanTemporar } File log4jConfigurationFile = getCommonLog4jConfigurationFile(); - if (!log4jConfigurationFile.exists()) { - ServerResources.LOG_CONFIGURATION.copyResource(log4jConfigurationFile); - log.info(String.format("Generate empty log4j configuration file to: %s", log4jConfigurationFile)); + try { + Files.deleteIfExists(log4jConfigurationFile.toPath()); + } catch (IOException e) { + throw new RuntimeException(e); } + ServerResources.LOG_CONFIGURATION.copyResource(log4jConfigurationFile); + log.info(String.format("Generate empty log4j configuration file to: %s", log4jConfigurationFile)); } public boolean isWindows() { @@ -221,11 +224,16 @@ public class ServerConfig extends GeneratedServerConfig implements CleanTemporar } private void initLog() { - File logFile = getLog4jConfigurationFile(); - log.info(String.format("Chargement du fichier de log : %s", logFile)); - ObserveUtil.loadLogConfiguration(ServerResources.LOG_CONFIGURATION, getCommonLog4jConfigurationFile().toPath(), logFile.toPath(), this); + File log4jConfigurationFile = getLog4jConfigurationFile(); + try { + Files.deleteIfExists(log4jConfigurationFile.toPath()); + } catch (IOException e) { + throw new RuntimeException(e); + } + log.info(String.format("Chargement du fichier de log : %s", log4jConfigurationFile)); + ObserveUtil.loadLogConfiguration(ServerResources.LOG_CONFIGURATION, getCommonLog4jConfigurationFile().toPath(), log4jConfigurationFile.toPath(), this); log = LogManager.getLogger(ServerConfig.class); - log.info(String.format("Configuration des logs chargée depuis le fichier %s", logFile)); + log.info(String.format("Configuration des logs chargée depuis le fichier %s", log4jConfigurationFile)); } } View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/cafa05f21da7600d5a0b6dd6b... -- View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/cafa05f21da7600d5a0b6dd6b... You're receiving this email because of your account on gitlab.com.
participants (1)
-
Tony CHEMIT (@tchemit)