Remove dependency on httpcomponents.core5
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 15/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- backend, build-system, documentation
Hướng nghiên cứu
Start with the affected imports listed in the issue, especially BasicURLNormalizer, then inspect core/pom.xml, the root pom.xml, the archetype shade configuration, and the “Migrating to 4.0.0” docs. The issue specifies the constants and query-string behavior to preserve; review the listed main and test files across core, tika, and warc. Done means removing the dependency and exclusion, preserving query output, and documenting the migration; linked pull request #2270 is already open.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
See discussion on https://github.com/apache/stormcrawler/pull/2236/#issuecomment-6250049212
Context
After #2211, core depends only on org.apache.httpcomponents.core5:httpcore5. It uses it for HTTP header and status constants and for query-string parsing in BasicURLNormalizer. A whole library for that is not worth the dependency, and HttpComponents types in our code mean we can't change these classes in a 4.x minor release without breaking user code. 4.0.0 is the time to remove it.
What's affected
1. HttpHeaders constants
- Main code:
FeedParserBolt,JSoupParserBolt,SimpleFetcherBolt,SiteMapParserBolt,FetchOutcomes,AdaptiveScheduler,HttpRobotRulesParser,FileResponse, okhttpHttpProtocol,CharsetIdentification, plusParserBolt(tika) andWARCRecordFormat(warc). - Tests:
FeedParserBoltTest,JSoupParserBoltTest,SiteMapParserBoltTest,AdaptiveSchedulerTest,CharsetIdentificationTest, plus the tika and warc tests. - Constants used:
ACCEPT,ACCEPT_LANGUAGE,AUTHORIZATION,CONTENT_LENGTH,CONTENT_TYPE,ETAG,IF_MODIFIED_SINCE,IF_NONE_MATCH,LAST_MODIFIED,LOCATION,PROXY_AUTHORIZATION,USER_AGENT.
2. HttpStatus constants
- Used in
FileResponse. - Constants used:
SC_OK,SC_MULTIPLE_CHOICES,SC_BAD_REQUEST,SC_UNAUTHORIZED,SC_FORBIDDEN,SC_NOT_FOUND,SC_METHOD_FAILURE,SC_INTERNAL_SERVER_ERROR.
3. NameValuePair and URLEncodedUtils in BasicURLNormalizer
- These sort the query parameters and remove the filtered ones.
- The code calls
URLEncodedUtils.parse(query, UTF_8, '&', ';')andURLEncodedUtils.format(pairs, UTF_8). That class is deprecated in httpcore5.
Actions
- Add StormCrawler-owned
HttpHeadersandHttpStatusclasses in core, for example underorg.apache.stormcrawler.protocol. Each holds the constants listed above as plainpublic static finalfields, with the same names and values as HttpCore 5. Switching to them is then an import change only. - Update all the imports above in core, tika and warc, main and test code.
- Replace
URLEncodedUtilsandNameValuePairinBasicURLNormalizerwith a small in-house parser and formatter. The output must stay exactly the same. - Remove
httpcore5fromcore/pom.xml, and thehttpcore5.versionproperty from the rootpom.xmlif nothing else uses it. - Remove the leftover
<exclude>org/apache/http/**</exclude>from the archetype's shade configuration. - Update the "Migrating to 4.0.0" docs. Core no longer brings in any HttpComponents classes, so users who relied on them transitively must declare the dependency themselves.
- Ngôn ngữ chính
- Java
- Star
- 1k
- Fork
- 295
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 70
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/stormcrawler
-
[Improvement] Work towards Maven 4 CompatibilityCó thể đã có người làm @mvolikas đã nhận 362 ngày trước. Đang mởgood first issue help wanted
apache/stormcrawler#1662 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Delete redirected pagesCó thể làm lại được @tomatotomata đã nhận 95 ngày trước và không có pull request nào đang mở. Đang mởcore good first issue
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
apache/stormcrawler#994 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Normalise HTTP headersCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởcore fetcher good first issue help wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
apache/stormcrawler#108 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/stormcrawler
Issue tương tự
-
hermes-queue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
chrisalunlloyd2-sudo/mindpalace#337 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Regression][98.0.0] Android I/flutter logs are automatically folded by FlutterConsoleFoldingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
flutter/flutter-intellij#9221 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ucsb-cs156/proj-frontiers#844 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
AllTheMods/ATM10-Aeronautics#159 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Update spring-ldap to 4.0.7Đang mởtype: dependency-upgrade
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
spring-projects/spring-security#20057 ·
Maintainer thường phản hồi trong vòng 1 ngày