'It gives an error when I click to see my submissions on dspace
When I try to see my posts in dspace, I get the following error in xmlui/submissions path. I couldn't find any hint on how to fix the error
Invalid path: 'ıtem.metadata' [SELECT item FROM org.dspace.content.Item as item left join ıtem.metadata dc_date_accessioned WITH dc_date_accessioned.metadataField.id = :dc_date_accessioned WHERE item.inArchive = :in_archive AND item.submitter =:submitter ORDER BY STR(dc_date_accessioned.value) desc]
I get an error message when I click the link to see my submissions http://[domain.com]:8080/xmlui/submissions
Solution 1:[1]
You most likely hit a localization-related bug in the codebase:
line 131 of class org.dspace.content.dao.impl.ItemDAOImpl incorrecly expects the lowercase version of the string "Item" to be "item" (with a dotted "i"), as it is in many (most) scripts (typically "en"), but which is not the case with some locales, like "tr" or "az", for instance, where the lowercase counterpart is "?tem" (note the leading dotless "i")
This should be fixed replacing 2nd argument of call to function addMetadataLeftJoin(),
Item.class.getSimpleName().toLowerCase()
// localization-dependant, which is unwanted here
by
Item.class.getSimpleName().toLowerCase(new Locale("en"))
// => "item", no matter the java system locale
(or even plainly by the expected outcome string "item" -- though this may raise code style or maintenance questions that go far behind your question/issue)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Alain BECKER |
