-
Notifications
You must be signed in to change notification settings - Fork 67
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
Incompatible as a FileSystem with Apache MINA SSHD #56
Comments
Hello Rossdrew, thanks for your report. I will try to implement the method this week, i think is not a hard task. bye! |
I've implemented it already in a rather hacky fashion and it then works (at least to list directory contents) with MINA. I'm not really sure the best way to get file permissions though. |
If you can give me some tips/info about what kind of parameters (LinkOptions and attributes) need to read the Apache MINA. Can help me a lot :) thanks! |
My hacky method (for
Without the |
Hello Rossdrew, I hope version 1.3.0 solve your problem :) Thanks for the feedback! |
It doesn't I'm afraid, as, currently
doesn't return permissions as an attribute, as required by MINA. As that information is never really collected anywhere. At this point, I'm just running with a hack to
FYI: There are also other reasons this wont work with MINA, as I've found out. For example, it' requires an implementation of |
Ups... What its the subclass needed for Apache MINA? s3fs only support BasicFileAttributes and S3FileAttributes and dont have the key "permissions". In your first comment you talk to me about the method: public Map<String, Object> readAttributes(Path path, String attributes, LinkOption... options) throws IOException And now: public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) throws IOException Can you writte me some test or spike so we can reproduce your expected behaviour? Sorry! |
Yes, it requires the I was unaware that My project is pretty small if you fancy running it to improve your project |
So FYI, I've gotten it working with MINA SSHD with a few hacks. Namely adding permissions and a
|
Added initial simple implementation and not completed.
Hi @rossdrew I implemented the method readAttributes with PosixFileAttributes.class in tag 1.4.0. The conversion between S3ACLPermission and PosixPermission is very simple and limitated but I think you can use it without any workaround in your project and the implementation can be improved in the future. cheers! |
I noticed that
When the Mina sshd code attempts to check file attributes, it only sees It seems like |
Just wanted to bump this issue to make sure my comment was seen. Should I create another ticket? |
Creating an Apache MINA SFTP server and using the
S3FileSystemProvider
doesn't work as MINA uses thisreadAttributes
public Map<String, Object> readAttributes(Path path, String attributes, LinkOption... options) throws IOException
which is not implemented and results in directories not being listed as expected.
The text was updated successfully, but these errors were encountered: