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

DrushDriver: parseUserId($info) does not work anymore #281

Open
guillaume-a opened this issue Nov 13, 2024 · 1 comment
Open

DrushDriver: parseUserId($info) does not work anymore #281

guillaume-a opened this issue Nov 13, 2024 · 1 comment

Comments

@guillaume-a
Copy link

guillaume-a commented Nov 13, 2024

Given I use drush 12.5.3
When I launch command vendor/bin/drush user-create foo --mail [email protected] --password foobar
I Receive this output

 --------- ----------- ----------- --------------- ------------- 
  User ID   User name   User mail   User roles      User status  
 --------- ----------- ----------- --------------- ------------- 
  550895    [email protected]   [email protected]   authenticated   1            
 --------- ----------- ----------- --------------- ------------- 

The probleme is, parseUserId is looking for this pattern /User ID\s+:\s+\d+/ which does not match.
So DrushDriver::userCreate fails with the output:

 [warning] Unable to load user: zCUYaasa

In UserCommands.php line 387:
                                    
  Unable to find any matching user  
@guillaume-a
Copy link
Author

I'm starting to work on a patch/pull request for this.
But before submiting l'd like to try to add tests for this part.

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