-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IP address & port w/o scheme in endpoint ⇒ URISyntaxException/IllegalArgumentException from EndpointToRegion.guessRegionOrRegionNameForEndpoint #2255
Comments
@jglick can you share a code snippet where your I was not able to reproduce by your bug description, the client builder in my tests does not fail. |
@debora-ito I think #2256 should cover it. If you want something in a much bigger but more realistic context, I could work up instructions on running the test in jenkinsci/artifact-manager-s3-plugin@46898c5 or you can just look at a failure on CI (already quoted above). |
Yes please, I'm hoping to reproduce the problem. A minimal working example would also be good. |
Again, that is best seen in #2256 which reproduces the error as well as offering the fix. To see the bug as it was discovered in the Jenkins plugin, save this to a FROM maven:3.6.3-jdk-8
RUN git clone https://github.com/jenkinsci/artifact-manager-s3-plugin /src
WORKDIR /src
# 1.11.700:
RUN git checkout c46511b15788a5965fd084c4c2295d853aec5e1c^^
RUN mvn -ntp test -Dtest=S3BlobStoreConfigTest\#createS3Bucket
# 1.11.723 with workaround:
RUN git checkout c46511b15788a5965fd084c4c2295d853aec5e1c
RUN mvn -ntp test -Dtest=S3BlobStoreConfigTest\#createS3Bucket
# 1.11.723 without workaround:
RUN git checkout c46511b15788a5965fd084c4c2295d853aec5e1c^
RUN mvn -ntp test -Dtest=S3BlobStoreConfigTest\#createS3Bucket which demonstrates a test passing before the update, breaking after the update, and passing again when a full URL with scheme is used (not in that order). |
Describe the bug
If you pass a custom endpoint in the format
127.0.0.1:1234
to the SDK, the client builder will fail.Expected Behavior
Should behave similarly to if a hostname such as
localhost
is used, or if an IP address is used without an explicit port, or if a full URL with scheme is passed.Current Behavior
You get an error such as
Steps to Reproduce
Reproduced in jenkinsci/artifact-manager-s3-plugin#112.
Possible Solution
PR forthcoming.
Context
Broke integration testing of the Jenkins plugin to store artifacts in S3 against a MinIO mock server running in a local Docker container.
The test passed against 1.11.700 and failed against 1.11.723, with the introduction of
EndpointToRegion
.Your Environment
The text was updated successfully, but these errors were encountered: