[BUG] AwsSdk2Transport doesn't work with AwsSdk below 2.25.0
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- aws, java
- Área
- documentation
Línea de trabajo
Comience comprobando en el README la dependencia de AwsSdk2Transport o la documentación de compatibilidad; después, revise AwsSdk2Transport.prepareRequest y la versión indicada del método ContentStreamProvider. Documente las versiones compatibles de AWS SDK, incluida la versión mínima que proporciona fromByteArrayUnsafe, y confirme que el README advierte claramente a los usuarios de versiones anteriores.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Java
- Estrellas
- 165
- Forks
- 257
- Merge medio
- 1 d 1 h
- PR fusionados (30 d)
- 44
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de opensearch-project/opensearch-java
-
[BUG] ArrayDeserializer.acceptedEvents() publishes a half-built set; concurrent first-use rejects single-value arraysPosiblemente ocupada @vinirib la tomó hace 1 día. Abiertobug v3.11.0
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
opensearch-project/opensearch-java#2252 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
enhancement untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
opensearch-project/opensearch-java#2188 ·
Los mantenedores suelen responder en 1 día
-
[BUG] "shape" should not be required in GeoShapeQueryFieldQuizá libre de nuevo @lsh1215 la tomó hace 123 días y no hay ningún pull request abierto. Abiertobug untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
opensearch-project/opensearch-java#2011 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
opensearch-project/opensearch-java#2008 ·
Los mantenedores suelen responder en 1 día
-
[BUG] ISM types lastUpdatedTime is susceptible to int overflowPosiblemente ocupada @gingeekrishna la tomó hace 118 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
opensearch-project/opensearch-java#1898 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de opensearch-project/opensearch-java
Issues similares
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
authorjapps/zerocode#808 ·
-
upgrade to checkstyle 14.4.0Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
checkstyle/sonar-checkstyle#625 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
quarkusio/quarkus-agent-mcp#302 ·
Los mantenedores suelen responder en 2 días
-
build
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
MetricsHub/metricshub-community#1472 ·
Los mantenedores suelen responder en 1 día