Ticket #3904 (new defect)

Opened 4 years ago

Last modified 4 years ago

s3 vfs is broken

Reported by: dan_tofan Owned by:
Priority: major Milestone: Future Releases
Component: mc-vfs Version: master
Keywords: Cc: dmitry_koterov
Blocked By: Blocking:
Branch state: no branch Votes for changeset:


start mc, type:
cd s3://
(ensure relevant keys are present as env variables)
After a few seconds, there is a long error dump, at the end:
ssl.CertificateError?: hostname u'...s3.amazonaws.com' doesn't match either of '*.s3.amazonaws.com', 's3.amazonaws.com'

I investigated this a bit. It seems the current version of mc s3 extension uses boto, which is now deprecated by Amazon in favor of boto3 (check https://github.com/boto/boto/issues/2836). So, it needs a rewrite to boto3.
I can help with this. Do you accept contributions?

Thank you,

mc --version
GNU Midnight Commander 4.8.20
Built with GLib 2.48.2
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

Change History

comment:1 in reply to: ↑ description Changed 4 years ago by andrew_b

  • Cc dmitry_koterov added

Replying to dan_tofan:

I can help with this. Do you accept contributions?

Yes, we do.
I thunk at first you should connect with the author of s3 fixes. A added him to Cc:. He's e-mail can be found in s3 plugin code.

comment:2 Changed 4 years ago by dan_tofan

Hi Andrew,

I emailed Dmitry (at his gmail address) a week ago and no answer yet.
Please advise.


comment:3 Changed 4 years ago by andrew_b

Ok, feel free to make a patch to fix the S3 bug.

Note: See TracTickets for help on using tickets.