Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- minor bugfixes for url-fetcher & http://www.yacy-forum.de/viewtopic.php?t=3646 - PerformanceMemory_p.html is valid XHTML again
karlchenofhell03c5906ae737
diff --git a/htroot/ConfigRobotsTxt_p.java b/htroot/ConfigRobotsTxt_p.javaindex 0f0062322..159e68816 100644--- a/htroot/ConfigRobotsTxt_p.java+++ b/htroot/ConfigRobotsTxt_p.java@@ -48,8 +48,6 @@// javac -classpath .:../classes ConfigRobotsTxt_p.java// if the shell's current path is HTROOT-import java.util.regex.Pattern;-import de.anomic.http.httpHeader;import de.anomic.http.httpdRobotsTxtConfig;import de.anomic.plasma.plasmaSwitchboard;@@ -60,8 +58,6 @@ import de.anomic.yacy.yacyCore;public class ConfigRobotsTxt_p {- public static final Pattern entryBeginPattern = Pattern.compile("# (\\w*) \\((\\d*) entries\\)");-public static servletProperties respond(httpHeader header, serverObjects post, serverSwitch env) {final servletProperties prop = new servletProperties();@@ -82,7 +78,7 @@ public class ConfigRobotsTxt_p {rbc.setStatusDisallowed(post.containsKey(httpdRobotsTxtConfig.STATUS));rbc.setSurftipsDisallowed(post.containsKey(httpdRobotsTxtConfig.SURFTIPS));rbc.setWikiDisallowed(post.containsKey(httpdRobotsTxtConfig.WIKI));- ((plasmaSwitchboard)env).setConfig(plasmaSwitchboard.ROBOTS_TXT, rbc.toString());+ env.setConfig(plasmaSwitchboard.ROBOTS_TXT, rbc.toString());}}diff --git a/htroot/CrawlURLFetch_p.html b/htroot/CrawlURLFetch_p.htmlindex 70136bbd5..251d4ea9f 100644--- a/htroot/CrawlURLFetch_p.html+++ b/htroot/CrawlURLFetch_p.html@@ -80,7 +80,7 @@<dt>Last run duration:</dt><dd>#[lastRun]# ms</dd><dt>Last server response:</dt><dd>#[lastServerResponse]#</dd><dt>Last fetched URLs:</dt><dd>#[lastFetchedURLs]#</dd>- <dt>Failed URLs:</dt>+ <dt>Last failed URLs:</dt><dd>#[error]#<ul>#{error}#diff --git a/htroot/CrawlURLFetch_p.java b/htroot/CrawlURLFetch_p.javaindex 78488f9e0..911fc1845 100644--- a/htroot/CrawlURLFetch_p.java+++ b/htroot/CrawlURLFetch_p.java@@ -476,6 +476,8 @@ public class CrawlURLFetch_p {private int stackURLs(String[] urls) throws InterruptedException {this.lastFailed = 0;this.lastFetchedURLs = 0;+ this.failed.clear();+if (urls == null) return 0;String reason;for (int i=0; i<urls.length && !isInterrupted(); i++) {diff --git a/htroot/PerformanceMemory_p.html b/htroot/PerformanceMemory_p.htmlindex 7283cdade..26be03c60 100644--- a/htroot/PerformanceMemory_p.html+++ b/htroot/PerformanceMemory_p.html@@ -58,22 +58,24 @@</tr></table>- <p><form action="PerformanceMemory_p.html" method="post" enctype="multipart/form-data">- <fieldset border="0">+ <form action="PerformanceMemory_p.html" method="post" enctype="multipart/form-data">+ <fieldset><legend>Memory Settings</legend><table border="0" cellpadding="2" cellspacing="1" width="60%">- <colgroup><col width="20%"><col width="40%"></colgroup>- <tr>- <td class="TableHeader" align="right"><label for="Xmx">Memory reserved for JVM</label> </td>- <td class="TableCellDark" align="right"><input name="Xmx" id="Xmx" type="text" size="4" maxlength="4" value="#[Xmx]#" /> MByte</td>- </tr><tr>- <td #(setStartupCommit)#class="TableCellLight"::class="commit"::class="error"#(/setStartupCommit)# colspan="2" align="right">- #(setStartupCommit)#::Accepted change. This will take effect after <strong>restart</strong> of YaCy#(/setStartupCommit)#- <input type="submit" name="setStartup" value="Set" /></td>- </tr>+ <colgroup><col width="20%" /><col width="40%" /></colgroup>+ <tr>+ <td class="TableHeader" align="right"><label for="Xmx">Memory reserved for JVM</label> </td>+ <td class="TableCellDark" align="right"><input name="Xmx" id="Xmx" type="text" size="4" maxlength="4" value="#[Xmx]#" /> MByte</td>+ </tr>+ <tr>+ <td #(setStartupCommit)#class="TableCellLight"::class="commit"::class="error"#(/setStartupCommit)# colspan="2" align="right">+ #(setStartupCommit)#::Accepted change. This will take effect after <strong>restart</strong> of YaCy#(/setStartupCommit)#+ <input type="submit" name="setStartup" value="Set" />+ </td>+ </tr></table></fieldset>- </form></p>+ </form><p><strong>FlexTable RAM Index:</strong></p><table border="0" cellpadding="2" cellspacing="1">@@ -94,7 +96,7 @@<tr class="TableCellDark"><td colspan="4">Total Mem = #[TableIndexTotalMem]# MB</td></tr>- </table></p>+ </table><p><strong>Node Caches:</strong></p><table border="0" cellpadding="2" cellspacing="1">@@ -127,7 +129,7 @@<tr class="TableCellDark"><td colspan="10">Total Mem = #[nodeCacheTotalMem]# MB; Stop Grow when less than #[nodeCacheStopGrow]# MB available left; Start Shrink when less than #[nodeCacheStartShrink]# MB availabe left</td></tr>- </table></p>+ </table><p><strong>Object Read Caches:</strong></p><table border="0" cellpadding="2" cellspacing="1">@@ -183,7 +185,7 @@<tr class="TableCellDark"><td colspan="19">Total Mem: #[objectHitCacheTotalMem]# MB (hit), #[objectMissCacheTotalMem]# MB (miss); Stop Grow when less than #[objectCacheStopGrow]# MB available left; Start Shrink when less than #[objectCacheStartShrink]# MB availabe left</td></tr>- </table></p>+ </table><!-- other cache sizes --><p><strong>Other Caching Structures:</strong></p>@@ -204,7 +206,7 @@<td>HashBlacklistedCache</td><td>#[blacklistcache.size]#</td></tr>- </table></p>+ </table>#%env/templates/footer.template%#</body></html>diff --git a/htroot/Settings_p.java b/htroot/Settings_p.javaindex 69b90331d..b3d993396 100644--- a/htroot/Settings_p.java+++ b/htroot/Settings_p.java@@ -66,12 +66,9 @@ public final class Settings_p {//if (post == null) System.out.println("POST: NULL"); else System.out.println("POST: " + post.toString());- String page = (post == null) ? "admin" : post.get("page", "admin");+ String page = (post == null) ? "general" : post.get("page", "general");- if (page.equals("admin")) {- prop.put("settingsTables", "Settings_Admin.inc");- }- else if (page.equals("general")) {+ if (page.equals("general")) {prop.put("settingsTables", "Settings_General.inc");}else if (page.equals("ProxyAccess")) {@@ -105,7 +102,7 @@ public final class Settings_p {prop.put("settingsTables", "Settings_Crawler.inc");}else {- prop.put("settingsTables", "Settings_Admin.inc");+ prop.put("settingsTables", "Settings_General.inc");}prop.put("port", env.getConfig("port", "8080"));diff --git a/htroot/Status_p.inc b/htroot/Status_p.incindex e6edc69ec..a80c5f358 100644--- a/htroot/Status_p.inc+++ b/htroot/Status_p.inc@@ -127,7 +127,7 @@Disabled. To enable this you need a FTP account where you can upload files to a web space. If you do that, you become a YaCy root server.</td><td>- <a href="Settings_p.html#seed">[Configure]</a>.+ <a href="Settings_p.html?page=seed">[Configure]</a>.::Enabled: Updating periodically to server #[seedServer]#.Last upload: #[lastUpload]# ago.diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.javaindex de88b3288..67fbefcc1 100644--- a/source/de/anomic/plasma/plasmaSwitchboard.java+++ b/source/de/anomic/plasma/plasmaSwitchboard.java@@ -646,7 +646,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements serpublic static final String HTTPC_NAME_CACHE_CACHING_PATTERNS_NO = "httpc.nameCacheNoCachingPatterns";public static final String ROBOTS_TXT = "httpd.robots.txt";- public static final String ROBOTS_TXT_DEFAULT = httpdRobotsTxtConfig.LOCKED + " " + httpdRobotsTxtConfig.DIRS;+ public static final String ROBOTS_TXT_DEFAULT = httpdRobotsTxtConfig.LOCKED + "," + httpdRobotsTxtConfig.DIRS;//////////////////////////////////////////////////////////////////////////////////////////////// Lists