Commit Graph
2581 Commits
Author SHA1 Message Date
Alex Osborne 4093871de1 Merge pull request #626 from internetarchive/checkpoint-on-shutdown
Add checkpoint on shutdown and --checkpoint CLI option
2024-11-28 16:43:45 +09:00
Alex Osborne 8ec614224e Merge pull request #625 from internetarchive/spring-6.1
Upgrade to Spring 6.1 (and Java 17 minimum)
2024-11-28 16:43:30 +09:00
Alex Osborne a02a339830 Fix StackOverflowError and map exceptions in Browse Beans 2024-11-24 20:30:16 +09:00
Alex Osborne 6de204c53c AutoKryo: Replace SerializingInstantiatorStrategy with StdInstantiatorStrategy
SerializingInstantiatorStrategy when compiled for Java 17 fails when running without `--add-opens java.base/java.io=ALL-UNNAMED`. StdInstantiatorStrategy seems to work OK though.
2024-11-24 19:51:56 +09:00
Alex Osborne dbed84740b Enable the -parameters compiler option
This is needed for Spring 6.1 to be able to reflect on parameter names. We have some autowiring that relies on parameter names such as `AbstractFrontier.setScope(DecideRule scope)`. Without this Spring doesn't know whether to inject the `scope` or `acceptSurts` beans as they both subclass DecideRule. Apparently older versions of Spring used to discover method names by parsing bytecode but this was mechanism removed in 6.1.
2024-11-24 18:38:14 +09:00
Alex Osborne ec689dbce3 Document checkpointOnShutdown and --checkpoint options in the operating guide 2024-11-24 14:35:52 +09:00
Alex Osborne 585fed8575 Add --checkpoint command-line option
This makes it possible to select a checkpoint from the command-line when using the --run-job option.
2024-11-24 13:40:33 +09:00
Alex Osborne 18c69def9a CheckpointService: Add checkpointOnShutdown option
This enables a checkpoint to be automatically created during a graceful termination. This makes it easier to stop and restart Heritrix without having to manually checkpoint each running job.
2024-11-24 13:08:11 +09:00
Alex Osborne 13075ec444 Merge pull request #624 from kris-sigur/strict-if-url-matching
Force strict if URL matching regex.
2024-11-20 17:12:08 +09:00
Alex Osborne 29cc045c22 Merge pull request #623 from kris-sigur/manfest-links
Treat manifest hops same as navlink hops
2024-11-20 17:11:55 +09:00
Alex Osborne 205cd2a64b Bump spring.version from 5.3.39 to 6.1.15 2024-11-20 16:57:48 +09:00
Alex Osborne dd210c8e70 Replace Spring's removed @Required annotation with our own
Spring 6 removed @Required and they suggest using constructor injection instead. If we switched our beans to that we'd break existing Heritrix crawl configs. So this change implements our own basic version so we still get errors when a @Required property is null.
2024-11-20 16:30:15 +09:00
Alex Osborne 055f4f9f22 Require Java 17 minimum 2024-11-20 15:31:36 +09:00
Kristinn Sigurðsson 4a49557b8b Force strict if URL matching regex.
Adds a list of regular expressions that URLs being processed by the
ConfigurableExtractorJS are evaluted against. If they match the
extraction is performed in strict mode, even if strict mode is not set.

This requires a minor modification to ExtractorJS so that the CrawlURI
is passed to the shouldAddUri method that ConfigurableExtractorJS
overrides.
2024-10-30 08:53:08 +00:00
Kristinn Sigurðsson 5ed6147c3e Treat manifest hops same as navlink hops
Links from manifests (e.g. sitemaps) should not receive the preferential
treatment sometimes accorded to "transitive" hops. Most commonly this is
about giving priority to discovered (probable) embeds.

Manifests should be regarded as more analogous with a directory page.
2024-10-29 08:53:15 +00:00
Alex Osborne 25c73da7e3 [maven-release-plugin] prepare for next development iteration 2024-10-29 15:18:54 +09:00
Alex Osborne 0aec63b70f [maven-release-plugin] prepare release 3.5.0 3.5.0 2024-10-29 15:01:16 +09:00
Alex Osborne 24abe0c766 Update CHANGELOG for 3.5.0 2024-10-29 14:56:24 +09:00
Alex Osborne d42e8091a5 Remove repository.cloudera.com
No longer needed now that we've dropped hbase.
2024-10-25 17:04:43 +09:00
Alex Osborne cd0266014a Update CHANGELOG.md 2024-10-25 16:23:34 +09:00
Alex Osborne 3889bfc847 Merge pull request #621 from nla/remove-hbase
Remove HBase from contrib
2024-10-25 15:01:27 +09:00
Alex Osborne 345e927d32 Remove HBase from contrib
The transitive dependencies pulled in via hbase are causing many security alerts for unpatched vulnerabilities in Dependabot, Maven Central and other tools. The newest version of hbase-client these modules seem to compile against still has many vulnerable transitive dependencies and the latest version of HBase appears to have many breaking API changes.

These can be re-added if someone volunteers to take over maintaining this code and updates it so that it doesn't pull in vulnerable dependencies.
2024-10-25 14:33:26 +09:00
Alex Osborne ff84c8d32f Bump jetty from 9.4.55.v20240627 to 9.4.56.v20240826 2024-10-18 22:17:25 +09:00
Alex Osborne 3c649614ba Avoid old versions of commons-io and commons-collections from hbase 2024-10-18 22:14:51 +09:00
Alex Osborne c25e57a4a1 Bump version to 3.4.1-SNAPSHOT 2024-10-18 20:54:12 +09:00
Alex Osborne b0fad42e25 Merge pull request #619 from internetarchive/jdk23
JDK 23 support
2024-10-18 20:51:08 +09:00
Alex Osborne 070063ce0a Merge pull request #618 from internetarchive/ftpserver-core-1.2.0
Bump ftpserver-core from 1.1.1 to 1.2.0
2024-10-18 20:45:33 +09:00
Alex Osborne 5cfa5f02df Update CI tests from JDK 22 to 23 2024-10-18 20:45:11 +09:00
Alex Osborne 7a3d29ad4d Bump ftpserver-core from 1.1.1 to 1.2.0 2024-10-18 20:38:49 +09:00
Alex Osborne 6157645545 Merge pull request #612 from internetarchive/config-extractor-js-default-strict
Set default value for ConfigurableExtractorJS strict property
2024-10-18 20:32:58 +09:00
Alex Osborne 33f009516f Merge pull request #616 from internetarchive/webarchive-commons-1.1.10
Remove log4j from main Heritrix distribution
2024-10-18 20:32:42 +09:00
Alex Osborne d8aa0902e4 Merge pull request #617 from internetarchive/kafka-3.8.0
Bump kafka from 0.9.0.0 to kafka-clients 3.8.0
2024-10-18 20:30:38 +09:00
Alex Osborne 80b174f1fd Bump kafka from 0.9.0.0 to kafka-clients 3.8.0 2024-10-18 20:06:23 +09:00
Alex Osborne cbd7f37ed9 Replace littleproxy with jetty-proxy (to remove dependency on log4j)
littleproxy has not been updated since 2017 and has various out of date
dependencies. Since we're using jetty for HTTP server testing anyway, we
 may as well use it as the proxy too.
2024-10-18 17:28:03 +09:00
Alex Osborne 3d1b7e37ca Remove log4j 2024-10-17 19:25:53 +09:00
Alex Osborne c797985590 Bump webarchive-commons from 1.1.8 to 1.1.10
We need to add log4j as a dependency temporarily as webarchive-commons
no longer pulls it in.
2024-10-17 19:25:53 +09:00
Alex Osborne f49dbda2b8 Merge pull request #615 from internetarchive/dependabot/maven/org.eclipse.jetty-jetty-server-9.4.55.v20240627
Bump org.eclipse.jetty:jetty-server from 9.4.37.v20210219 to 9.4.55.v20240627
2024-10-17 12:02:09 +09:00
Alex Osborne 1d37cbc237 StatisticsSelfTest: Update for new jetty version
Jetty error messages are included in the selftest crawl and now have
slightly different lengths.
2024-10-17 11:58:13 +09:00
dependabot[bot] ececa3b6a3 Bump org.eclipse.jetty:jetty-server
Bumps org.eclipse.jetty:jetty-server from 9.4.37.v20210219 to 9.4.55.v20240627.

---
updated-dependencies:
- dependency-name: org.eclipse.jetty:jetty-server
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-17 02:46:12 +00:00
Alex Osborne 74cabbe798 Merge pull request #614 from internetarchive/remove-builds.archive.org
Remove dependency on builds.archive.org Maven repository
2024-10-17 11:40:20 +09:00
Alex Osborne 76cbe9343d Remove dependency on builds.archive.org Maven repository
Use the IIPC fork of javaswf from Maven Central instead.
https://github.com/iipc/javaswf

#613 #481
2024-10-17 11:28:53 +09:00
Kristinn Sigurðsson af280584f0 Set default value for strict. 2024-10-16 09:25:02 +00:00
Alex Osborne 891dbe7615 Re-add restlet repository with new URL
Turns out we do need this. Restlet isn't in central, the CI builds
were caching the artifacts.
2024-10-15 19:19:28 +09:00
Alex Osborne 8e568187b6 Merge pull request #611 from internetarchive/dependabot/maven/commons/commons-io-commons-io-2.14.0
Bump commons-io:commons-io from 2.7 to 2.14.0 in /commons
2024-10-15 18:18:22 +09:00
dependabot[bot] 27259d8b82 Bump commons-io:commons-io from 2.7 to 2.14.0 in /commons
Bumps commons-io:commons-io from 2.7 to 2.14.0.

---
updated-dependencies:
- dependency-name: commons-io:commons-io
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-15 07:35:22 +00:00
Alex Osborne 3b06226509 Merge pull request #610 from internetarchive/remove-restlet-repo
Remove maven.restlet.com repository
2024-10-09 12:39:34 +09:00
Alex Osborne cb1143e438 Remove maven.restlet.com repository
It seems to have moved to maven.restlet.talend.com but the restlet artifacts are in Central anyway so we don't need it.
2024-10-09 12:29:06 +09:00
Alex Osborne 043dc4e48d Merge pull request #609 from internetarchive/remove-joda-time
Remove joda-time
2024-10-09 11:29:15 +09:00
Alex Osborne 3c80dacabe CrawlJob: Replace joda-time with java.time (JSR-310) 2024-09-13 13:47:00 +09:00
Alex Osborne e02187ea3b Arc2Warc: Replace joda-time with java.time (JSR-310) 2024-09-13 13:47:00 +09:00