[BUG] AwsSdk2Transport doesn't work with AwsSdk below 2.25.0
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 48/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- aws, java
調査の方向性
まず README で AwsSdk2Transport の依存関係または互換性に関するドキュメントを確認し、次に AwsSdk2Transport.prepareRequest と、報告されている ContentStreamProvider メソッドのバージョンを確認します。サポートされている AWS SDK のバージョン(fromByteArrayUnsafe を提供する最小バージョンを含む)を文書化し、README が古いバージョンのユーザーに明確に警告していることを確認します。
索引モデルが issue の本文から書いたものです。
説明
What is the bug?
Actually, it’s not really a bug. I think it’s an intended behavior that AwsSdk2Transport doesn’t work with AwsSdk below version 2.25.0, since that version is already quite old.
In the prepareRequest method of the AwsSdk2Transport class, the ContentStreamProvider interface calls the fromByteArrayUnsafe method. However, this method was introduced in AwsSdk2 after version 2.26.0.
Therefore, when using AwsSdk below 2.25.0, a NoSuchMethodError will occur when AwsSdk2Transport executes the prepareRequest method.
For clarification, it would be better to mention in the README which versions of AwsSdk2 are supported, so that users with older versions (below 2.25.0) can be aware of this limitation.
How can one reproduce the bug?
Inject SdkHttpClient of AwsSdk 2.25.0 into AwsSdk2Transport and then, call prepareRequest method.
SdkHttpClient httpClient =
ApacheHttpClient.builder()
.buildWithDefaults(
AttributeMap.builder()
.put(SdkHttpConfigurationOption.TRUST_ALL_CERTIFICATES, true)
.build());
AwsSdk2Transport transport =
new AwsSdk2Transport(
httpClient,
server.httpsUri().toString().replace("https://", ""),
Region.AP_NORTHEAST_1,
AwsSdk2TransportOptions.builder().setCredentials(CREDENTIALS_PROVIDER).build());
What is the expected behavior?
Mentioning which versions of AwsSdk2 are supported in README.
What is your host/environment?
Mac OS 15.3.1
Do you have any screenshots?
'software.amazon.awssdk.http.ContentStreamProvider software.amazon.awssdk.http.ContentStreamProvider.fromByteArrayUnsafe(byte[])'
java.lang.NoSuchMethodError: 'software.amazon.awssdk.http.ContentStreamProvider software.amazon.awssdk.http.ContentStreamProvider.fromByteArrayUnsafe(byte[])'
at org.opensearch.client.transport.aws.AwsSdk2Transport.prepareRequest(AwsSdk2Transport.java:348)
at org.opensearch.client.transport.aws.AwsSdk2Transport.performRequest(AwsSdk2Transport.java:215)
Do you have any additional context?
Add any other context about the problem.
- 主要言語
- Java
- スター
- 165
- フォーク
- 257
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 44
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
opensearch-project/opensearch-java のほかの issue
-
[BUG] ArrayDeserializer.acceptedEvents() publishes a half-built set; concurrent first-use rejects single-value arrays対応中かも @vinirib が 1 日前に担当しました。 オープンbug v3.11.0
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
opensearch-project/opensearch-java#2252 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
opensearch-project/opensearch-java#2188 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] "shape" should not be required in GeoShapeQueryField再び着手できるかも @lsh1215 が 123 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
opensearch-project/opensearch-java#2011 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
opensearch-project/opensearch-java#2008 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] ISM types lastUpdatedTime is susceptible to int overflow対応中かも @gingeekrishna が 118 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
opensearch-project/opensearch-java#1898 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
opensearch-project/opensearch-java の issue をすべて見る
似ている issue
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
authorjapps/zerocode#808 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
checkstyle/sonar-checkstyle#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
quarkusio/quarkus-agent-mcp#302 ·
メンテナーはふだん 2 日以内に返信
-
build
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
MetricsHub/metricshub-community#1472 ·
メンテナーはふだん 1 日以内に返信