Repository navigation
Conversation
|
Thanks for this, the migration looks solid. Here are some AI assisted findings I checked HttpClient 4 and HttpClient 5 against each other with the actual jars:
A few comments, most important first: 1. 2. 3. Root 4.
5. 6. 7. 8. README Minor: the PR checklist says the issue is referenced in the commit message, but the commit message doesn't mention #2211. |
|
@jnioche Would it make to just fork the classes we need into SC itself? We could drop the dependency than and are not dependend on it just for the sake of a few utility classes. wdyt? |
d6ea9d0 to
73d069c
Compare
yes, they are likely to be very stable as well. At least rely on |
|
yep - would opt for just forking the classes we need... |
# Conflicts: # pom.xml
73d069c to
b5fa5fb
Compare
I would avoid having the API dependency at all. 4.0.0 is a possiblity to break things, which is hard to argue for any subsequent dot release actually. We dropped the Apache HTTP Protocol Implementation for 4.0.0, in 4d49466, so I don't see any value in having any dependency to Apache HTTP components as left over in the project ;-) That being said, I am -0 here ;-) - so if ppl want to move forward with this PR, feel free. |
We can't change the class for HTTP Headers later within 4.x without potentially breaking user code so now would be a good time to bite the bullet and invest time in copying what we need to SC. The HttpHeaders class is a gloriously simple list of public static Strings, HttpStatus is similar. @SCORP711 any chance this could be done within this PR? |
|
Yep, I’ll look into it. |
Fixes #2211.
Migrates core to HttpClient 5.6.4 and aligns HttpCore dependencies at
5.4.3. Updates the affected imports in core, Tika and WARC.
Preserves query parsing with both & and ; separators. Cookie expiry
handling now uses Instant, with a fallback for legacy date formats.
Adds regression tests and documents the public Cookie type change.
Validation: all 18 modules passed clean verify on Ubuntu/WSL with
Java 25, Maven 3.9.16 and -DCI_ENV=true.
1,050 tests passed, 15 were skipped by existing environment conditions,
and there were no failures or errors.
Thank you for contributing to Apache StormCrawler.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes
Is there a issue associated with this PR? Is it referenced in the commit message?
Does your PR title start with
#XXXXwhereXXXXis the issue number you are trying to resolve?Has your PR been rebased against the latest commit within the target branch (typically main)?
Is your initial contribution a single, squashed commit?
Is the code properly formatted with
mvn git-code-format:format-code -Dgcf.globPattern="**/*" -Dskip.format.code=false?For code changes
mvn clean verify?Note
Please ensure that once the PR is submitted, you check GitHub Actions for build issues and submit an update to your PR as soon as possible.