Commit Graph
8 Commits
Author SHA1 Message Date
szznax 6a5b5e4639 Fix HER-1509 changes carried forward from h2
* DefaultProcessorURI.java
  add constructor that supports setting via
* CustomSWFTags.java, CrawlUriSWFAction.java
  look for links in a couple more places
* ExtractorSWF.java
  ExtractorTagParser.parsePlaceObject2() - read 32 bit clip event
    flags when flash version >= 6
* ExtractorSWFTest.java
  xestHer1509() - test this fix (rename to enable the test)
2009-05-23 00:17:41 +00:00
szznax 78a38d6fc1 minor improvement
* Extractor.java
  added instance initializer for DEFAULT_PARAMETERS, and set
  @Autowired(required=false) eliminates the need for test
  classes to set them explicitly.
* ExtractorCSSTest.java
  remove explicit setting of default parameters
* ExtractorHTMLTest.java
  remove explicit setting of default parameters
* JerichoExtractorHTMLTest.java
  remove explicit setting of default parameters
2009-05-21 23:34:18 +00:00
szznax c891a0b278 copy to h3 2009-05-14 23:55:45 +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 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 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 e047bf68e0 copy 'springy' branch to heritrix3 2009-05-11 22:56:36 +00:00