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

plugin delete hangs when file permissions forbid the operation #238

Closed
slavicd opened this issue Jun 22, 2020 · 1 comment · Fixed by #376
Closed

plugin delete hangs when file permissions forbid the operation #238

slavicd opened this issue Jun 22, 2020 · 1 comment · Fixed by #376

Comments

@slavicd
Copy link

slavicd commented Jun 22, 2020

Bug Report

Describe the current, buggy behavior

Attempting wp plugin delete foo will result in wp-cli hanging if there are file permission issues (say, no write access).

Describe what you would expect as the correct outcome

I expect to see an error message where wp-cli's process has no right access to accomplish the operation.

Let us know what environment you are running this on

OS:	Linux 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64
Shell:	/bin/bash
PHP binary:	/usr/bin/php7.3
PHP version:	7.3.14-1~deb10u1
php.ini used:	/etc/php/7.3/cli/php.ini
WP-CLI root dir:	phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir:	phar://wp-cli.phar/vendor
WP_CLI phar path:	/var/www/[edited]
WP-CLI packages dir:	
WP-CLI global config:	
WP-CLI project config:	
WP-CLI version:	2.4.0

@danielbachhuber
Copy link
Member

Thanks for the report, @slavicd.

I confirmed the problem and submitted a fix: #376

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

Successfully merging a pull request may close this issue.

2 participants