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

[Storage config Bug] Project.prototype.getActiveStorageConnection #361

Open
NelsonPereira1991 opened this issue Apr 9, 2018 · 0 comments
Assignees

Comments

@NelsonPereira1991
Copy link
Collaborator

Dendro Version if known (or site URL)

master

Please describe the expected behaviour

In the function Project.prototype.getActiveStorageConnection at the project model, there should be a check related to the config object that is fetched from the graph after the callback of :

  • self.getActiveStorageConfig(function (err, config)

Please describe the actual behaviour

If the config is null, all the features related to the storage(uploads/etc) do not work.
The fact that the project does not have a storage config associated is in itself a bug.

Possible ways to fix the problem (programmers)

add a isNull(config) check and handle this specific case -> maybe default to a local storage config ?

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

No branches or pull requests

2 participants