try to fix path too long

see http://www.yacy-forum.de/viewtopic.php?p=19079

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1893 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
borg-0300 19 years ago
parent a6a3f4b694
commit ec21c585cb

@ -366,7 +366,14 @@ public final class plasmaCrawlWorker extends Thread {
cacheManager.cachePath.getAbsolutePath() + "')."); cacheManager.cachePath.getAbsolutePath() + "').");
return null; return null;
} }
if (htCache.cacheFile.getAbsolutePath().length() > 255) {
remote.close();
log.logInfo("REJECTED URL " + url.toString() + " because path too long '" +
cacheManager.cachePath.getAbsolutePath() + "'");
return (htCache = null);
}
// request has been placed and result has been returned. work off response // request has been placed and result has been returned. work off response
File cacheFile = cacheManager.getCachePath(url); File cacheFile = cacheManager.getCachePath(url);
try { try {

Loading…
Cancel
Save