Skip to content

Better documentation for handle.plugin.checknameauthority configuration #11449

Description

@paulo-graca

These comments aren't clear for me. What would happen if handle.plugin.checknameauthority has false?

/*
* 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.

Activity

  1. added
    needs triage
    needs documentation
    on Oct 17, 2025
  2. added
    help wanted
    and removed
    needs triage
    on Oct 17, 2025
  3. added theissue type on Oct 17, 2025
  4. added
    documentation
    on Oct 17, 2025
  5. added
    identifier: Handles
    and removed
    needs documentation
    on Oct 17, 2025
  6. mwoodiupui commented on Oct 22, 2025

    @mwoodiupui
    Member

    I agree that the comments are unclear. Setting the configuration to false causes the method to always return true, disabling the documented test. Probably, to implement the documented test, this method should test against both handle.prefix and all members of handle.additional.prefixes . Then handle.plugin.checknameauthority = false should be used only in very special circumstances that I can't imagine just now.

    We are using checknameauthority = false here 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.

  7. paulo-graca commented on Oct 24, 2025

    @paulo-graca
    ContributorAuthor

    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 = false
    the 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.

  8. AzazelSensei commented on Sep 2, 2026

    @AzazelSensei

    Opened #13065 so haveNA() accepts handle.additional.prefixes and the checknameauthority setting is documented in dspace.cfg.

  9. removed
    help wanted
    on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdocumentationidentifier: Handles

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions