(Official) The DSpace digital asset management system that powers your Institutional Repository
BSD 3-Clause "New" or "Revised" License
855
stars
1.29k
forks
source link
SyndicationFeed: key MSG_FEED_TITLE / feed.title does not exist in Map labels #9584
Open
saschaszott opened 1 month ago
Bug Description
The lookup of
MSG_FEED_TITLE
in linehttps://github.com/DSpace/DSpace/blob/1517e8cd0fe59645827164099060b1d3e80b9f9f/dspace-api/src/main/java/org/dspace/app/util/SyndicationFeed.java#L233
of
SyndicationFeed
cannot be successful aslabels
is initialized inOpenSearchController.getLabels
whereMSG_FEED_TITLE
is not added tolabels
:https://github.com/DSpace/DSpace/blob/1517e8cd0fe59645827164099060b1d3e80b9f9f/dspace-server-webapp/src/main/java/org/dspace/app/rest/OpenSearchController.java#L282
As a consequence, in line
https://github.com/DSpace/DSpace/blob/1517e8cd0fe59645827164099060b1d3e80b9f9f/dspace-api/src/main/java/org/dspace/app/util/SyndicationFeed.java#L233
the value of variable
defaultTitle
is set as the feed title. Ifdso
is a single item (not a collection or community) the feed title can be null.