Problem/Motivation
On Acquia environments data dictionaries fail to load for inclusion in the archive.
[warning] file_get_contents(https://example.com/provider-data/sites/default/files/data_dictionaries/hospital/HOSPITAL_Data_Dictionary.pdf): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
> ArchiveService.php:992
> [error] Failed to get dictionary content from https://example.com/provider-data/sites/default/files/data_dictionaries/hospital/HOSPITAL_Data_Dictionary.pdf for dataset hbf-map.
> [error] Error saving archive file: Failed to get dictionary content from https://example.com/provider-data/sites/default/files/data_dictionaries/hospital/HOSPITAL_Data_Dictionary.pdf
Acceptance Criteria
Testing steps
Issue fork dkan_dataset_archiver-3559758
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
swirtLogic reworked to attempt local stream wrappers first.
Also moved away from file_get_contents() which runs out of memory on larger files. copy() moves them without need to load them into memory.
Comment #6
swirt