Skip to content

Changing metadata in a user profile without specifying a password brings up a success and an error panel #3641

@pnbecker

Description

@pnbecker

Describe the bug

An Eperson can edit their user profile (not the researcher profile, just the EPerson's profile). They can change their name, telephone number, language (by the way, do we use the language for anything?) and in another section their password. To change the password one has to fill out fields for the old password and two fields for the new password. If the name, telephone number and/or language is changed but not the password DSpace shows a warning about a missing field and a panel to inform about the successful change of the profile. The changes are being stored. If you make changes and fill out the form for the old password, the warning doesn't come up.

Bildschirmfoto 2024-11-11 um 11 43 06

If you try to change the password by filling out the both fields for the new password, leaving out the field for the old password, the same error is shown but the new password is not stored (as it should be). So this affects only the form section with the EPerson metadata.

To Reproduce

Steps to reproduce the behavior:

  1. Log in to DSpace
  2. Click on the persons item that replaced the authentication dropdown and on "Profile"
  3. Change the name, telephone number and/or name. Do not fill out the old password field below.
  4. Save the changes.
  5. Logout, login again, go back to the form to edit the Eperson profile.
  6. See that your changes were stored.

Expected behavior

If no new password is specified, no error should show up, if the old password is missing.

Metadata

Metadata

Labels

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions