This commit is contained in:
Shinsuke Sugaya 2016-02-14 22:03:03 +09:00
parent 7166ab805c
commit 85e9590dfa
3 changed files with 3 additions and 5 deletions

View file

@ -48,12 +48,11 @@ public class CacheAction extends FessSearchAction {
// ==============
@Execute
public ActionResponse index(final CacheForm form) {
validate(form, messages -> {}, () -> asHtml(path_Error_ErrorJsp));
if (isLoginRequired()) {
return redirectToLogin();
}
validate(form, messages -> {}, () -> asHtml(path_Error_ErrorJsp));
Map<String, Object> doc = null;
try {
doc =

View file

@ -60,10 +60,10 @@ public class GoAction extends FessSearchAction {
// ==============
@Execute
public ActionResponse index(final GoForm form) throws IOException {
validate(form, messages -> {}, () -> asHtml(path_Error_ErrorJsp));
if (isLoginRequired()) {
return redirectToLogin();
}
validate(form, messages -> {}, () -> asHtml(path_Error_ErrorJsp));
Map<String, Object> doc = null;
try {

View file

@ -48,12 +48,11 @@ public class ScreenshotAction extends FessSearchAction {
// ==============
@Execute
public ActionResponse index(final ScreenshotForm form) {
validate(form, messages -> {}, () -> asHtml(path_Error_ErrorJsp));
if (isLoginRequired()) {
return redirectToLogin();
}
validate(form, messages -> {}, () -> asHtml(path_Error_ErrorJsp));
final Map<String, Object> doc =
fessEsClient.getDocument(fessConfig.getIndexDocumentSearchIndex(), fessConfig.getIndexDocumentType(),
queryRequestBuilder -> {