Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

better logging for invalid file path detection

orbiteradf75bc9fa35
diff --git a/source/de/anomic/plasma/plasmaCrawlWorker.java b/source/de/anomic/plasma/plasmaCrawlWorker.java
index ccb1421cb..43afeffe1 100644
--- a/source/de/anomic/plasma/plasmaCrawlWorker.java
+++ b/source/de/anomic/plasma/plasmaCrawlWorker.java
@@ -365,7 +365,9 @@ public final class plasmaCrawlWorker extends Thread {
if (!htCache.cacheFile.getCanonicalPath().startsWith(cacheManager.cachePath.getAbsolutePath())) {
// if the response has not the right file type then reject file
remote.close();
- log.logInfo("REJECTED URL " + url.toString() + " because of an invalid file path '" + htCache.cacheFile.getAbsolutePath() + "'.");
+ log.logInfo("REJECTED URL " + url.toString() + " because of an invalid file path ('" +
+ htCache.cacheFile.getCanonicalPath() + "' does not start with '" +
+ cacheManager.cachePath.getAbsolutePath() + "').");
return;
}