Skip to content

Can't update EPerson information if metadata is completely missing #4287

@FrancescoMolinaro

Description

@FrancescoMolinaro

Describe the bug

When editing the profile of an EPerson, if any of the metadata is missing, is impossible to add it from the UI.

To Reproduce

To reproduce this issue we need some corrupted data for an EPerson, this can be done either by deleting one of the metadata directly on the DB or via AIP import, deleting one tag e.g. LastName (https://wiki.lyrasis.org/display/DSDOC8x/AIP+Backup+and+Restore)

After having created this corrupted EPerson we need to:

1- access as admin and navigate to /access-control/epeople
2- edit the EPerson with the missing metadata
3 - add the missing metadata and save the form

We can observe that even if we are notified with a success the metadata has not been added.

Expected behavior

It should be possible to add a missing metadata for an EPerson.

Metadata

Metadata

Labels

affects: 7.xIssue impacts 7.x releasesaffects: 8.xIssue impacts 8.x releasesaffects: mainIssue impacts "main" (latest release).authorizationrelated to authorization, permissions or groupsbug

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions