nextflow-io / nextflow-s3fs

An S3 File System Provider for Java 7 (project archived)
Apache License 2.0
1 stars 10 forks source link

Key cannot be empty error when list S3 bucket #15

Closed pditommaso closed 5 years ago

pditommaso commented 5 years ago

When listing the content of an S3 bucket without specifying any subdirectory e.g. s3://bucket/* the following error is returned:

ERROR ~ Key cannot be empty

Error stack trace

java.lang.IllegalArgumentException: Key cannot be empty
    at com.amazonaws.util.ValidationUtils.assertStringNotEmpty(ValidationUtils.java:89)
    at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1421)
    at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1316)
    at com.upplication.s3fs.AmazonS3Client.getObject(AmazonS3Client.java:110)
    at com.upplication.s3fs.util.S3ObjectSummaryLookup.getS3Object(S3ObjectSummaryLookup.java:197)
    at com.upplication.s3fs.util.S3ObjectSummaryLookup.lookup(S3ObjectSummaryLookup.java:88)
    at com.upplication.s3fs.S3FileSystemProvider.readAttributes(S3FileSystemProvider.java:643)
    at java.nio.file.Files.readAttributes(Files.java:1737)
    at java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:219)
    at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
    at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)
    at java.nio.file.Files.walkFileTree(Files.java:2662)
    at nextflow.file.FileHelper.visitFiles(FileHelper.groovy:729)
    at nextflow.file.PathVisitor.pathImpl(PathVisitor.groovy:142)
    at nextflow.file.PathVisitor.applyGlobPattern0(PathVisitor.groovy:110)
    at nextflow.file.PathVisitor.apply(PathVisitor.groovy:70)
    at nextflow.file.PathVisitor$_applyAsync_closure1.doCall(PathVisitor.groovy:76)
    at nextflow.file.PathVisitor$_applyAsync_closure1.call(PathVisitor.groovy)