./bin/dspace oai import process deletes requests directory

18 views
Skip to first unread message

Steve Michaels

unread,
Oct 14, 2025, 9:26:03 AMOct 14
to DSpace Technical Support
I've discovered that when the ./bin/dspace oai import process runs, it doesn't just clear the requests cache, it deletes the ./var/oai/requests directory itself.

Is there a configuration that I'm missing, a command flag in the crontab command that's wrong ("$DSPACE/bin/dspace oai import > /dev/null"), or is this a weird bug?

DSpace Technical Support

unread,
Nov 14, 2025, 12:09:29 PMNov 14
to DSpace Technical Support
Hi Steve,

I believe that is expected behavior because that "/var/oai/requests" directory *is* the cache.  So, the entire directory is deleted in the code here: https://github.com/DSpace/DSpace/blob/main/dspace-oai/src/main/java/org/dspace/xoai/services/impl/cache/DSpaceXOAICacheService.java#L132-L134

So, by deleting that directory the entire cache is cleared.  The directory is later recreated if it no longer exists.

Tim

Reply all
Reply to author
Forward
0 new messages