Commit Graph

35 Commits

Author SHA1 Message Date
gojomo dccf2becae copy to h3
Fix for [HER-1612] lock contention in BeanShellDecideRule/BeanShellProcessor occurs even if isolate-threads=true
* BeanShellDecideRule.java
    (getInterpreter) add synchronization
    (decisionFor) remove method synchronization; sync on interpreter/getInterpreter makes it a superfluous bottleneck
* BeanShellProcessor.java
    (getInterpreter) add synchronization
    (innerProcess) remove method synchronization; sync on interpreter/getInterpreter makes it a superfluous bottleneck
2009-05-14 22:27:10 +00:00
gojomo dc117fb958 * commons/pom.xml
use latest 3.3.75 bdb je jar
2009-05-14 22:26:21 +00:00
gojomo 58c9e5f0b1 copy to h3
Fix for [HER-1567] extractor for Wap 2.0 pages -- reported by Christian Dehning
* ExtractorHTML.java
    shouldExtract() - accept various Wap mime types
2009-05-14 22:23:17 +00:00
gojomo db794496fb copy to h3
Fix for [HER-1550] set-source-tag option nonfunctional
* CrawlURI.java
    ensure 'heritable' key is itself heritable; also change heritable collection to a set
2009-05-14 22:20:07 +00:00
gojomo 58d2a2ec31 copy to h3
Fix for [HER-1552] Redirects not reported in seeds-report
* ExtractorHTTP.java
    restore expected convention of http-header context ending in ':'
2009-05-14 22:10:06 +00:00
gojomo a1e9d064da copy to h3
Fix for [HER-1520] Windows mapped-files cause intermittent ReplayCharSequenceTest.testReplayCharSequenceByteToStringMulti failures, risk other problems
* GenericReplayCharSequence.java
    use more diverse filenames, so subsequent decodes don't run into lingering open mapped sections of previous decodes
    do delete via new FileUtils.deleteSoonerOrLater utility
* FileUtils.java
   (deleteSoonerOrLater) try immediate delete, but if fails, add to a list of files to be retried later
2009-05-14 21:31:45 +00:00
gojomo 9155e5f4f9 copying noah's work to h3
Fix for [HER-1506] ByteReplayCharSequence ignores specified/non-default character encodings, reported by Jean-No?\195?\171l Rivasseau
* RecordingOutputStream.java
    use ByteReplayCharSequence only for iso8859-1
* ReplayCharSequenceTest.java
    new tests for iso8859-1, windows-1252 and ascii
2009-05-14 21:19:24 +00:00
gojomo ad33d302ff copying noah's work to h3
[HER-1506] correct javadoc on use of these classes
* GenericReplayCharSequence.java
* Latin1ByteReplayCharSequence.java
2009-05-14 21:12:34 +00:00
gojomo 5baac7cc45 copying noah's work to h3
[HER-1506] rename classes to reflect true roles
* MultiByteReplayCharSequence.java -> GenericReplayCharSequence.java
* ByteReplayCharSequence.java -> Latin1ByteReplayCharSequence.java
* RecordingOutputStream.java
    update references
2009-05-14 21:10:44 +00:00
gojomo 37ea37b883 Fix for [HER-1564] Update 'public suffix list' (effective_tld_names.dat)
* effective_tld_names.dat
    update to latest version from publisuffix.org (Mozilla) -- downloaded 2009-05-14
2009-05-14 20:56:51 +00:00
gojomo dae03cb1de port to h3 noah's fix
Fix for [HER-1533] bottleneck in StatisticsTracker.saveSourceStats
* StatisticsTrackerImpl.java
    saveSourceStats() -- call put() on the CachedBdbMap only when entry is
    added, not on every change
2009-05-14 20:51:46 +00:00
gojomo 8c620ae846 Fix for [HER-1632] Update Jericho HTML Parser to 2.6
* commons/pom.xml
    update requested versions to 2.6.1
2009-05-14 20:47:29 +00:00
gojomo e9622784f6 Apply to h3
Fix for [HER-1225] HtmlFormCredential.java may create non-wellformed URLs
* HtmlFormCredential.java
    only insert '&' if previous query-string was non-empty
2009-05-14 20:32:42 +00:00
gojomo 9994edb170 HER-565 / improve output if problem recurs 2009-05-14 20:29:01 +00:00
gojomo badbac399f apply to h3
Fix for [HER-1521] Make the UncompressedARCReader and CompressedARCReader in the ARCReaderFactory as public or protected
* ARCReaderFactory.java, WARCReaderFactory.java
    make compressed/uncompressed implementation inner classes public to enable direct reuse
2009-05-14 20:24:56 +00:00
gojomo 8ff73f8a97 apply to h3
Fix for [HER-1558]  ${HOSTNAME} in arc suffix is only replaced completely
* WriterPoolProcessor.java
    replace ${HOSTNAME} in suffix, rather than test for exactly ${HOSTNAME}
2009-05-14 20:17:38 +00:00
gojomo b2e1fe93fd apply to h3
Fix for [#HER-1554] META http-equiv refresh content containing only a number misinterpreted as a URI - IA Webteam JIRA:
* ExtractorHTML.java
    don't use full 'content' as META refresh URL in absence of '='
2009-05-14 20:14:03 +00:00
gojomo 7480d2933b Cleanup for h3 of [HER-1045] [contrib] make it easier to set FetchHTTP local bind address, use rotation of alternate local addresses
* FetchHTTP.java
    advertise key for CrawlURI-based bindAddress override as static constant HTTP_BIND_ADDRESS
* CoreAttributeConstants.java
    remove unused A_HTTP_BIND_ADDRESS
2009-05-13 23:49:36 +00:00
gojomo a89cf707ce apply to h3
Fix for [HER-1499] crawl.log has no annotation indicating that WARCWriterProcessor wrote a revisit record
* WARCWriterProcessor.java
    add annotations "warcRevisit:digest" or "warcRevisit:notModified" when revisit record written
2009-05-13 23:37:55 +00:00
gojomo 9558d94b5d apply to h3
Fix for [HER-1532] robots.txt with html <BR> markup causing NumberFormatException
* RobotsTxtTest.java
    test based on ecnountered robots.txt with HTML markup but clear intent
* RobotsTxt.java
    strip HTML markup from each line before parsing
    strip expected numbers in Crawl-Delay to first run of digits-and-decimal-points
    catch any NumberFormatException in Crawl-Delay number and ignore, continuing other parsing
2009-05-13 23:34:29 +00:00
gojomo 58486c5f18 (copying from h2 to h3)
Fix for [HER-1277] speculative javascript link caused 404s for "http%3A" and "www.example.com" like strings
* ExtractorJS.java
    perform additional decoding or prepending of "http:" for speculative candidate URIs that appear to need it
* ArchiveUtils.java
    add utility set/method with list of all TLDs
    
Fix for [HER-1524] speculativeFixup in ExtractorJS should maintain URL scheme
* ExtractorJS.java
    (speculativeFixup) maintain origin URI scheme if apparent target host is same
2009-05-13 02:14:15 +00:00
gojomo ab6942a60d Fix for [HER-1291] accurate scoping not possible at log-recovery time; URIs may be recrawled against expectations
* FrontierJournal.java
    refactor to always operate on CrawlURI instances (with hops-path and via info), and to write longer info on success/failure lines
2009-05-13 01:43:41 +00:00
gojomo a530af6e5c Improvement for [HER-1] Support 'Crawl-Delay' and 'Allow' robots.txt directives
* AbstractFrontier.java
    change boolean 'respect-crawl-delay' to integer 'respect-crawl-delay-up-to-secs'
Fix for [HER-1516] in datamodel.Robotstxt, Integer.parseInt generates NumberFormatException on floating point Crawl-delay strings
* RobotsDirectives.java, RobotsTxt.java, RobotsExclusionPolicy.java
    parse, store, return crawlDelay as float
* RobotsTxtTest.java
    compare value as float
2009-05-13 01:14:58 +00:00
gojomo 2c7c07ba64 apply to h3 noah's fix
[HER-1510] meta refresh url from a seed considered as a seed
* LinksScoper.java 
	(considerAsSeed) return true any seed with hop type Hop.REFER, which
	includes meta refreshes; also simplify the code a bit
2009-05-12 22:29:54 +00:00
gojomo 2dec5dfd1a Fix for [HER-1268] ExtractorHTML not able to extract some links (due to them violating RFC2396)
* ExtractorHTMLTest.java, UURIFactoryTest.java
    test that relative-URIs with late-position colons aren't interpreted as absolute URIs with long, illegal schemes
* UURIFactory.java
    update RFC2396REGEX to require legal scheme
* LaxURI.java
    allow illegal candidate scheme to just be interpreted as something else
2009-05-12 22:22:11 +00:00
gojomo 252cf63863 Fix for [HER-1524] speculativeFixup in ExtractorJS should maintain URL scheme
* ExtractorHTMLTest.java
    test for maintaining 'https' when speculative, leading-domain URI is on same host
* ExtractorJS.java
    (speculativeFixup) maintain origin URI scheme if apparent target host is same

Fix for [HER-1526] SCRIPT writing script TYPE common trigger of bogus links (eg. 'text/javascript')
Fix for [HER-1611] more javascript false-positives from Google Analytics insert
* ExtractorJS.java
    port of Steve's work in h2: blacklist for URIs, extracted strings to handle common mis-extractions
* ExtractorHTMLTest.java
    port of test for 'text/javascript' false extract
2009-05-12 22:09:22 +00:00
gojomo 2a73339211 Forward port for [HER-1525] Bump WARC version to match latest (0.18, June-2008) ISO draft
* WARCConstants.java, WARCWriter.java, WARCWriterProcessor.java
    remove/update references to pre-0.18 versions or old class names
2009-05-12 19:51:16 +00:00
gojomo 2c11eb1dc2 Remove cruft comments 2009-05-12 19:50:05 +00:00
gojomo fb97744dfd Fix for [HER-1495] ARCRecord throws null pointer when trying to generate a RecoverableIOException
* ARCRecord.java
    guard against bull statusBytes in exception message
2009-05-12 19:43:20 +00:00
gojomo 8de6b2a9c5 Fix for [HER-1502] selftests break if 'localhost' does not resolve to 127.0.0.1
* (all)
    change 'localhost' to '127.0.0.1'
2009-05-12 18:40:18 +00:00
gojomo 3f7d85d7aa Fix for [HER-1528] NumberFormatException in UURIFactory.checkPort()
* UURIFactoryTest.java
    test that port-looking-part that's out of integer bounds throws URIException not NumberFormatException
* UURIFactory.java
    catch NumberFormatException; allow to surface as URIException
2009-05-12 18:21:17 +00:00
gojomo 4082195690 Fix for [HER-1529] AggressiveExtractorHTML reports back as ExtractorHTML2 in processor reports
* AggressiveExtractorHTML.java
    correct self-reported name
2009-05-12 18:04:14 +00:00
gojomo c8a5446695 Test robustness
* SelfTestBase.java
    don't allow negative random passwords, in case leading '-' is causing problems
* Heritrix.java
    echo arguments when showing usage info -- to understand what went wrong
2009-05-12 02:10:37 +00:00
gojomo daf5ed7590 Update pom.xml * 4
more naming improvements
    ignore test cruft
    update SCM url
2009-05-12 00:17:01 +00:00
gojomo e047bf68e0 copy 'springy' branch to heritrix3 2009-05-11 22:56:36 +00:00