-
Notifications
You must be signed in to change notification settings - Fork 22
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
s3x - Coversion from URI to Path and Then Back to URI Loses the Initial Configuration #237
Comments
Hi @thsandu, sorry for the late reply. Thanks for reporting the issue and providing the unit test, I will look into it. |
No worries, the issue with the reading of file contents from localstack was also more important for us. |
Closing with fix from @stefanofornari in #283. Feel free to re-open if this is still an issue. |
Thank you for the fix @stefanofornari Adding this to your new test would fail:
|
Hi @thsandu |
I have issues working with conversions from URI to Path and back when using the s3x and the cool endpoint overriding functionality. It seems to me that when we are using the toUri() on a path, the initial overridden configuration is lost.
I forked your repo to add a unit test.
As you can see here, the s3 case is working: https://github.com/thsandu/aws-java-nio-spi-for-s3-issues-with-s3x/blob/b22de4a8dd68745191d797225c78c035ad30abf1/src/test/java/software/amazon/nio/spi/s3/S3PathTest.java#L365
When I so something similar on the s3x case, I get a modified result: https://github.com/thsandu/aws-java-nio-spi-for-s3-issues-with-s3x/blob/b22de4a8dd68745191d797225c78c035ad30abf1/src/test/java/software/amazon/nio/spi/s3x/S3PathTest.java#L51
The test yields:
The text was updated successfully, but these errors were encountered: