Skip to content

Allow CloudStorageFileSystemProvider without credentials #1188

Description

@jean-philippe-martin

When using any NIO Filesystem provider, Java will enumerate them all and try to create them.

Our CloudStorageFileSystemProvider will throw an exception if there is no GOOGLE_APPLICATION_CREDENTIALS environment variable (because then it can't find credentials). This seems reasonable at first but here this means that even if someone is not using gs:// at all, just by having our jar in the classpath they become unable to use other filesystem providers.

This issue shows a concrete instance, with example.

This suggests we need to allow CloudStorageFileSystemProvider to be created without credentials. We can fail later, when the user tries to get a CloudStorageFileSystem instance.

Sounds good?

cc: @jart, @mziccard

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions