Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2281

handling duplicate configuration properties

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Incomplete
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Needed

      Description

      Currently, when there are two configuration properties with the same name, it seems like the later one is silently used. This can cause confusion (it confused me) why something you declare is not working, when in fact you declared it twice. Moreover, it's not clear what the priority will be if such duplicate exists in config/modules/.

      I think the best approach would be to warn about such duplicates loudly in dspace.log, also indicating which value was actually used.

      Example:
      choices.plugin.dc.contributor.author = SolrAuthorAuthority
      choices.plugin.dc.contributor.author = LCNameAuthority

      1. the later seems to be used

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              helix84 Ivan Masár
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: