Repository navigation
Labels
bugdocumentationTicket describes improvements or additions to documentationidentifier: HandlesRelated to integration with Handle System
Description
These comments aren't clear for me. What would happen if handle.plugin.checknameauthority has false?
DSpace/dspace-api/src/main/java/org/dspace/handle/HandlePlugin.java
Lines 322 to 341 in a783210
| /* | |
| * Naming authority Handles are in the form: 0.NA/1721.1234 | |
| * | |
| * 0.NA is basically the naming authority for naming authorities. For | |
| * this simple implementation, we will just check that the prefix | |
| * configured in dspace.cfg is the one in the request, returning true if | |
| * this is the case, false otherwise. | |
| * | |
| * FIXME: For more complex Handle situations, this will need enhancing. | |
| */ | |
| // This parameter allows the dspace handle server to be capable of having multiple | |
| // name authorities assigned to it. So long as the handle table the alternative prefixes | |
| // defined the dspace will answer for those handles prefixes. This is not ideal and only | |
| // works if the dspace instances assumes control over all the items in a prefix, but it | |
| // does allow the admin to merge together two previously separate dspace instances each | |
| // with their own prefixes and have the one instance handle both prefixes. In this case | |
| // all new handle would be given a unified prefix but all old handles would still be | |
| // resolvable. | |
| if (configurationService.getBooleanProperty("handle.plugin.checknameauthority", true)) { |
Also, handle.plugin.checknameauthority isn't defined in any dspace configuration (I couldn't find it).
I was told it should be set to false when you have more than one configured handle prefix.
Metadata
Metadata
Assignees
Labels
bugdocumentationTicket describes improvements or additions to documentationidentifier: HandlesRelated to integration with Handle System
Type
Projects
- StatusShow more project fields📋 To Do
Activity
mwoodiupui commentedon Oct 22, 2025
I agree that the comments are unclear. Setting the configuration to
falsecauses the method to always returntrue, disabling the documented test. Probably, to implement the documented test, this method should test against bothhandle.prefixand all members ofhandle.additional.prefixes. Thenhandle.plugin.checknameauthority = falseshould be used only in very special circumstances that I can't imagine just now.We are using
checknameauthority = falsehere on a repository into which we have merged the content of another which used a separate prefix, as described in the comments. I agree that, though this works, it is not ideal.The method comment says that the method "returns true if we have this handle in storage", which is incorrect. It returns true if the handle matches the declared prefix for this instance, which is closer to the function implied by the method's name. It would be wise to check that that is how the method is used.
What we ought to do in the long run IMHO is to disentangle Handle storage from DSpace and use the Handle server as it was designed. Then the Handle server can serve any prefixes to which it has been homed and, I think, DSpace can stop worrying about such details. But that is a separate and larger issue.
paulo-graca commentedon Oct 24, 2025
We have a similar case — we merged two repositories into a single one. The resulting repository needs to resolve two different handle prefixes.
I learned the hard way that without setting
handle.plugin.checknameauthority = falsethe repository wouldn’t be able to resolve one of them.
This means that this configuration is critical for such scenarios. It might make sense to include it (even commented out) in the dspace.cfg, or to create a dedicated module configuration for it.
I’m fully aligned with the need to extract the Handle dependency as much as possible. The system should be abstract enough to work with any persistent identifier mechanism.
AzazelSensei commentedon Sep 2, 2026
Opened #13065 so haveNA() accepts handle.additional.prefixes and the checknameauthority setting is documented in dspace.cfg.