-
Notifications
You must be signed in to change notification settings - Fork 233
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
Methods behave differently under Linux #1114
Comments
This issue is a known problem from the previous release version 6.0.2 and a fix was introduced, tested and verified before 6.0.3 is released. So, it was supposed to be fixed in Minio version 6.0.3. |
@ebozduman Thanks for the quick response. |
|
Could you clarify it for me one more time: Did you see the issue on Windows only? |
@ebozduman With regards to the version, we ended up downgrading to 5.0 As for clarification: Running on Windows seem to work.
|
@ebozduman Thanks for the update. |
Hello
edit: I just tried downgrading to version 5.0.0 and now things seem to work as expected.
It did of course require some changes to the code.
I'm unsure if i'm missing some linux related config or similar but i'm experiencing different behavior from various methods depending on whether i'm running on windows or linux.
Have reproduced this behavior in versions 6.0.2 and 6.0.3
running against the minio image: minio/minio:RELEASE.2024-04-18T19-09-19Z
I've attached a small project that tests BucketExistsAsync, GetObjectAsync and, PutObjectAsync.
Something as simple as BucketExistsAsync returns true whether or not the bucket exists.
I even found that if you use an invalid uri (say http://blablabla) when setting up the minio client, then BucketExistsAsync still work as if nothing is wrong - except that it takes longer because nothing is responding on that uri.
I tested against a Minio service running https, hosted in Kubernetes but docker-compose and http seem to work as well.
I recommend starting the minio container first and then open the web interface to create a bucket named "somevalidbucketname".
The name can be found and changed at the top of the Program.cs file.
Change the uri appropriately depending on whether running on your host (windows) or in the container (linux).
The swagger interface contains all 3 methods as simple get endpoints.
The test is more or less the same for all 3.
Call the endpoint and you should get a response back that shows the result (success) of the method called with both a valid and invalid bucket name.
For GetObject and PutObject you might also need to keep an eye on the log for console writeline messages.
On a side note: I ran into some bad behavior regarding exceptions being swallowed in the callback for GetObjectAsync.
I also happened upon some strange behavior with PutObjectAsync.
Do you want me to create separate issues for those?
Please let me know if you need anymore information or clarification.
MinioTest.zip
The text was updated successfully, but these errors were encountered: