JETTY-1414 HashLoginService doesn't refresh realm if specified config filename is not an absolute platform specific value
Also add extra debug to scanner.
This commit is contained in:
parent
39fce10d74
commit
0dfbf8bb0d
|
@ -207,11 +207,16 @@ public class HashLoginService extends MappedLoginService
|
|||
});
|
||||
_scanner.addListener(new BulkListener()
|
||||
{
|
||||
public void filesChanged(List filenames) throws Exception
|
||||
public void filesChanged(List<String> filenames) throws Exception
|
||||
{
|
||||
if (filenames == null) return;
|
||||
if (filenames.isEmpty()) return;
|
||||
if (filenames.size() == 1 && filenames.get(0).equals(_config)) loadUsers();
|
||||
if (filenames.size() == 1)
|
||||
{
|
||||
Resource r = Resource.newResource(filenames.get(0));
|
||||
if (r.getFile().equals(_configResource.getFile()))
|
||||
loadUsers();
|
||||
}
|
||||
}
|
||||
|
||||
public String toString()
|
||||
|
|
|
@ -502,7 +502,7 @@ public class Scanner extends AbstractLifeCycle
|
|||
}
|
||||
|
||||
if (Log.isDebugEnabled())
|
||||
Log.debug("scanned "+_notifications);
|
||||
Log.debug("scanned "+_scanDirs+": "+_notifications);
|
||||
|
||||
// Process notifications
|
||||
// Only process notifications that are for stable files (ie same in old and current scan).
|
||||
|
|
Loading…
Reference in New Issue