Skip to content

User deletion results in 500 #259

Description

@MarioNoll

Davis version

5.4.1

Installation method

Docker – standalone (with Caddy)

PHP version (bare metal only)

No response

Database

SQLite

Reverse proxy

None (standalone Docker with Caddy)

Authentication method

Internal (ADMIN_LOGIN / ADMIN_PASSWORD)

Affected protocol(s)

  • CalDAV
  • CardDAV
  • WebDAV
  • Admin dashboard
  • API

Client(s) exhibiting the issue

Firefox

Relevant environment variables

API_KEY: "123456"
APP_ENV: "prod"
APP_TIMEZONE: "Europe/Berlin"
DATABASE_DRIVER: "sqlite"
DATABASE_URL: "sqlite:////data/davis-database.db"
ADMIN_AUTH_BYPASS: "true"
CALDAV_ENABLED: "true"
CARDDAV_ENABLED: "true"
WEBDAV_ENABLED: "false"
PUBLIC_CALENDARS_ENABLED: "false"

Steps to reproduce

  1. Click delete button for user on admin dashboard

Expected behaviour

User gets deleted

Actual behaviour

500 Server Error

Logs

request.CRITICAL: Uncaught PHP Exception Doctrine\ORM\ORMInvalidArgumentException: "EntityManager#remove() expects parameter 1 to be an entity object, NULL given." at ORMInvalidArgumentException.php line 190 {"exception":"[object] (Doctrine\\ORM\\ORMInvalidArgumentException(code: 0): EntityManager#remove() expects parameter 1 to be an entity object, NULL given. at /var/www/davis/vendor/doctrine/orm/src/ORMInvalidArgumentException.php:190)"} []

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions