marius-wieschollek / passwords

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

[BUG]: Error while running background job AbstractMapper::findAllByField() #676

Open cyrkul opened 3 days ago

cyrkul commented 3 days ago

⚠️ This issue respects the following points: ⚠️

Server Information

{
    "version": {
        "server": "30.0.1.2",
        "app": "2024.9.20",
        "lsr": false,
        "php": "8.2.24",
        "cronPhp": "8.2.24"
    },
    "environment": {
        "os": "Linux",
        "architecture": "x86_64",
        "bits": 64,
        "database": "mysql",
        "cron": "cron",
        "proxy": false,
        "sslProxy": true,
        "subdirectory": false
    },
    "services": {
        "images": "imaginary",
        "favicons": "default",
        "previews": "default",
        "security": "hibp",
        "words": "auto",
        "previewApi": false,
        "faviconApi": false
    },
    "status": {
        "autoBackupRestored": false
    },
    "settings": {
        "channel": "stable",
        "nightlies": false,
        "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: Cachy Browser 131.0.3 Client OS and Version: CachyOS Linux

Bug description

After update to Nextcloud Hub 9 (30.0.1) I get following error: TypeError OCA\Passwords\Db\AbstractMapper::findAllByField(): Argument #3 ($type) must be of type int, string given, called in /var/www/nextcloud/apps/passwords/lib/Db/PasswordMapper.php on line 30 Error while running background job OCA\Passwords\Cron\SynchronizeShares (id: 55, arguments: null)

Steps to reproduce

It seems to be related to background cron job, I see it after some time of normal usage.

Expected behavior

Cron job should not return Error

Nextcloud Logs

No response

Browser Logs

No response

kiv57 commented 2 days ago

Same here.

NC 30.0.1 (upgraded from 29.* a few days ago) PHP 8.3.12 MariaDB 11.4.3

HolgerHees commented 1 day ago

https://github.com/marius-wieschollek/passwords/pull/678