From e79591331d28d14d5c35cedd24eb26b710dbd6e3 Mon Sep 17 00:00:00 2001 From: Laurent Fasani Date: Wed, 26 Oct 2016 15:38:34 +0200 Subject: [502065] Enhance user file localization for FileUserManager * UserManager gets the users in a file on server. Previously, the file path could be absolute or relative to the application. * Now the file path can also be relative to the config folder (where cdo-server.xml is) by specifying "@config/...". * File validity checks are removed to support file creation during addUser(). * With -Dnet4j.security.FileUserManager.fallBackToConfigFolder=true a relative path is resolved in both the application's current folder and the config folder (in this order). Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=502065 Change-Id: I63b559c93cb67ccfc656018fe0136511e7434c03 Signed-off-by: Laurent Fasani Signed-off-by: Eike Stepper --- .../config/cdo-server.xml | 2 +- .../config/cdo-server.xml | 2 +- .../config/cdo-server.xml | 2 +- .../util/security/FileAuthenticatorFactory.java | 2 +- .../net4j/util/security/FileUserManager.java | 143 ++++++++++++++------- .../eclipse/net4j/util/security/UserManager.java | 2 +- 6 files changed, 104 insertions(+), 49 deletions(-) diff --git a/plugins/org.eclipse.emf.cdo.examples.installer/examples/org.eclipse.emf.cdo.examples.master/config/cdo-server.xml b/plugins/org.eclipse.emf.cdo.examples.installer/examples/org.eclipse.emf.cdo.examples.master/config/cdo-server.xml index 4ee090478a..4f9f109c36 100644 --- a/plugins/org.eclipse.emf.cdo.examples.installer/examples/org.eclipse.emf.cdo.examples.master/config/cdo-server.xml +++ b/plugins/org.eclipse.emf.cdo.examples.installer/examples/org.eclipse.emf.cdo.examples.master/config/cdo-server.xml @@ -31,7 +31,7 @@ -->