Skip to content
Permalink
Browse files

Added fix for NAS-2529 in netarchivesuite-5.1-LBS-2016-02-RC1

  • Loading branch information...
svcarlsen committed May 19, 2016
1 parent ec9cef4 commit 500ff58cb4859bef6b68ff9f793dd9e97d01bedf
@@ -71,7 +71,7 @@
public String getClassKey(CrawlURI cauri) {
String candidate;

boolean ignoreSourceSeed = cauri != null && cauri.getCanonicalString().startsWith("dns");
boolean ignoreSourceSeed = cauri != null; // don't igoreSourceSeed if it is a dns url
try {
// Since getClassKey has no contract, we must encapsulate it from errors.
candidate = super.getClassKey(cauri);
@@ -125,6 +125,8 @@ private String getCandidateFromSource(CrawlURI cauri) {
log.warn("Hostname could not be extracted from sourceCandidate: " + sourceCandidate);
return null;
}
return DomainUtils.domainNameFromHostname(hostname);
String candidateKey = DomainUtils.domainNameFromHostname(hostname);
//log.info("CandidateKey: " + candidateKey);
return candidateKey;
}
}

0 comments on commit 500ff58

Please sign in to comment.
You can’t perform that action at this time.