Closed creopard closed 5 months ago
The RandomCharactersProvider class is instantiated here. It should always get the correct Randomizer class injected.
My guess is that some part of the old code was cached and this caused the error. You can check if the functionality works by going into the app, opening the create password form and then click the generate password button. If a password is generated, it works.
@marius-wieschollek good point! Generating a password works flawlessly. It also does not create new error entries in the log. So I guess that's it :)
⚠️ This issue respects the following points: ⚠️
Server Information
Client Information
Browser and Version: Firefox 122 Client OS and Version: Win11 23H2
Bug description
After updating the passwords app to version 2024.2.20 the following errors appeared in the nextcloud log:
TypeError OCA\Passwords\Provider\Words\RandomCharactersProvider::__construct(): Argument #1 ($randomizer) must be of type Random\Randomizer, string given, called in /home/apps/passwords/lib/AppInfo/Application.php on line 272
No new errors appeared since then, so I guess it's just an (minor) installation issue? Passwords app still works as intended.
Steps to reproduce
Expected behavior
Nextcloud Logs
Browser Logs
No response