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
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,