DSpace 10.0 Edit Metadata tab broken: byFieldName endpoint returns totalElements: 0

17 views
Skip to first unread message

Matthias Letsch

unread,
Jul 23, 2026, 6:48:17 AM (9 days ago) Jul 23
to DSpace Technical Support

Hi all,

we are running DSpace 10.0 (Docker) for testing and have encountered a reproducible issue where the /api/core/metadatafields/search/byFieldName endpoint consistently returns totalElements: 0 for all queries, making it impossible to add new metadata fields via the Edit Item → Metadata tab in the admin UI.

The same endpoint works correctly on a fresh, unmodified DSpace 10.0 instance on the same server. We have performed an extensive bisection (dropping and rebuilding the database step by step) and confirmed that none of our configuration changes caused the issue. The database structure and all indexes are intact.

Has anyone else encountered this, or is there a known fix or internal cache/index that could explain this behavior?

I have attached a detailed bug report with all diagnostic steps, API responses and bisection results.

Thanks in advance,

Matthias Letsch
Kommunikations-, Informations- und Medienzentrum (KIM)
Universität Hohenheim, Stuttgart, Germany


20260723 bug report.md

Matthias Letsch

unread,
Jul 24, 2026, 6:27:24 AM (8 days ago) Jul 24
to DSpace Technical Support
Hi all,

quick follow-up: the issue was resolved by running

dspace index-discovery -t MetadataField

The MetadataField Solr index was incomplete — fields were present in the database but not indexed, causing byFieldName to return empty results. Thanks for the hint!

Kind regards,
Matthias
Reply all
Reply to author
Forward
0 new messages