Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symlinks to directories outside project break archive dump. #5991

Open
rwagner00 opened this issue May 8, 2024 · 0 comments
Open

Symlinks to directories outside project break archive dump. #5991

rwagner00 opened this issue May 8, 2024 · 0 comments

Comments

@rwagner00
Copy link
Contributor

Describe the bug
When doing archive-dump for code, if a symlink in the code leads to a directory outside the project code being archived, an error will be thrown.

To Reproduce

  1. Create a symlink inside a project whose linked content is outside the project
  2. Run drush archive:dump --code

Expected behavior
An archive will be generated successfully.

Actual behavior

In ArchiveDumpCommands.php line 213:

  [UnexpectedValueException]
  Iterator RecursiveIteratorIterator returned a path "{{symlink-destination}}" that is not in
  the base directory "{{tmp-directory}}"

Workaround
Remove the symlink

System Configuration

Q A
Drush version? 10.x/11.x/12.x
Drupal version? 10.x/9.x/8.x/7.x
PHP version 8.x/7.x
OS? Mac/Linux

Additional information
This has only been verified in some configurations, but likely exists in most or all of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant