marius-wieschollek / passwords

A simple, yet feature rich password manager for Nextcloud
GNU Affero General Public License v3.0
215 stars 46 forks source link

[BUG]: #675

Closed Bolverik closed 6 days ago

Bolverik commented 1 month ago

⚠️ This issue respects the following points: ⚠️

Server Information

{
    "version": {
        "server": "29.0.8.1",
        "app": "2024.9.20",
        "lsr": false,
        "php": "8.3.12",
        "cronPhp": "8.3.12"
    },
    "environment": {
        "os": "Linux",
        "architecture": "x86_64",
        "bits": 64,
        "database": "pgsql",
        "cron": "cron",
        "proxy": false,
        "sslProxy": true,
        "subdirectory": false
    },
    "services": {
        "images": "imagick",
        "favicons": "bi",
        "previews": "default",
        "security": "hibp",
        "words": "auto",
        "previewApi": false,
        "faviconApi": false
    },
    "status": {
        "autoBackupRestored": false
    },
    "settings": {
        "channel": "stable",
        "nightlies": true,
        "handbook": false,
        "performance": 5
    },
    "encryption": {
        "sse": {
            "SSEv1r1": false,
            "SSEv1r2": true,
            "SSEv2r1": false,
            "SSEv3r1": false,
            "none": false,
            "default": "SSEv1r2"
        },
        "cse": {
            "CSEv1r1": false,
            "none": true,
            "default": "none"
        }
    }
}

Client Information

Browser and Version: 131.0.2 (64-разрядный) Client OS and Version: Ubuntu 24.04

Bug description

After update from legacy version, the error screen appears when I try to use the app. Journal shows this message:
QueryException Could not resolve OCA\Passwords\Helper\Random\Randomizer! Class "OCA\Passwords\Helper\Random\Randomizer" does not exist

Turns out Random folder was not present in passwords/lib/Helper/. Whe I added it, the app started working.

Steps to reproduce

  1. I open app or admin page for the app
  2. Error message appears

Expected behavior

  1. When I open the app, it should work.

Nextcloud Logs

No response

Browser Logs

No response

marius-wieschollek commented 6 days ago

The class OCA\Passwords\Helper\Random\Randomizer is not part of versions ending on .20. Only LSR releases ending on .10 have that class as a fallback. I assume you either have recently switched from LSR to normal releases but still have old code cached somewhere in PHP or you have an inconsistent installation.