Commit 1655bf371532532339e617ea87d1b14aa3b8b5a3

Authored by Fernando Ribeiro
1 parent 479cd595b9
Exists in OPENAIRE5.X

Sometimes the static List has multiple entries. Adding this clear method to clea…

…r the list may solve the problem
setup-data/dspace-source/dspace-api/src/main/java/org/dspace/content/authority/OpenAIREAuthority.java
... ... @@ -103,7 +103,8 @@ public class OpenAIREAuthority implements ChoiceAuthority
103 103  
104 104 if (OpenAIREAuthority.pairs == null || OpenAIREAuthority.pairs.size() == 0 || (newFilelength > 0 && filelength != newFilelength)) {
105 105 OpenAIREAuthority.pairs = new ArrayList<Pair<String, String>>();
106   - String defsFile = ConfigurationManager.getProperty(OpenAIREAuthority.FileProperty);
  106 + OpenAIREAuthority.pairs.clear();
  107 + //String defsFile = ConfigurationManager.getProperty(OpenAIREAuthority.FileProperty);
107 108 if (defsFile == null) OpenAIREAuthority.log.error("Configuration "+OpenAIREAuthority.FileProperty+" not found in dspace.cfg file.");
108 109 else {
109 110 try {
... ...