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

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 3ab510ca on 1.0.x
    feat: #3557421 Choose internal stream first
    
swirt’s picture

Status: Active » Fixed

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