quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.63k stars 2.64k forks source link

Issue while sending InputStream to Server (POST) #41058

Open fredericBregier opened 3 months ago

fredericBregier commented 3 months ago

Describe the bug

First, note that I cannot make a reproducer yet (I tries hard, but didn't find how to reproduce), and I cannot publish the code.

I tried with an example but didn't managed to show the error we've got (https://github.com/fredericBregier/quarkus-build-native-client-test/tree/main)

The issue is the following:

We have no idea on what's happens. This was reproducible on our OpenShift environement, setting the correct remote server url, but only byte array works, not InputStream

Any idea?

Expected behavior

There should not be any difference between client using InputStream or byte array

Actual behavior

On QuarkusTest, it works. But out of Quarkus test (standalone, openshift), only byte array works.

How to Reproduce?

Not able until now (except on our code)

Output of uname -a or ver

Linux frederic-Creator-M16-B13VE 6.8.0-35-generic #35-Ubuntu SMP PREEMPT_DYNAMIC Mon May 20 15:51:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version "21.0.3" 2024-04-16 OpenJDK Runtime Environment (build 21.0.3+9-Ubuntu-1ubuntu1) OpenJDK 64-Bit Server VM (build 21.0.3+9-Ubuntu-1ubuntu1, mixed mode, sharing)

Quarkus version or git rev

3.11.0

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae) Maven home: /home/frederic/.m2/wrapper/dists/apache-maven-3.9.6-bin/3311e1d4/apache-maven-3.9.6 Java version: 21.0.3, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 Default locale: fr_FR, platform encoding: UTF-8 OS name: "linux", version: "6.8.0-35-generic", arch: "amd64", family: "unix"

Additional information

No response

quarkus-bot[bot] commented 3 months ago

/cc @geoand (openshift), @iocanel (openshift)