Skip to content

[Bug]: Create new user errors when closed out prematurely then reopened (user already exists) #45713

Description

@lukasmatourek

⚠️ This issue respects the following points: ⚠️

Bug description

When create new user in UI and accidentally click out of dialog with form where fields are filled (username, password,...) and click again on Create User and fill the same as before but finish it successfully, I get error message that user with username already exists. The user is created anyway so it is not big deal.

Steps to reproduce

  1. Log In as admin
  2. Go to Users and click Create User
  3. Fill some fields, username at least
  4. Click out of the dialog window, so it will close
  5. Try to create the same user again
  6. Finish the creation properly, you should get error message on top right corner that the user with this username already exists but the new user is created anyway

Expected behavior

The message that user already exists should not be displayed as you did not finish the creation process and closed the dialog accidentally.

Installation method

Community Docker image

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

None

Web server

Apache (supported)

Database engine version

PostgreSQL

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

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

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

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

I would disable closing the dialog window when user clicks out of the dialog. It is annoying behaviour of many applications that you have work in progress and accidentally click out of dialog and the work is gone. It is not big deal, just idea for improvement.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions