Expected behavior
From our point of view we expect the owner's metadata language to have no impact on the offered functionality. We suggest to replace all null to Item.ANY in the both above mentioned and linked occurences in the code.
Related work
Update: changed lines for better preview
Describe the bug Some functionality cannot be triggered when the cris profile owner's metadata field has some metadata language.
To Reproduce Steps to reproduce the behavior:
default.language=<your-preferred-locale>
property configured and you import the cris entities following the normal cris migration procedure where the language is then considered for new imported metadadata. https://github.com/4Science/DSpace/blob/822f5828bd4f415ada8b3cf965b57187456bd46f/dspace-api/src/main/java/org/dspace/app/batch/ItemImportOA.java#L696 https://github.com/4Science/DSpace/blob/822f5828bd4f415ada8b3cf965b57187456bd46f/dspace-api/src/main/java/org/dspace/app/batch/ItemImportOA.java#L697null
, so no language at all and for the mentioned setting this will not work and the functionality will not be offered/available.Item.ANY
language and thus checks metadatavalue with all language values and also not existing language values.Expected behavior From our point of view we expect the owner's metadata language to have no impact on the offered functionality. We suggest to replace all
null
toItem.ANY
in the both above mentioned and linked occurences in the code.Related work Update: changed lines for better preview