-
Notifications
You must be signed in to change notification settings - Fork 23
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
Apache MINA integration #844
Comments
Hi @SergiyBojko , Would it be possible for you to provide a |
Hi @carlspring You can run it with
After server has started you should be able to run:
this will try to copy file https://play.min.io/foo/bar and result in error:
|
@SergiyBojko We haven't had a chance to look into this yet. However, can you try the code you have with the 1.0.6-SNAPSHOT version which is published in Maven Central Snapshots? There was a bug related to the properties not being passed from the |
I'm using the My dependencies:
The traceback, which I think is the same as above:
I'm not sure if it's related, but it seems like the MINA code is expecting |
I've made some progress on the Apache MINA integration. The main problem is that the SFTP subsystem expects To get it working, I wrapped
To put this class into use, add the
Posting this in case it's helpful to someone, but it is very experimental. |
This is an interesting finding! It looks like this was introduced back in 2020 as part of #99. The Would you be interested into writing a test reproducing your problem with Apache MINA, the solution and submit it as an editable PR? |
Guys, we could really use the help with MINA. We haven't really worked with it much and we have very limited time. We are keen on keeping this project evolving. It seems we're getting more and more issues reported with MINA. We're open to contibutors joining and helping us in this regard. If you can provide a fix, that would be great! If not, if you could provide a test, with TestContainers, or Docker, that would be awesome! |
I'm continuing to test the MINA integration. I'm having some trouble with reads returning stale data, but that problem disappears if I disable the cache. Obviously the problem there is that it becomes very slow, but seems to work pretty reliably. I'm going to try and find out what's happening there. It may take a while, but I'll try to open a PR. Hopefully I don't end up just making it work for my use case while breaking others. |
Either way, please report your findings even if you are not able to prepare a complete fix. |
Bug Description
I'm trying to expose Minio bucket through Apache MINA SFTP server (2.14.0) using example in the docs but it errors with:
using following file system factory config:
Data from the file actually can be read by:
I managed to bypass this by implementing custom
FileSystemFactory
, but after that MINA still fails becauseS3FileSystemProvider
does not havenewFileChannel
method implemented.This really doesn't seem right, am I doing something wrong?
Proposed Solution
Known Workarounds
Useful Links
Task Relationships
This bug:
The text was updated successfully, but these errors were encountered: