dkan
dkan copied to clipboard
Catch unavailable remote download URLs before they hit the filefetcher
When creating a dataset distribution with a remote file that is invalid or not yet available, user will get an error when the localize_import queue runs:
[error] Error: Call to a member function setupState() on null in FileFetcher\FileFetcher->runIt() (line 106 of /var/www/html/vendor/getdkan/file-fetcher/src/FileFetcher.php) #0 /var/www/html/vendor/getdkan/procrastinator/src/Job/Job.php(43): FileFetcher\FileFetcher->runIt()
QA Steps
- [ ] Enable dblog
- [ ] Create a dataset with a remote url distribution, enter a non-existing url into the field and save
- [ ] Run drush queue:run localize_import
- [ ] Confirm there are no errors to the screen
- [ ] Check the logs
- [ ] Confirm you see a message stating the url provided can not be reached.