Problem/Motivation
Currently when creating an archive, the system uses the direct url provided, because it is entirely possible the URL is external to the system. However by doing that it may be accessing a url that is the decoupled front-end public side of the site, and while the file may be available publicly, the internal drupal domain may not have access to the file due to security restrictions.
To resolve this issue. I suggest making it attempt conversion to a public:// stream wrapper and if the pattern matches attempt that first. If the pattern does not match or the attempt to fopen() or file_get_contents() fails, then attempt the full url.
This will make the system more robust and reliable.
Acceptance Criteria
Testing steps
Issue fork dkan_dataset_archiver-3557421
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
swirtComment #6
swirtWent out with https://www.drupal.org/project/dkan_dataset_archiver/releases/1.0.0-beta4