Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Fix for last Commit: .class Files in htroot, not in the dir of the localized HTML-Files
alloec10220d57c7
diff --git a/source/de/anomic/http/httpdFileHandler.java b/source/de/anomic/http/httpdFileHandler.javaindex e73ad8861..e84bd3f90 100644--- a/source/de/anomic/http/httpdFileHandler.java+++ b/source/de/anomic/http/httpdFileHandler.java@@ -411,7 +411,7 @@ public final class httpdFileHandler extends httpdAbstractHandler implements httpout.flush();return;}-+ File targetClass=null;try {// locate the fileif (!(path.startsWith("/"))) path = "/" + path; // attach leading slash@@ -423,15 +423,27 @@ public final class httpdFileHandler extends httpdAbstractHandler implements httpfor (int i = 0; i < defaultFiles.length; i++) {testpath = path + defaultFiles[i];targetFile = getLocalizedFile(testpath);- if (!(targetFile.exists())) targetFile = new File(htDocsPath, testpath);- if (targetFile.exists()) {path = testpath; break;}+ targetClass = rewriteClassFile(new File(htDefaultPath, testpath));+ if (!(targetFile.exists())){+ targetFile = new File(htDocsPath, testpath);+ targetClass = rewriteClassFile(new File(htDocsPath, path));+ }+ if (targetFile.exists()) {+ path = testpath;+ break;+ }}}else{- if (!(targetFile.exists())) targetFile = new File(htDocsPath, path);+ if (!(targetFile.exists())){+ targetFile = new File(htDocsPath, path);+ targetClass = rewriteClassFile(new File(htDocsPath, path));+ }else{+ targetClass = rewriteClassFile(new File(htDefaultPath, path));+ }}- File targetClass = rewriteClassFile(targetFile);+ //File targetClass = rewriteClassFile(targetFile);Date targetDate;if ((targetClass != null) && ((path.endsWith("png") || (path.endsWith("gif"))))) {