Skip to content
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

Listing objects href doesnt work correctly for directories #119

Open
alexv305 opened this issue Jun 24, 2023 · 0 comments
Open

Listing objects href doesnt work correctly for directories #119

alexv305 opened this issue Jun 24, 2023 · 0 comments

Comments

@alexv305
Copy link

Listing objects works correctly for files, the href url adds the full URL but if there is a directory in that bucket it does not add the port number (im using MinIO which runs on port 9000).

index.html is the s3-bucket-listing html file

Example urls for objects (working):
http://192.168.0.10:9000/public/file.txt
http://192.168.0.10:9000/public/picture.jpg
http://192.168.0.10:9000/public/document.pdf

Example urls I'm getting for directories (not working):
http://192.168.0.10/public/index.html?prefix=directory1/
http://192.168.0.10/public/index.html?prefix=directory2/
http://192.168.0.10/public/index.html?prefix=directory3/

This is what the url for a directory should look like:
http://192.168.0.10:9000/public/index.html?prefix=directory1/
http://192.168.0.10:9000/public/index.html?prefix=directory2/
http://192.168.0.10:9000/public/index.html?prefix=directory3/

For some reason it is removing the port number from href of listed directories in the bucket.

I tried adding var BUCKET_WEBSITE_URL = 'http://192.168.0.10:9000'; but it seems to be ignoring BUCKET_WEBSITE_URL for directories, however it does work for file objects as intended.

I hope im explaining myself correctly.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant