OAI download URL statistics and performance

9 views
Skip to first unread message

Claudia Jürgen

unread,
Nov 20, 2025, 6:13:29 AM (9 days ago) Nov 20
to DSpace Technical Support
Hi all,

we ran into problems with a new harvester
a) performance
b) statistics

In Crosswalks like METS or any other which exposes the URL to the
bitstream, the bitstream urls are using the UI-URL

https://github.com/DSpace/DSpace/blob/main/dspace/config/modules/oai.cfg#L39
in combination with
https://github.com/DSpace/DSpace/blob/main/dspace-oai/src/main/java/org/dspace/xoai/util/ItemUtils.java#L135

This might lead to a problem when the performance is not good enough,
thus the harvester gets the loading html page.

One other aspect is the statistic (apart from it being ruined by KI-Bots
etc anyway). The downloads count towards the statistic.

Changing the crosswalks to use the API-URL instead of the UI-URL will
solve these problems. Just two lines of code, but wanted to know what
you think about this change.

Change the oai.bitstream.baseUrl to
oai.bitstream.baseUrl = ${dspace.server.url}

and

dspace-oai/src/main/java/org/dspace/xoai/util/ItemUtils.java
String url = baseUrl + "/api/core/bitstreams/" + bit.getID().toString()
+ "/content";
instead of
String url = baseUrl + "/bitstreams/" + bit.getID().toString() +
"/download";


cu

Claudia



--
Claudia Juergen

Technische Universität Dortmund
Universitätsbibliothek
Bibliotheks-IT
Sebrathweg 9
44149 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
claudia...@tu-dortmund.de
www.ub.tu-dortmund.de

Reply all
Reply to author
Forward
0 new messages