You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to integrate this file system with Apache Mina sshd 2.12.1. But its failing. Here is the code snippet that I configured.
If I pass the bucket name as plain with out any / , its throwing error as this.fileStore is null and when i passed the bucket with /mybucket/, it's connecting but giving error as below. I am using org.carlspring.cloud.aws:s3fs-nio:1.0.5.
Steps To Reproduce
Setup Apache Mina sshd server with version 2.12.1.
Integrate with org.carlspring.cloud.aws:s3fs-nio:1.0.5.
Create a FileSystemFactory like below and integrate with Apache Mina 2.12.1.
-nio2-thread-9] o.a.s.server.session.ServerSessionImpl : exceptionCaught(ServerSessionImpl[rrmahar@/[0:0:0:0:0:0:0:1]:50619])[state=Opened] NullPointerException: Cannot invoke "org.carlspring.cloud.storage.s3fs.S3FileStore.name()" because "this.fileStore" is null
Exception 2
-nio2-thread-6] o.a.s.server.session.ServerSessionImpl : exceptionCaught(ServerSessionImpl[rrmahar@/[0:0:0:0:0:0:0:1]:50662])[state=Opened] UnsupportedOperationException: Not a directory: s3://AKIAXMZ***@s3.amazonaws.com/mybucket/
@rashmimaharana We haven't had a chance to look into this yet. 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 Files.newFileSystem down to the S3FileSystem which could have been related to the problem you are seeing.
Hi @carlspring
Bug Description
I have been trying to integrate this file system with Apache Mina sshd
2.12.1
. But its failing. Here is the code snippet that I configured.If I pass the bucket name as plain with out any
/
, its throwing error asthis.fileStore
isnull
and when i passed the bucket with/mybucket/
, it's connecting but giving error as below. I am usingorg.carlspring.cloud.aws:s3fs-nio:1.0.5
.Steps To Reproduce
2.12.1
.org.carlspring.cloud.aws:s3fs-nio:1.0.5
.FileSystemFactory
like below and integrate with Apache Mina2.12.1
.Expected Behavior
Should be able to connect to s3 bucket and list files
Environment
s3fs-nio
version: s3fs-nio:1.0,5Screenshots
Additional context
Exception 1
Exception 2
Proposed Solution
Known Workarounds
Useful Links
Task Relationships
This bug:
The text was updated successfully, but these errors were encountered: