Commit Graph
2753 Commits
Author SHA1 Message Date
Alex Osborne 9b5900b528 FetchHTTP2: Avoid silently decoding gzip
Fixes `Recorder getContentReplayInputStream
WARNING: gzip problem; using raw entity instead`.
2025-06-12 21:36:14 +09:00
Alex Osborne 24da104e38 Add link to #657 in CHANGELOG.md 2025-06-12 10:57:53 +09:00
Alex Osborne 789bd265ca Add CHANGELOG.md entry for #659 2025-06-12 10:56:41 +09:00
Alex Osborne 5601453a45 Merge pull request #659 from internetarchive/adam/handle-bdb-shutdown-interrupts
fix: handle bdb shutdown interrupts
2025-06-12 10:49:37 +09:00
Adam Miller 1ab9b4a206 fix: avoid bdb environment corruption when terminate is called during shutdown 2025-06-11 17:44:52 -07:00
Adam Miller 0494d63ea2 fix: Avoid a NullPointerException when terminate is called again during shutdown 2025-06-11 17:44:52 -07:00
Alex Osborne 61af1d83c4 MitmProxy: Handle URLs generated by browsers but disallowed by java.net.URI 2025-06-11 20:38:54 +09:00
Alex Osborne 8a15156fa1 BrowserProcessor: Catch WebDriver timeouts and exceptions 2025-06-11 17:17:02 +09:00
Alex Osborne e0bae9a1b5 FetchHTTP2: Fallback to async DNS resolver 2025-06-11 16:55:11 +09:00
Alex Osborne 9a1bc7f287 Merge pull request #657 from internetarchive/fetchhttp2-http-proxy
FetchHTTP2: Add HTTP proxy support
2025-06-11 11:54:30 +09:00
Alex Osborne c3f9afe64b BrowserProcessor: use FetchHTTP2's configured proxy as an upstream proxy 2025-06-10 09:01:02 +09:00
Alex Osborne cc50af72be FetchHTTP2: Add HTTP proxy support 2025-06-09 22:28:49 +09:00
Alex Osborne 020ea34cb6 Bean reference: Add record builders under WARCWriterChainProcessor 2025-06-09 15:42:13 +09:00
Alex Osborne e68e4975c9 Rename to BrowserProcessor and -Behavior
After I added them to the Bean reference they seemed out of place with the DecideRules and RecordBuilders.

We had two classes called 'Browser' which is potentially confusing. It's also probably good to more clearly differentiate the ExtractLinks browser behavior from the Extractor processors.
2025-06-09 15:35:25 +09:00
Alex Osborne cf447f3bd9 Add Browser processor and behaviors to bean reference 2025-06-09 15:19:09 +09:00
Alex Osborne 8df957d77a Add CHANGELOG.md entry for Browser processor 2025-06-09 14:42:31 +09:00
Alex Osborne 1aa6b82d32 Remove stray footnote reference 2025-06-09 11:49:07 +09:00
Alex Osborne faf251359d WbmPersistLoadProcessorTest: Remove dependency on easymock and re-enable test
Instead of mocking the HttpClient let's just run a test web server. This means we can drop easymock entirely as it was only being used for this one disabled test.
2025-06-09 10:17:16 +09:00
Alex Osborne 6782fc065d Update dependencies
- **junit-jupiter**: 5.12.2 → 5.13.1
- **spring**: 6.2.6 → 6.2.7
- **codemirror__language**: 6.11.0 → 6.11.1
- **codemirror__view**: 6.36.5 → 6.37.1
2025-06-09 10:17:16 +09:00
Alex Osborne 52bbd8091b Merge pull request #653 from internetarchive/bidi
Add Browser processor using WebDriver BiDi
2025-06-09 09:36:06 +09:00
Alex Osborne 7e15d2fda1 Merge pull request #656 from internetarchive/robotstxt-wildcard
Support * and $ wildcards in robots.txt
2025-06-09 09:34:16 +09:00
Alex Osborne c7b7ee1842 Support * and $ wildcards in robots.txt 2025-06-07 10:37:11 +09:00
Alex Osborne 1161d87217 Browser: Add processor report 2025-06-05 10:48:15 +09:00
Alex Osborne 2210cb7262 Browser: Handle navigation abort from downloads starting 2025-06-04 17:44:42 +09:00
Alex Osborne 5131ea4a80 Browser: Disable downloads in Firefox and Chrome
This hopefully will stop us filling up ~/Downloads with random junk.
2025-06-04 17:44:42 +09:00
Alex Osborne 722552feef Add Browser processor using WebDriver BiDi
The Browser processor can load a fetched page in a local web browser, record any requests the browser makes and run behaviors that interact with the page such as scrolling down and extracting links.

This differs from my previous attempt (ExtractorChrome) in a few ways:

- Uses the new WebDriver BiDi standard instead of the Chrome Devtools Protocol. The new protocol is mostly browser-agnostic, more consistent and hopefully more stable.

- Uses a MITM proxy instead of CDP request interception for recording sub-resources. That's partly because BiDi is still missing some key interception APIs. Even so in practice I found the proxy method loads pages faster and more reliably, likely because responses can be streamed incrementally, which helps a lot for large resources or server-sent events.

