-
Notifications
You must be signed in to change notification settings - Fork 3
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
Folder structure, problem #68
Comments
That sounds weird to me. I've just tried the same setup in our demo (available inside the folder So I would suspect the problem is how minio returns the data. We are using the What I would suggest you to try is implementing a custom If this fixes the issue. I would suggest to extend the list of clients to be able to use minio as well. |
@ivangonzalezacuna Thank for your reply, I just used minio client for the upload to S3, which type of client did you used for that? I would like to try that one first. Maybe it just a minio client bug. |
Hi @C1ph3R-s , to try it out locally I used a ceph image. You can find more info in this block of the plugin documentation: https://github.com/spreadshirt/backstage-plugin-s3#development Basically, the contents of the folder ./demo/examples will be synced as soon as you start the container (it takes some time, just wait a bit until the sync is done, which is the last step). Add or remove things as you like, just for testing. Then, if you start the test environment using |
@ivangonzalezacuna I have tested a the setup again, so minio works well becase when i use mc ls command i got this:
but when I check the backstage GUI it got this below: test.txt file in every test3 folder Do you have any idea? Thank you |
I have tested with aws cli tool too, but unfortunatelly I got the same result on backstage GUI. Here is my script for the poc:
Thanks you |
@ivangonzalezacuna It seems to me that when I upload a file to the s3 bucket, it works fine. However, when I attempt to add a file to a folder or a folder structure, the issue I described earlier occurs. |
That still looks super weird to me. Specially because replicating the same directory structure you suggest works in my case. Also, the method that seems to be failing is the The internal client should return an object containing several arrays. The result inside the The file listing looks fine to me, since you get no duplications at all. So I would suggest checking what the output of But for understanding what is going on in the background, could you try out to get the full result from the Also, could you do a |
I have find the problem with this, do you have any offical way to report it for you? Thank you, |
Awesome! You can simply follow the usual ways to contribute by creating a fork and then a MR to this repo. You can explain in there what was the issue and what fixed it. You can assign it to me, and I will review it as soon as I can. Or is there something else you wanted to share in private? |
Unfortunately I cannot handle the fix, but I know what is the bug, private would be better :) |
In such case, you could also send me a message via Discord for example: ivan.gonzalez |
@ivangonzalezacuna |
Oh, that's such an interesting behavior. Is there any change in any version in between that might have caused the issue? Anyways, we will proceed with an upgrade of the plugin to the latest backstage release. I'll check if the aws packages can be updated to a newer version. As soon as the MR is ready I can ping you, and you could try out that branch and see if this fixed the issue or not. |
@ivangonzalezacuna |
Could you try the code from the MR mentioned above? (#72). Let's see if this update of the aws-sdk package is fixing the issue you had in newer OpenShift versions |
@ivangonzalezacuna how can I test it? I just have to update the plugin version? |
You can do it by modifying the used version for these packages. As an example, this is how it should look like:
What it's after the EDIT: The new release has been published. You can also use the latest tags now |
@ivangonzalezacuna I have tested with the new version but unfortunately i got the same result :/ Could u test it pls? |
Hm, such a pity. Then, the only thing I can think about is that the response when listing keys is broken for the newest versions of OpenShift. We could try to add a fix like I explained here: #68 (comment), by removing duplicated entries (since it's a directory style, I wouldn't expect more than 1 file with the same name, but the API for those versions return that) and see if that fixes the issue. Anyways, might be something that broke in the recent versions and something has been fixed in the meantime |
Hi
I would like to have a little guidance: so I have to upload a folder structure to s3:
my local structure is:
on backstage gui structure
So my question is, what could be the reson of that or how can I solve this?
I do not really understand this behaviour. ( I used minio s3 client)
Thanks
The text was updated successfully, but these errors were encountered: