?
avatar PhilETaylor
PhilETaylor
28 Jun 2020

Steps to reproduce the issue

8e2552d

Screenshot 2020-06-28 at 20 26 23

Expected result

a Are you sure you want to delete this user?

Actual result

User deleted without confirmation

Additional comments

The CLI asked for confirmation when deleting an extension - but not when deleting a user

Screenshot 2020-06-28 at 20 28 05

avatar PhilETaylor PhilETaylor - open - 28 Jun 2020
avatar joomla-cms-bot joomla-cms-bot - change - 28 Jun 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Jun 2020
avatar alikon
alikon - comment - 29 Jun 2020

please test #29827

avatar alikon alikon - change - 29 Jun 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-06-29 06:44:50
Closed_By alikon
avatar alikon alikon - close - 29 Jun 2020
avatar alikon alikon - change - 29 Jun 2020
Status Closed New
Closed_Date 2020-06-29 06:44:50
Closed_By alikon
avatar alikon alikon - reopen - 29 Jun 2020
avatar alikon
alikon - comment - 29 Jun 2020

reopened as #29827 was not the solution

avatar mbabker
mbabker - comment - 29 Jun 2020

#29827 was correct but it should use $io->confirm() instead of $io->ask(). The confirm() helper very specifically is only going to accept a yes looking answer as confirmed, the way you handled it it will basically accept anything that is not "no" as a "yes" looking answer.

But, you also need to check Symfony's API to see what happens if it determines the current console session is non-interactive. It may very well be that it skips the prompt if it determines the session is non-interactive.

(BTW, a --force flag should also be introduced into these things that bypasses the prompt)

avatar alikon
alikon - comment - 29 Jun 2020

thanks for the tip
reopend #29827 using $io->confirm() instead of $io->ask()

i left this open cause still we need to check better your last point

avatar jwaisner jwaisner - change - 5 Jul 2020
Status New Confirmed
avatar alikon
alikon - comment - 20 Jul 2020

closing as the non-interactive flag should be OK now
please re-test #29827

avatar alikon alikon - change - 20 Jul 2020
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2020-07-20 17:16:31
Closed_By alikon
avatar alikon alikon - close - 20 Jul 2020

Add a Comment

Login with GitHub to post a comment