- Even when HTTP/2 is unavailable, the new FetchHTTP2 module does connection pooling which makes loading browser requests a lot faster. The original FetchHTTP opened a new connection for every request.

- The Browser processor can be configured with a list of behavior beans making it more customizable and extensible.

Obvious areas for future development:

- More Behavior beans: take screenshots, saveg the rendered DOM, run Browsertrix-compatible behavior scripts

- Support for remote WebDrivers (e.g. Selenium Server or cloud services)
2025-06-04 17:44:42 +09:00
Alex Osborne 497d795005 Merge pull request #654 from internetarchive/web-auth-basic
Add `--web-auth basic` command-line option
2025-06-04 11:03:57 +09:00
Alex Osborne 721c78ec8b Merge pull request #655 from Valadaress/master
Updated Dockerfile and Docker- compose.yml to heritrix v3.9.0
2025-05-27 10:14:43 +09:00
Valadaress c73cb60dba Adjust dependencies apt-get for Dockerfile and Dockerfile.contrib 2025-05-26 20:07:21 -03:00
Valadaress 4dc990e1ff Update Docker compose to newest version 2025-05-26 19:49:08 -03:00
Alex Osborne eaf72b5ce2 Add --web-auth basic command-line option
This option enables HTTP Basic authentication for the web interface instead of the default Digest authentication. This is useful when running Heritrix behind a reverse proxy that adds external authentication as typically they don't support Digest auth for the upstream server.

#641
2025-05-25 00:29:14 +09:00
Alex Osborne 0f0db370ee UI: Disable Jetty graceful shutdown for faster restarts
Graceful shutdown would be useful if you could deploy the UI in a high-availability configuration and direct new requests to a different instance while the current instance finished its outstanding ones. But as you can't, it's just making restarting Heritrix slow for little benefit.
2025-05-24 22:46:42 +09:00
Alex Osborne 679fde42c6 SelfTestBase: Use a dynamic port (port 0) for Heritrix web port
This stops the tests from failing when you happen to be running Heritrix or something else on port 8443.
2025-05-22 15:38:45 +09:00
Alex Osborne 4695f8a153 Merge pull request #652 from internetarchive/webarchive-commons-2.0.1
Upgrade webarchive-commons from 1.3.0 to 2.0.1 (removes httpclient 3)
2025-05-22 15:19:49 +09:00
Alex Osborne 567e27181d Upgrade webarchive-commons from 1.3.0 to 2.0.1 (removes httpclient 3) 2025-05-21 17:39:21 +09:00
Alex Osborne 58e1ac529b Merge pull request #651 from internetarchive/codemirror6
Upgrade to CodeMirror 6
2025-05-20 19:05:36 +09:00
Alex Osborne 33446c7a2b Upgrade to CodeMirror 6
This resolves some browser incompatibilities, allowing CodeMirror’s own find function to be re-enabled for reliable text search of content far outside the viewport.
2025-05-16 18:34:30 +09:00
Alex Osborne 51347f7698 docs: Use javalang17 fork
Fixes some parse errors but not all of them
2025-05-13 14:23:08 +09:00
Alex Osborne 7db91b53c6 docs: HTTP/2: correct code quotes instead of italics 2025-05-13 14:19:35 +09:00
Alex Osborne e1ac68f533 docs: Correct bean-example path for FetchHTTP2 2025-05-13 14:16:36 +09:00
Alex Osborne fee534c3db docs: Get version from pom.xml 2025-05-13 14:15:20 +09:00
Alex Osborne 81ac46be45 docs: Catch parse errors and continue generating
Looks like the javalang parser doesn't handle some newer syntax.
For now just catch the errors. Long term we probably need to switch
to a different parser.
2025-05-13 14:09:09 +09:00
Alex Osborne 1827d93fe6 [maven-release-plugin] prepare for next development iteration 2025-05-13 12:25:24 +09:00
Alex Osborne dd40970f15 [maven-release-plugin] prepare release 3.9.0 3.9.0 2025-05-13 12:25:16 +09:00
Alex Osborne d60161b6be Merge pull request #650 from internetarchive/deps-3.9
Upgrade dependencies (notably junit 5) for 3.9.0 release
2025-05-09 22:05:42 +09:00
Alex Osborne e09106cc15 Document HTTP/2 and HTTP/3 support 2025-05-09 21:03:38 +09:00
Alex Osborne 4a2cdfaa81 FetchHTTP2: Print the jetty-quiche-native warning earlier at build time 2025-05-09 20:40:33 +09:00
Alex Osborne 8692bdf655 Add WARC-Protocol to request records too when using HTTP/2 or HTTP/3
While this could be inferred from the response, it's more accurate to
include them on the request as the request was not really HTTP/1.1.
2025-05-09 19:54:22 +09:00
Alex Osborne 1e502fba10 Limit permissions on github actions 2025-05-09 18:52:32 +09:00
Alex Osborne 8e177f778b Update CHANGELOG for 3.9.0 2025-05-09 18:52:21 +09:00