Skip to content

[Bug]: Missing Admin-E-Mail leads to unexpected error message #57217

@hendrikkintscher

Description

@hendrikkintscher

⚠️ This issue respects the following points: ⚠️

Bug description

When the admin accounts E-mail-address is not setup in the admin accounts user settings, trying to send a test e-mail on the "Basic Settings" page after correctly setting up the mail server leads to being presented with "AxiosError: Request failed with status code 400" as text next to the send mail button.

Steps to reproduce

  1. Setup Nextcloud
  2. Don't setup admin account's e-mail address in user settings
  3. Setup mail server on the basic settings page
  4. Try to send test E-mail from basic settings page

Expected behavior

Expected would be to have the message "You need to set your account email before being able to send test emails. Go to https://nextcloud.hendrikkintscher.com/settings/user for that." that comes up in the response JSON on screen / presented as text instead of "AxiosError: Request failed with status code 400"

Nextcloud Server version

32

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions