Skip to content

Unescaped spaces causes errors with site:download command #160

@RaulOGPicturae

Description

@RaulOGPicturae

Describe your environment

  • OS: MacBook Pro, running joomlatools from php:7.4-fpm docker container
  • Joomla version: Uninstalled, currently trying to download 4.2.5
  • Joomlatools Console version: 2.0.2
  • Are you working on the Joomlatools Vagrant: no
  • Are you working on the Joomlatools Server: no

Describe the problem:

Running ./vendor/joomlatools/console/bin/joomla site:download --www ./ public will cause an error if the folder containing the project has a space separated name.

Steps to reproduce:

  1. mkdir "space project"
  2. composer require joomlatools
  3. ./vendor/joomlatools/console/bin/joomla site:download --www ./ public

Observed Results:

Downloading https://github.com/joomla/joomla-cms/releases/download/4.2.5/Joomla_4.2.5-Stable-Full_Package.tar.gz - this could take a few minutes ..
gzip: /var/www/space.gz: No such file or directory
gzip: project/vendor/joomlatools/console/bin/.files/cache/7522513af9d772a10efbc54fc410dbce/4.2.5.tar.gz: No such file or directory

In Download.php line 214:

  Downloaded tar archive "4.2.5.tar.gz" could not be verified. A common cause is
   an interrupted download: check your internet connection and try again.

Expected Results:

Same result expectancy one would have from running site:download command with --www ./ and public parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions