fix check if thumbnail is enabled
@@ -61,8 +61,10 @@ public class ThumbnailAction extends FessSearchAction {
final File thumbnailFile = thumbnailManager.getThumbnailFile(doc);
if (thumbnailFile == null) {
- // 404
+ if (fessConfig.isThumbnailEnabled()) {
thumbnailManager.offer(doc);
+ }
+ // 404
throw responseManager.new404("Thumbnail for " + form.docId + " is under generating.");
}
