SharonBrizinov / s3viewer

Storage Explorer - Publicly open storage viewer (Amazon S3 Bucket, Azure Blob, FTP server, HTTP Index Of/)
MIT License
432 stars 45 forks source link

Custom dirlist not working #1

Closed victorshx closed 3 years ago

victorshx commented 3 years ago

This tool is really great, nonetheless, with the built-in downloader. I couldn't get it to work with an S3 compatible endpoint hence I looked into the code to find how you generate the dirlist.

Here is what I got: aws --no-sign-request s3 ls s3://capitol-hill-riots --endpoint-url=https://s3.us-east-1.wasabisys.com --recursive > list.txt

Here is the preview: image

However, I get a warning message box when trying to load it. image

victorshx commented 3 years ago

PS: Here is the attached file should you need it for debugging.

list.txt

SharonBrizinov commented 3 years ago

Hi,

I looked at your data and I think that your shell is not configured to work with utf-8 because when I generated the dirlist everything was fine. Can you try to generate the dirlist from a different machine?

Please look at the comparison I made between your dirlist and mine. I've also attached the new dirlist I created.

list2.txt

compare
victorshx commented 3 years ago

Unfortunately, I do not have a Linux machine. I've also enabled the beta UTF-8 support. image

However, it's still showing the same error with a slightly different message. image

But I tried loading your dirlist and it works fine on my machine! Can I confirm that you are on a Linux machine?

SharonBrizinov commented 3 years ago

can you upload the new dirlist?

victorshx commented 3 years ago

can you upload the new dirlist?

Here list.txt

SharonBrizinov commented 3 years ago

I've pushed a fix to support different encoding schemes so now even the first dirlist should work for you.

Can you try again? (if you want to wait for the binary it will be ready in a few min)

victorshx commented 3 years ago

The latest commit works for the first dirlist, and the latest dirlist 👍

image