Commit Graph
3136 Commits
Author SHA1 Message Date
Alex Osborne 9928e1397c Override snappy-java to 1.1.10.12 for security fixes 2026-11-18 16:57:27 +09:00
Alex Osborne 6f199b57dc Add org.json:json 20260814 to managed dependencies for CVE-2026-59171 2026-11-18 16:49:33 +09:00
Alex Osborne aa4dd213df Merge pull request #814 from internetarchive/soft404-detector
Soft404Detector: detect soft 404s and optionally skip extraction
2026-11-18 16:35:14 +09:00
Alex Osborne b7ce8f9782 Fix ExtractorJSTest for commons-lang3 3.22.0
The webarchive-commons 3.0.6 bump pulls in commons-lang3 3.22.0, whose
UnicodeUnescaper no longer throws on malformed \u escapes. Only test
the invalid code points ExtractorJS rejects itself.
2026-11-17 15:32:33 +09:00
Alex Osborne d7a02be00b Bump webarchive-commons from 3.0.5 to 3.0.6 2026-11-17 15:23:11 +09:00
dependabot[bot] e4660006ca Bump the minor-and-patch group with 18 updates (#822)
Bumps the minor-and-patch group with 18 updates:

| Package | From | To |
| --- | --- | --- |
| [com.fasterxml.jackson:jackson-bom](https://github.com/FasterXML/jackson-bom) | `2.22.4` | `2.23.0` |
| [org.eclipse.jetty:jetty-bom](https://github.com/jetty/jetty.project) | `12.0.40` | `12.0.41` |
| [org.eclipse.jetty.ee10:jetty-ee10-bom](https://github.com/jetty/jetty.project) | `12.0.40` | `12.0.41` |
| [org.codehaus.mojo:versions-maven-plugin](https://github.com/mojohaus/versions) | `2.23.0` | `2.25.1` |
| [dnsjava:dnsjava](https://github.com/dnsjava/dnsjava) | `3.7.0` | `3.7.1` |
| org.webjars.npm:codemirror__autocomplete | `6.20.3` | `6.20.4` |
| org.webjars.npm:codemirror__commands | `6.11.0` | `6.11.1` |
| org.webjars.npm:codemirror__language | `6.12.4` | `6.13.1` |
| org.webjars.npm:codemirror__legacy-modes | `6.5.1` | `6.5.5` |
| org.webjars.npm:codemirror__search | `6.5.11` | `6.7.2` |
| org.webjars.npm:codemirror__state | `6.7.4` | `6.7.6` |
| org.webjars.npm:codemirror__view | `6.43.11` | `6.43.15` |
| org.webjars.npm:lezer__common | `1.5.2` | `1.5.5` |
| org.webjars.npm:lezer__lr | `1.4.10` | `1.4.12` |
| org.webjars.npm:lezer__highlight | `1.2.3` | `1.2.5` |
| org.webjars.npm:style-mod | `4.1.3` | `4.1.4` |
| [com.rabbitmq:amqp-client](https://github.com/rabbitmq/rabbitmq-java-client) | `5.37.0` | `5.37.1` |
| [at.yawk.lz4:lz4-java](https://github.com/yawkat/lz4-java) | `1.12.1` | `1.14.0` |


Updates `com.fasterxml.jackson:jackson-bom` from 2.22.4 to 2.23.0
- [Commits](https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.22.4...jackson-bom-2.23.0)

Updates `org.eclipse.jetty:jetty-bom` from 12.0.40 to 12.0.41
- [Release notes](https://github.com/jetty/jetty.project/releases)
- [Commits](https://github.com/jetty/jetty.project/compare/jetty-12.0.40...jetty-12.0.41)

Updates `org.eclipse.jetty.ee10:jetty-ee10-bom` from 12.0.40 to 12.0.41
- [Release notes](https://github.com/jetty/jetty.project/releases)
- [Commits](https://github.com/jetty/jetty.project/compare/jetty-12.0.40...jetty-12.0.41)

Updates `org.eclipse.jetty.ee10:jetty-ee10-bom` from 12.0.40 to 12.0.41
- [Release notes](https://github.com/jetty/jetty.project/releases)
- [Commits](https://github.com/jetty/jetty.project/compare/jetty-12.0.40...jetty-12.0.41)

Updates `org.codehaus.mojo:versions-maven-plugin` from 2.23.0 to 2.25.1
- [Release notes](https://github.com/mojohaus/versions/releases)
- [Changelog](https://github.com/mojohaus/versions/blob/master/ReleaseNotes.md)
- [Commits](https://github.com/mojohaus/versions/compare/2.23.0...2.25.1)

Updates `dnsjava:dnsjava` from 3.7.0 to 3.7.1
- [Release notes](https://github.com/dnsjava/dnsjava/releases)
- [Changelog](https://github.com/dnsjava/dnsjava/blob/master/Changelog)
- [Commits](https://github.com/dnsjava/dnsjava/compare/v3.7.0...v3.7.1)

Updates `org.webjars.npm:codemirror__autocomplete` from 6.20.3 to 6.20.4

Updates `org.webjars.npm:codemirror__commands` from 6.11.0 to 6.11.1

Updates `org.webjars.npm:codemirror__language` from 6.12.4 to 6.13.1

Updates `org.webjars.npm:codemirror__legacy-modes` from 6.5.1 to 6.5.5

Updates `org.webjars.npm:codemirror__search` from 6.5.11 to 6.7.2

Updates `org.webjars.npm:codemirror__state` from 6.7.4 to 6.7.6

Updates `org.webjars.npm:codemirror__view` from 6.43.11 to 6.43.15

Updates `org.webjars.npm:lezer__common` from 1.5.2 to 1.5.5

Updates `org.webjars.npm:lezer__lr` from 1.4.10 to 1.4.12

Updates `org.webjars.npm:lezer__highlight` from 1.2.3 to 1.2.5

Updates `org.webjars.npm:style-mod` from 4.1.3 to 4.1.4

Updates `com.rabbitmq:amqp-client` from 5.37.0 to 5.37.1
- [Release notes](https://github.com/rabbitmq/rabbitmq-java-client/releases)
- [Commits](https://github.com/rabbitmq/rabbitmq-java-client/compare/v5.37.0...v5.37.1)

Updates `at.yawk.lz4:lz4-java` from 1.12.1 to 1.14.0
- [Release notes](https://github.com/yawkat/lz4-java/releases)
- [Changelog](https://github.com/yawkat/lz4-java/blob/main/CHANGES.md)
- [Commits](https://github.com/yawkat/lz4-java/compare/v1.12.1...v1.14.0)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-version: 2.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: org.eclipse.jetty:jetty-bom
  dependency-version: 12.0.41
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: org.eclipse.jetty.ee10:jetty-ee10-bom
  dependency-version: 12.0.41
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: org.eclipse.jetty.ee10:jetty-ee10-bom
  dependency-version: 12.0.41
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: org.codehaus.mojo:versions-maven-plugin
  dependency-version: 2.25.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: dnsjava:dnsjava
  dependency-version: 3.7.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: org.webjars.npm:codemirror__autocomplete
  dependency-version: 6.20.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: org.webjars.npm:codemirror__commands
  dependency-version: 6.11.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: org.webjars.npm:codemirror__language
  dependency-version: 6.13.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: org.webjars.npm:codemirror__legacy-modes
  dependency-version: 6.5.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: org.webjars.npm:codemirror__search
  dependency-version: 6.7.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: org.webjars.npm:codemirror__state
  dependency-version: 6.7.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: org.webjars.npm:codemirror__view
  dependency-version: 6.43.15
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: org.webjars.npm:lezer__common
  dependency-version: 1.5.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: org.webjars.npm:lezer__lr
  dependency-version: 1.4.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: org.webjars.npm:lezer__highlight
  dependency-version: 1.2.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: org.webjars.npm:style-mod
  dependency-version: 4.1.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: com.rabbitmq:amqp-client
  dependency-version: 5.37.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: at.yawk.lz4:lz4-java
  dependency-version: 1.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-17 15:22:08 +09:00
Alex Osborne 6f8201cc60 Comment out Soft404Detector in the default profiles
It's still new, so leave it opt-in until it has seen more real-world use.
2026-11-17 15:03:33 +09:00
Alex Osborne a8cd8190ea Soft404Detector: count a redirected probe as its target's probe
Otherwise the target server scheduled the same probe again.
2026-11-17 14:36:59 +09:00
Alex Osborne ee7f2c694c Soft404Detector: also remove echoes without a trailing slash
A canonical link to /a/b on the page /a/b/ prevented a match.
2026-11-17 14:36:52 +09:00
Alex Osborne c3d062bee2 Soft404Detector: only probe servers reached by seeds or links
Servers reached by a redirect or speculative link, such as other sites a
crawled site redirects to, got a probe too.
2026-11-17 14:36:46 +09:00
Alex Osborne 82e1c5ad59 Soft404Detector: drop the content length check
It compared raw lengths, but echoes of the probe path and the page's own
path make those differ, so pages that repeat their path often were
missed even with matching fingerprints.
2026-11-17 14:36:38 +09:00
Alex Osborne e1c61d3fe8 Soft404Detector: only collapse URL-like tokens containing digits
Tokens were runs of anything but whitespace, quotes and angle brackets,
so a meta refresh's "0;url=..." or a paragraph of CJK text containing
a digit collapsed to "0", making unrelated pages match.
2026-11-17 14:36:32 +09:00
Leslie Bellony 13c6572ad6 Merge pull request #821 from bnfleb/statisticstracker
ToeThread dies on `http://0.0.0.0/` (IllegalStateException "got suspicious value 0.0.0.0"), job stuck in EMPTY forever
2026-11-15 07:48:03 +09:00
Alex Osborne da6489beee Merge pull request #820 from internetarchive/browser-docs
Document browser-based crawling
2026-11-14 01:17:03 +09:00
Alex Osborne e4d4fe0cfd Merge pull request #819 from internetarchive/browser-ssh
BrowserProcessor: launch browsers on other machines over SSH
2026-11-13 22:03:24 +09:00
Alex Osborne db156f3427 Write browser behaviors inline in the Groovy profile and docs 2026-11-13 16:08:42 +09:00
Alex Osborne fb3452a6af Behaviors: log unparseable links through the Page instead of a constructor argument
ExtractLinksBehavior and PaginationBehavior took the UriErrorLoggerModule as a
constructor argument, so they had to be Spring beans to get it. That meant the
Groovy config couldn't create them inline in the behaviors list, as Spring's
Groovy reader doesn't turn inner beans in a list into beans, and had to declare
each one as a named bean and refer to it. BrowserProcessor already has the
logger module, so it now passes it to behaviors through the page and they can
be plain objects.
2026-11-13 16:08:36 +09:00
Alex Osborne 14011df45d docs: document browser-based crawling 2026-11-13 16:01:35 +09:00
Alex Osborne 27ba6ba850 Add a commented-out BrowserProcessor bean to the Groovy default profile 2026-11-13 16:01:35 +09:00
Alex Osborne 336d0d6c52 BrowserProcessor: turn off Firefox site isolation 2026-11-13 10:12:38 +09:00
Alex Osborne 7b2a485091 BrowserProcessor: don't mistake a crashed Firefox tab for a download 2026-11-13 10:12:38 +09:00
Alex Osborne 486dffbedf BrowserProcessor: allow per-browser concurrency, executable and options 2026-11-13 10:12:38 +09:00
Alex Osborne d7c9a5581e BrowserProcessor: launch browsers on other machines over ssh 2026-11-13 10:12:38 +09:00
Alex Osborne c93c928a54 SshBrowserProcess: launch a browser on another machine over ssh 2026-11-13 10:12:38 +09:00
Alex Osborne 2ea94c8d48 Merge pull request #817 from internetarchive/browser-pool
BrowserProcessor: support several local browsers
2026-11-13 10:01:42 +09:00
Alex Osborne d0e5921aa6 LocalWebDriverBiDi: move launching the browser process into BrowserProcess 2026-11-12 17:04:28 +09:00
Alex Osborne dc070b4af1 BrowserProcessor: close idle browsers and relaunch them when a page needs one
Many small jobs in one JVM would otherwise each hold browsers open for as long as the job runs or sits paused.
2026-11-12 15:47:09 +09:00
Alex Osborne 51668638b0 BrowserProcessor: track each browser's state with an enum instead of a flag 2026-11-12 15:29:43 +09:00
Alex Osborne 0f8644fd65 LocalWebDriverBiDi: make the command timeout configurable 2026-11-12 13:50:20 +09:00
Alex Osborne 9cefc32df0 LocalWebDriverBiDi: kill the browser if it stops answering 2026-11-12 13:50:20 +09:00
Alex Osborne d7f82bce4d BrowserProcessor: launch browsers in parallel and retry failed launches with backoff 2026-11-12 13:44:03 +09:00
Alex Osborne ad8e3fb51b BrowserProcessor: support several browsers 2026-11-12 13:44:03 +09:00
Alex Osborne 7369ec2980 BrowserProcessor: move per-browser state into a nested Browser class 2026-11-12 13:43:55 +09:00
Alex Osborne 7ca3574b1b WebDriverBiDi: move isAlive() onto the interface 2026-11-12 13:43:55 +09:00
Alex Osborne c743cc0a78 Merge pull request #818 from internetarchive/browser-tests-ci
CI: Run browser tests separately against Firefox and Chrome
2026-11-12 13:43:24 +09:00
Alex Osborne 7553c9c183 LocalWebDriverBiDi: kill ChromeDriver's browser too if the launch fails 2026-11-12 13:33:35 +09:00
Alex Osborne a45252de22 LocalWebDriverBiDi: allow the launch timeout for creating the session 2026-11-12 13:33:30 +09:00
Alex Osborne e1eee1e25f CI: build docgen for the browser tests 2026-11-12 13:28:42 +09:00
Alex Osborne ec320998c2 CI: run the browser tests in their own job against Firefox and Chrome 2026-11-12 13:19:14 +09:00
Alex Osborne 8acdba74c5 LocalWebDriverBiDi: wait for ChromeDriver's browser to exit on close 2026-11-12 13:19:14 +09:00
Alex Osborne 5af5ceace1 Merge pull request #816 from internetarchive/browser-proxy-hardening
BrowserProcessor: prevent recording proxy from acting as an open proxy
2026-11-12 09:28:00 +09:00
Alex Osborne 74d236ee57 BrowserProcessor: reject proxy requests that don't belong to an open page 2026-11-11 22:21:44 +09:00
Alex Osborne 21b808f9c2 MitmProxy: listen on loopback only 2026-11-11 22:02:19 +09:00
Alex Osborne dec91bca04 Merge pull request #803 from RaphaelFakhri/fix-alt-svc-default-max-age
FetchHTTP2: Default Alt-Svc max age to 24 hours
2026-11-07 09:04:07 +09:00
Raphael Fakhri 1a120ea3c2 FetchHTTP2Test: Check the Alt-Svc expiry instead of sleeping 2026-11-06 20:36:21 +00:00
Alex Osborne 0d1eae1082 Add missing processors to bean reference (#815) 2026-11-06 14:41:51 +09:00
Alex Osborne c09f281c0f Merge pull request #812 from internetarchive/svg-extractor
Add ExtractorSVG for links in SVG images
2026-11-06 13:56:57 +09:00
Alex Osborne 832279989d Add ExtractorSVG to the Groovy default profile 2026-11-06 13:56:11 +09:00
Alex Osborne 5838dbf1f9 ExtractorSVG: obey ExtractorHTML obeyRelNofollow setting 2026-11-05 16:17:28 +09:00
Alex Osborne 9d79ef7372 Add ExtractorSVG and extract links from inline SVG
ExtractorSVG parses SVG with the JDK's StAX parser and extracts hrefs
from elements like <image>, <use> and <script> as embeds and from <a>
as links, along with <?xml-stylesheet?>, url() in presentation
attributes, <style>, <script>, animated hrefs and HTML in
<foreignObject>. Like browsers it requires the SVG namespace, decides
by the root element whether text/xml and application/xml responses
are SVG, and keeps the links found before any XML error. It's added
to the default profile before extractorHtml.

ExtractorHTML and JerichoExtractorHTML now treat hrefs on those inline
SVG elements as embeds rather than links, and extract url() from
presentation attributes like fill. ExtractorCSS now ignores
same-document references like url(#gradient).

Fixes #796
2026-11-05 16:17:28 +09:00