Closed MontrealSergiy closed 3 months ago
Is this only with Carmin DPs or does this happen with other types?
We're going to junk all CARMIN stuff out of CBRAIN anyway, soon.
Not only Carmin, just any smart
Well, then, identify which attributes are not set that cause the index page to fail and then
1) if a DP requires that attribute anyway, make sure the ActiveRecord validation rules ensures it cannot be saved without it 2) if a DP shoudl work without that attribute, then make sure the index page doesn't crash because of it's missing.
Make sure to list here which attributes are faulty, please; don't make a pull request righr away, I'd like to review them first.
@real_provider
is the source of issues. It needs a remote_path
attribute
Do you meant remote_dir
? I can't find remote_path
anywhere. And I don't see where in the DP index page the exception is raised.
Fixed in my most recent commit: https://github.com/aces/cbrain/commit/1702bfa01476ec0f1d1f8fa74317dd30bad32377
Steps to reproduce
Create a new smart Data Provider (e.g. Carmin), but do not fill Physical Data Location aka Full Directory Path. Actually, do not fill any fields but name, that should be enough
Go to the Data Provider list.
Expected : you still can see the list of data providers
Observed: 500 error