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

Command icon 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

swirt created an issue. See original summary.

  • swirt committed a4511549 on 1.0.x
    bug: #3559758 Data dictionary fail to get on Acquia.
    
swirt’s picture

Status: Active » Fixed

Logic 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.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

swirt’s picture

Status: Fixed » Closed (fixed)