Skip to content
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

OSFstorage provider "inner provider" settings? #400

Open
krugar opened this issue Jan 31, 2022 · 0 comments
Open

OSFstorage provider "inner provider" settings? #400

krugar opened this issue Jan 31, 2022 · 0 comments

Comments

@krugar
Copy link

krugar commented Jan 31, 2022

The OSFstorage provider has an "inner provider" that can be filesystem for local testing or a cloud storage for production. This provider is initialized in a utility function named make_provider(), which can be called with a settings parameter:

def make_provider(self, settings):

one place where this is called from is within download(), where it is indeed called with a settings parameter (with data taken from a "metadata" response by the OSF)

however, within make_provider(), this settings parameter is not actually used to initialize the inner provider, the value used instead is this:

This seems... unintended?

I stumbled upon this while trying to provide a foldersetting to the filesystem provider via environment variables, which does not work as one might expect (because it is initialized via the above mechanism)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant