Handle redirection

30 views
Skip to first unread message

Brian Keese

unread,
Apr 28, 2025, 12:44:09 PM4/28/25
to DSpace Technical Support
Hello,
I have been trying to implement internal handle redirection in DSpace 7x using the code in this PR: https://github.com/DSpace/DSpace/pull/8702
Has anyone successfully done this lately? 
I merged the PR, rebuilt DSpace, ran the database migration, and created a test entry there. However, the code that is supposed to interrogate the handleredirect service never seems to run. (I added logging here: https://github.com/DSpace/DSpace/blob/eac1648ffb104e3ec84248336f1be1b7dbb6d8e7/dspace-api/src/main/java/org/dspace/handle/HandlePlugin.java#L263 )
I wonder if something about the routing for handles has changed in the intervening 2 years that has broken this. Can anyone help me understand how to debug this?
Thanks.
Brian

Brian Keese

unread,
Apr 28, 2025, 2:12:39 PM4/28/25
to DSpace Technical Support
More info.  I think it isn't working as expected because we are using a handle server on a different machine. ( https://wiki.lyrasis.org/display/DSDOC7x/Handle.Net+Registry+Support#Handle.NetRegistrySupport-ToinstallaHandleresolveronaseparatemachine ) That server uses a plugin that makes a request at, e.g.,  /server/resolve/2022/22639 to get the dspace url for the given handle. This doesn't seem to trigger the handleredirect code. 

Can anyone point me to the code that is handling the request at /server/resolve? If I could find that, maybe I could understand how to connect it to the handleredirectservice.  

Thanks.
-Brian

Brian Keese

unread,
Apr 28, 2025, 9:42:45 PM4/28/25
to DSpace Technical Support
Nevermind. I found it. Comments made on the PR referenced above.
Reply all
Reply to author
Forward
0 new messages